web/action.py
changeset 5246 3246b1f88a18
parent 4719 aaed3f813ef8
child 5423 e15abfdcce38
equal deleted inserted replaced
5244:5467674ad101 5246:3246b1f88a18
    18     """abstract action. Handle the .search_states attribute to match
    18     """abstract action. Handle the .search_states attribute to match
    19     request search state.
    19     request search state.
    20     """
    20     """
    21     __registry__ = 'actions'
    21     __registry__ = 'actions'
    22     __select__ = match_search_state('normal')
    22     __select__ = match_search_state('normal')
    23 
    23     order = 99
    24     cw_property_defs = {
       
    25         'visible':  dict(type='Boolean', default=True,
       
    26                          help=_('display the action or not')),
       
    27         'order':    dict(type='Int', default=99,
       
    28                          help=_('display order of the action')),
       
    29         'category': dict(type='String', default='moreactions',
       
    30                          vocabulary=('mainactions', 'moreactions', 'addrelated',
       
    31                                      'useractions', 'siteactions', 'hidden'),
       
    32                          help=_('context where this component should be displayed')),
       
    33     }
       
    34     site_wide = True # don't want user to configurate actions
       
    35     category = 'moreactions'
    24     category = 'moreactions'
    36     # actions in category 'moreactions' can specify a sub-menu in which they should be filed
    25     # actions in category 'moreactions' can specify a sub-menu in which they should be filed
    37     submenu = None
    26     submenu = None
    38 
    27 
    39     def actual_actions(self):
    28     def actual_actions(self):