# HG changeset patch # User Florent Cayré # Date 1330677898 -3600 # Node ID 6f2de09b29e8e9a44099343083e85c8c62deee6a # Parent 17c588eca3c2aa8646f4caf4201847543b042b3f [undo, test] fix undohistory selector et related tests diff -r 17c588eca3c2 -r 6f2de09b29e8 web/test/unittest_viewselector.py --- a/web/test/unittest_viewselector.py Mon Feb 27 18:15:23 2012 +0100 +++ b/web/test/unittest_viewselector.py Fri Mar 02 09:44:58 2012 +0100 @@ -30,7 +30,7 @@ primary, baseviews, tableview, editforms, calendar, management, embedding, actions, startup, cwuser, schema, xbel, vcard, owl, treeview, idownloadable, wdoc, debug, cwuser, cwproperties, cwsources, workflow, xmlrss, rdf, - csvexport, json) + csvexport, json, undohistory) from cubes.folder import views as folderviews @@ -102,6 +102,7 @@ ('siteinfo', debug.SiteInfoView), ('systempropertiesform', cwproperties.SystemCWPropertiesForm), ('tree', folderviews.FolderTreeView), + ('undohistory', undohistory.UndoHistoryView), ]) def test_possible_views_noresult(self): diff -r 17c588eca3c2 -r 6f2de09b29e8 web/views/undohistory.py --- a/web/views/undohistory.py Mon Feb 27 18:15:23 2012 +0100 +++ b/web/views/undohistory.py Fri Mar 02 09:44:58 2012 +0100 @@ -20,7 +20,7 @@ _ = unicode -from logilab.common.registry import Predicate, yes +from logilab.common.registry import Predicate from cubicweb import UnknownEid, tags, transaction as tx from cubicweb.view import View, StartupView @@ -58,7 +58,6 @@ class UndoHistoryView(StartupView): __regid__ = 'undohistory' - __select__ = yes() title = _('Undoing') item_vid = 'undoable-transaction-view' cache_max_age = 0