parameters: ( self
                , id
                , name
                , action
                , condition
                , permission
                , category
                , icon=None
                , visible=1
                , priority=1.0
                , REQUEST=None
                , description=''
                )
docstring: Add an action to our list.
docstring_summary: Add an action to our list.
docstring_tokens: Add an action to our list .
function: def ActionProviderBase_addAction( self
                , id
                , name
                , action
                , condition
                , permission
                , category
                , icon=None
                , visible=1
                , priority=1.0
                , REQUEST=None
                , description=''
                ):
      """ Add an action to our list.
      """
      if not name:
          raise ValueError('A name is required.')
  
      a_expr = action and Expression(text=str(action)) or ''
      i_expr = icon and Expression(text=str(icon)) or ''
      c_expr = condition and Expression(text=str(condition)) or ''
  
      if type( permission ) != type( () ):
          permission = permission and (str(permission),) or ()
  
      new_actions = self._cloneActions()
  
      new_action = ActionInformation( id=str(id)
                                    , title=str(name)
                                    , description=str(description)
                                    , action=a_expr
                                    , icon=i_expr
                                    , condition=c_expr
                                    , permissions=permission
                                    , category=str(category)
                                    , visible=int(visible)
                                    , priority=float(priority)
                                    )
  
      new_actions.append( new_action )
      self._actions = tuple( new_actions )
  
      if REQUEST is not None:
          return self.manage_editActionsForm(
              REQUEST, manage_tabs_message='Added.')
function_tokens: def ActionProviderBase_addAction ( self , id , name , action , condition , permission , category , icon = None , visible = 1 , priority = 1.0 , REQUEST = None , description = '' ) : if not name : raise ValueError ( 'A name is required.' ) a_expr = action and Expression ( text = str ( action ) ) or '' i_expr = icon and Expression ( text = str ( icon ) ) or '' c_expr = condition and Expression ( text = str ( condition ) ) or '' if type ( permission ) != type ( ( ) ) : permission = permission and ( str ( permission ) , ) or ( ) new_actions = self . _cloneActions ( ) new_action = ActionInformation ( id = str ( id ) , title = str ( name ) , description = str ( description ) , action = a_expr , icon = i_expr , condition = c_expr , permissions = permission , category = str ( category ) , visible = int ( visible ) , priority = float ( priority ) ) new_actions . append ( new_action ) self . _actions = tuple ( new_actions ) if REQUEST is not None : return self . manage_editActionsForm ( REQUEST , manage_tabs_message = 'Added.' )