web/action.py
branchtls-sprint
changeset 1433 091ac3ba5d51
parent 1432 2c3711d4570b
child 1536 1e695b78d085
--- a/web/action.py	Wed Apr 22 18:42:58 2009 +0200
+++ b/web/action.py	Wed Apr 22 18:44:30 2009 +0200
@@ -17,11 +17,11 @@
 
 class Action(AppRsetObject):
     """abstract action. Handle the .search_states attribute to match
-    request search state. 
+    request search state.
     """
     __registry__ = 'actions'
     __select__ = yes()
-    
+
     property_defs = {
         'visible':  dict(type='Boolean', default=True,
                          help=_('display the action or not')),
@@ -34,11 +34,11 @@
     }
     site_wide = True # don't want user to configuration actions eproperties
     category = 'moreactions'
-    
+
     def url(self):
         """return the url associated with this action"""
         raise NotImplementedError
-    
+
     def html_class(self):
         if self.req.selected(self.url()):
             return 'selected'
@@ -52,13 +52,13 @@
     """
     category = None
     id = None
-    
+
     def __init__(self, req, rset, title, path, **kwargs):
         Action.__init__(self, req, rset)
         self.title = req._(title)
         self._path = path
         self.__dict__.update(kwargs)
-        
+
     def url(self):
         return self._path
 
@@ -74,9 +74,9 @@
                   & partial_relation_possible(action='add')
                   & partial_may_add_relation())
     registered = accepts_compat(Action.registered)
-    
+
     category = 'addrelated'
-                
+
     def url(self):
         current_entity = self.rset.get_entity(self.row or 0, self.col or 0)
         linkto = '%s:%s:%s' % (self.rtype, current_entity.eid, target(self))
@@ -91,4 +91,4 @@
     registered = deprecate(condition_compat(accepts_compat(Action.registered)),
                            msg='EntityAction is deprecated, use Action with '
                            'appropriate selectors')
-    
+