# HG changeset patch
# User sylvain.thenault@logilab.fr
# Date 1241076666 -7200
#      Thu Apr 30 09:31:06 2009 +0200
# Node ID 5e4cfec6078efaa210adb850d2465e8a29a3d845
# Parent  924a7d146051bbf6e0303651fe78bdfbb7cfe6fd
3.2 update

diff --git a/views/actions.py b/views/actions.py
--- a/views/actions.py
+++ b/views/actions.py
@@ -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')