Skip to content
Snippets Groups Projects
Commit 5e4cfec6078e authored by sylvain thenault's avatar sylvain thenault
Browse files

3.2 update

parent 924a7d146051
No related branches found
No related tags found
No related merge requests found
"""specific actions for fresh template """specific actions for fresh template
:organization: Logilab :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 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
""" """
__docformat__ = "restructuredtext en" __docformat__ = "restructuredtext en"
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
""" """
__docformat__ = "restructuredtext en" __docformat__ = "restructuredtext en"
from cubicweb.web.action import EntityAction from cubicweb.selectors import implements
from cubicweb.web.action import Action
...@@ -10,4 +11,3 @@ ...@@ -10,4 +11,3 @@
class AccountingAction(EntityAction): class AccountingAction(Action):
accepts = ('Expense',)
id = 'accaction' id = 'accaction'
...@@ -13,2 +13,3 @@ ...@@ -13,2 +13,3 @@
id = 'accaction' id = 'accaction'
__select__ = implements('Expense')
title = _('generate accounting entries') title = _('generate accounting entries')
...@@ -14,5 +15,5 @@ ...@@ -14,5 +15,5 @@
title = _('generate accounting entries') title = _('generate accounting entries')
def url(self): def url(self):
entity = self.entity(0, 0) entity = self.entity(0, 0)
return entity.absolute_url(vid='accexpense') return entity.absolute_url(vid='accexpense')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment