[undo, test] fix undohistory selector et related tests
authorFlorent Cayré <florent.cayre@logilab.fr>
Fri, 02 Mar 2012 09:44:58 +0100
changeset 8292 6f2de09b29e8
parent 8280 17c588eca3c2
child 8297 addb81a42c5d
[undo, test] fix undohistory selector et related tests
web/test/unittest_viewselector.py
web/views/undohistory.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):
--- 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