Exemplo n.º 1
0
    def __init__(self, service, name, arguments = []):
        """ Constructor for the Action class.

        @param service: service which holds this action
        @param name: action name
        @param arguments: arguments list

        @type service: Service
        @type name: string
        @type arguments: list of Argument
        """
        BaseAction.__init__(self, service, name, arguments)
Exemplo n.º 2
0
    def __init__(self, service, name, arguments = []):
        """ Constructor for the Action class.

        @param service: service which holds this action
        @param name: action name
        @param arguments: arguments list

        @type service: Service
        @type name: string
        @type arguments: list of Argument
        """
        BaseAction.__init__(self, service, name, arguments)
    def _create_action(self, name, args):
        """ Factory method that creates a service action.

        @return: The action object.
        @rtype: BaseAction
        """
        return BaseAction(self.service, name, args)
Exemplo n.º 4
0
 def __init__(self, service, name, arguments=[]):
     BaseAction.__init__(self, service, name, arguments)
     self.run_function = self.run
Exemplo n.º 5
0
 def __init__(self, service, name, arguments = []):
     BaseAction.__init__(self, service, name, arguments)
     self.run_function = self.run