3.2 update
authorsylvain.thenault@logilab.fr
Thu, 30 Apr 2009 09:31:06 +0200
changeset 11 5e4cfec6078e
parent 10 924a7d146051
child 12 ed46d8983b40
3.2 update
views/actions.py
--- a/views/actions.py	Thu Apr 30 09:30:54 2009 +0200
+++ b/views/actions.py	Thu Apr 30 09:31:06 2009 +0200
@@ -1,18 +1,19 @@
 """specific actions for fresh template
 
 :organization: Logilab
-:copyright: 2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+:copyright: 2008-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
 __docformat__ = "restructuredtext en"
 
-from cubicweb.web.action import EntityAction
+from cubicweb.selectors import implements
+from cubicweb.web.action import Action
 
-class AccountingAction(EntityAction):
-    accepts = ('Expense',)
+class AccountingAction(Action):
     id = 'accaction'
+    __select__ = implements('Expense')
     title = _('generate accounting entries')
-    
+
     def url(self):
         entity = self.entity(0, 0)
         return entity.absolute_url(vid='accexpense')