# HG changeset patch # User Arthur Lutz # Date 1357251050 -3600 # Node ID fa044b9157d7485a3d7813e9565a8cf523a02a38 # Parent 1053b9d0fdf7a69a29f84a9d9c7260fa7a0b1ca4 Remove changelog view (closes #2423532) diff -r 1053b9d0fdf7 -r fa044b9157d7 doc/3.16.rst --- a/doc/3.16.rst Wed Jan 02 18:17:02 2013 +0100 +++ b/doc/3.16.rst Thu Jan 03 23:10:50 2013 +0100 @@ -19,3 +19,6 @@ User interface changes ---------------------- + +* Remove changelog view, as nor cubicweb nor known cubes/applications were properly + feeding related files \ No newline at end of file diff -r 1053b9d0fdf7 -r fa044b9157d7 web/test/unittest_urlrewrite.py --- a/web/test/unittest_urlrewrite.py Wed Jan 02 18:17:02 2013 +0100 +++ b/web/test/unittest_urlrewrite.py Thu Jan 03 23:10:50 2013 +0100 @@ -60,7 +60,6 @@ ('/doc/images/(.+?)/?$', dict(fid='\\1', vid='wdocimages')), ('/doc/?$', dict(fid='main', vid='wdoc')), ('/doc/(.+?)/?$', dict(fid='\\1', vid='wdoc')), - ('/changelog/?$', dict(vid='changelog')), # now in SchemaBasedRewriter #('/search/(.+)$', dict(rql=r'Any X WHERE X has_text "\1"')), ]) diff -r 1053b9d0fdf7 -r fa044b9157d7 web/test/unittest_viewselector.py --- a/web/test/unittest_viewselector.py Wed Jan 02 18:17:02 2013 +0100 +++ b/web/test/unittest_viewselector.py Thu Jan 03 23:10:50 2013 +0100 @@ -93,8 +93,7 @@ def test_possible_views_none_rset(self): req = self.request() self.assertListEqual(self.pviews(req, None), - [('changelog', wdoc.ChangeLogView), - ('cw.sources-management', cwsources.CWSourcesManagementView), + [('cw.sources-management', cwsources.CWSourcesManagementView), ('cw.users-and-groups-management', cwuser.UsersAndGroupsManagementView), ('gc', debug.GCView), ('index', startup.IndexView), diff -r 1053b9d0fdf7 -r fa044b9157d7 web/views/startup.py --- a/web/views/startup.py Wed Jan 02 18:17:02 2013 +0100 +++ b/web/views/startup.py Thu Jan 03 23:10:50 2013 +0100 @@ -51,7 +51,7 @@ title = _('manage') http_cache_manager = httpcache.EtagHTTPCacheManager add_etype_links = () - skip_startup_views = set( ('index', 'manage', 'schema', 'owl', 'changelog', + skip_startup_views = set( ('index', 'manage', 'schema', 'owl', 'systempropertiesform', 'propertiesform', 'loggedout', 'login', 'cw.users-and-groups-management', 'cw.groups-management', diff -r 1053b9d0fdf7 -r fa044b9157d7 web/views/urlrewrite.py --- a/web/views/urlrewrite.py Wed Jan 02 18:17:02 2013 +0100 +++ b/web/views/urlrewrite.py Thu Jan 03 23:10:50 2013 +0100 @@ -109,7 +109,6 @@ (rgx('/doc/images/(.+?)/?'), dict(vid='wdocimages', fid=r'\1')), (rgx('/doc/?'), dict(vid='wdoc', fid=r'main')), (rgx('/doc/(.+?)/?'), dict(vid='wdoc', fid=r'\1')), - (rgx('/changelog/?'), dict(vid='changelog')), ] def rewrite(self, req, uri): diff -r 1053b9d0fdf7 -r fa044b9157d7 web/views/wdoc.py --- a/web/views/wdoc.py Wed Jan 02 18:17:02 2013 +0100 +++ b/web/views/wdoc.py Thu Jan 03 23:10:50 2013 +0100 @@ -205,60 +205,6 @@ self.w(open(join(resourcedir, rid)).read()) -class ChangeLogView(StartupView): - __regid__ = 'changelog' - title = _('What\'s new?') - maxentries = 25 - - def call(self): - rid = 'ChangeLog_%s' % (self._cw.lang) - allentries = [] - title = self._cw._(self.title) - restdata = ['.. -*- coding: utf-8 -*-', '', title, '='*len(title), ''] - w = restdata.append - today = date.today() - for fpath in self._cw.vreg.config.locate_all_files(rid): - cl = ChangeLog(fpath) - encoding = 'utf-8' - # additional content may be found in title - for line in (cl.title + cl.additional_content).splitlines(): - m = CHARSET_DECL_RGX.search(line) - if m is not None: - encoding = m.group(1) - continue - elif line.startswith('.. '): - w(unicode(line, encoding)) - for entry in cl.entries: - if entry.date: - edate = todate(strptime(entry.date, '%Y-%m-%d')) - else: - edate = today - messages = [] - for msglines, submsgs in entry.messages: - msgstr = unicode(' '.join(l.strip() for l in msglines), encoding) - msgstr += u'\n\n' - for submsglines in submsgs: - msgstr += ' - ' + unicode(' '.join(l.strip() for l in submsglines), encoding) - msgstr += u'\n' - messages.append(msgstr) - entry = (edate, messages) - allentries.insert(bisect_right(allentries, entry), entry) - latestdate = None - i = 0 - for edate, messages in reversed(allentries): - if latestdate != edate: - fdate = self._cw.format_date(edate) - w(u'\n%s' % fdate) - w('~' * len(fdate)) - latestdate = edate - for msg in messages: - w(u'* %s' % msg) - i += 1 - if i > self.maxentries: - break - w('') # blank line - self.w(rest_publish(self, '\n'.join(restdata))) - class HelpAction(action.Action): __regid__ = 'help' @@ -271,17 +217,6 @@ def url(self): return self._cw.build_url('doc/main') -class ChangeLogAction(action.Action): - __regid__ = 'changelog' - __select__ = yes() - - category = 'footer' - order = 1 - title = ChangeLogView.title - - def url(self): - return self._cw.build_url('changelog') - class AboutAction(action.Action): __regid__ = 'about' diff -r 1053b9d0fdf7 -r fa044b9157d7 web/wdoc/ChangeLog_en --- a/web/wdoc/ChangeLog_en Wed Jan 02 18:17:02 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,89 +0,0 @@ -.. -*- coding: utf-8 -*- -.. _`user preferences`: myprefs -.. _here: sparql -.. _SPARQL: http://www.w3.org/TR/rdf-sparql-query/ -.. _schema: schema -.. _OWL: http://www.w3.org/TR/owl-features/ -.. _CWSource: cwetype/CWSource - -2010-10-17 -- 3.10.0 - - * facets on optional relations now propose to search to entities - which miss the relation - - * box and content navigation components have been merged, so this - simplify the configuration and you should be able to move - boxes/components in various places of the interface - - * global / context dependant boxes should now be more - distinguishable to make the interface more intuitive - - * upgraded jQuery and jQuery UI respectively to version 1.4.2 and - 1.8. - - * data sources are now stored as CWSource_ entities in the database. - This allows on multi-sources instance to filter search results - according to the source entities are coming from. - - -2010-06-11 -- 3.8.4 - * support full text prefix search for instances using postgres > 8.4 as database: try it - by using search such as 'cubic*' - - -2010-04-20 -- 3.8.0 - * nicer schema_ and workflow views (clickable image!) - - * more power to undo, though not yet complete (missing entity updates, soon available...) - - * pdf export functionnality moved to its own cube. If it's no more - present on this site while you found it useful, ask you site - administrator to install the pdfexport_ cube. - - -2010-03-16 -- 3.7.0 - * experimental support for undoing of deletion. If you're not proposed to *undo* - deletion of one or several entities, ask you site administrator to activate - the feature. - - -2010-02-10 -- 3.6.0 - * nice 'demo widget' to edit bookmark's path, e.g. a relative url, splitted - as path and parameters and dealing nicely with url encodings. Try to - edit your bookmarks! - - * hell lot of refactorings, but you should hopefuly not see that from the outside - -2009-09-17 -- 3.5.0 - - * selectable workflows: authorized users may change the workflow used - by some workflowable entities - - -2009-08-07 -- 3.4.0 - - * support for SPARQL_. Click here_ to test it. - - * and another step toward the semantic web: new `ExternalUri` entity type - with its associated `same_as` relation. See - http://www.w3.org/TR/owl-ref/#sameAs-def for more information and check - this instance schema_ to see on which entity types it may be applied - - * new "view workflow" and "view history" items in the workflow - sub-menu of the actions box - - * you can now edit comments of workflow transition afterward (if authorized, - of course) - - * modification date of an entity is updated when its state is changed - - -2009-02-26 -- 3.1.0 - - * schema may be exported as OWL_ - - * new ajax interface for site configuration / `user preferences`_ - - -2008-10-24 -- 2.99.0 - * cubicweb is now open source ! diff -r 1053b9d0fdf7 -r fa044b9157d7 web/wdoc/ChangeLog_fr --- a/web/wdoc/ChangeLog_fr Wed Jan 02 18:17:02 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,98 +0,0 @@ -.. -*- coding: utf-8 -*- -.. _`préférences utilisateurs`: myprefs#fieldset_ui -.. _ici: sparql -.. _SPARQL: http://www.w3.org/TR/rdf-sparql-query/ -.. _schema: schema -.. _OWL: http://www.w3.org/TR/owl-features/ -.. _pdfexport: http://www.cubicweb.org/project/cubicweb-pdfexport -.. _CWSource: cwetype/CWSource - -2010-10-07 -- 3.10.0 - - * les facettes sur les relations optionnelles proposent maintenant - de filter les entité qui n'ont *pas* la relation - - * les boîtes et composants contextuels ont été fusionnés, permettant - de simplifier la configuration et de placer ces nouveaux composants - comme vous le désirez - - * les boîtes globales ou dépendantes du contexte sont plus - facilement distinguable pour rendre l'interface plus intuitive - - * passage à jQuery 1.4.2, et jQuery UI 1.8 - - * les sources de données sont maintenant stockées dans la base de - données sous forme d'entités CWSource_. Cela permet sur les - instances multi-source de filter les résultats de recherche en - fonction de la source dont viennent les entités. - - -2010-06-11 -- 3.8.4 - * support pour la recherche de préfixe pour les instances utilisant postgres > 8.4 : - essayez en cherchant par ex. 'cubic*' - -2010-04-20 -- 3.8.0 - - * amélioration des vues de schema_ et des vues de workflows - (images clickable !) - - * meilleure support du "undo", mais il manque toujours le support - sur la modification d'entité (bientôt...) - - * la fonctionnalité d'export d'pdf a été déplacé dans son propre - cube. Si cette fonctionalité n'est plus disponible sur ce site et - que vous la trouviez utile, demander à l'administrateur - d'installer le cube pdfexport_. - - -2010-03-16 -- 3.7.0 - - * support experimental pour l'annulation ("undo") de la - suppression. Si, après une suppression d'une ou plusieurs - entités, on ne vous propose pas d'annuler l'opération, demander à - l'administrateur d'activé la fonctionnalité - - -2010-02-10 -- 3.6.0 - - * nouvelle widget (de démonstration :) pour éditer le chemin des - signets. Celui-ci, une url relative finalement, est décomposée de - chemin et paramètres que vous pouvez éditer individuellement et - surtout lisiblement car la gestion de l'échappement de l'url est - géré de manière transparente - - * beaucoup de refactoring, mais vous ne devriez rien remarquer :) - -2009-09-17 -- 3.5.0 - - * workflow sélectionnable: les utilisateurs autorisés peuvent - changer le workflow à utilister pour les entités le supportant - - -2009-08-07 -- 3.4.0 - - * support de SPARQL_. Cliquez ici_ pour le tester. - - * et encore un pas vers le web sémantique : un nouveau type d'entité - `ExternalUri` et la relation associée `same_as`. Voir - http://www.w3.org/TR/owl-ref/#sameAs-def pour plus d'information, ainsi - que le schema_ de cette instance pour voir à quels types d'entités cela - s'applique. - - * nouveau liens "voir les états possibles" et "voir l'historique" dans le sous-menu - workflow de la boite actions - - * vous pouvez dorénavant éditer les commentaires des passages de transition - depuis l'historique, pour peu que vous ayez les droits nécessaire bien sûr - - * la date de modification d'une entité est mise à jour lorsque son état est changé - - -2009-02-26 -- 3.1.0 - - * le schéma peut être exporté en OWL_ - - * nouvelle interface ajax pour la configuration du site et les `préférences utilisateurs`_ - - -