31 """abstract action. Handle the .search_states attribute to match |
31 """abstract action. Handle the .search_states attribute to match |
32 request search state. |
32 request search state. |
33 """ |
33 """ |
34 __registry__ = 'actions' |
34 __registry__ = 'actions' |
35 __select__ = match_search_state('normal') |
35 __select__ = match_search_state('normal') |
36 |
36 order = 99 |
37 cw_property_defs = { |
|
38 'visible': dict(type='Boolean', default=True, |
|
39 help=_('display the action or not')), |
|
40 'order': dict(type='Int', default=99, |
|
41 help=_('display order of the action')), |
|
42 'category': dict(type='String', default='moreactions', |
|
43 vocabulary=('mainactions', 'moreactions', 'addrelated', |
|
44 'useractions', 'siteactions', 'hidden'), |
|
45 help=_('context where this component should be displayed')), |
|
46 } |
|
47 site_wide = True # don't want user to configurate actions |
|
48 category = 'moreactions' |
37 category = 'moreactions' |
49 # actions in category 'moreactions' can specify a sub-menu in which they should be filed |
38 # actions in category 'moreactions' can specify a sub-menu in which they should be filed |
50 submenu = None |
39 submenu = None |
51 |
40 |
52 def actual_actions(self): |
41 def actual_actions(self): |