Exemple #1
0
    def __init__(self, environment, values=None):
        '''
        Do not forget to invoke this in your derived class using
        "super(self.__class__, self).__init__(environment, values)".

        We want to use the env, cache and storage methods outside class.
        If not called, you must implement your own methods.

        cache and storage are "convenient" methods to access _env.cache and
        _env.storage

        The values param is passed directly to UserInterface base.

        The environment param is passed directly to environment.

        Values are passed to __initialize__ method. It this is not None,
        the values contains a dictionary of values received from administration gui,
        that contains the form data requested from user.

        If you override marshal, unmarshal and inherited UserInterface method
        valuesDict, you must also take account of values (dict) provided at the
        __init__ method of your class.
        '''
        #
        UserInterface.__init__(self, values)
        Environmentable.__init__(self, environment)
        Serializable.__init__(self)
Exemple #2
0
    def __init__(self, environment, values=None, uuid=None):
        """
        Do not forget to invoke this in your derived class using
        "super(self.__class__, self).__init__(environment, values)".

        We want to use the env, cache and storage methods outside class.
        If not called, you must implement your own methods.

        cache and storage are "convenient" methods to access _env.cache and
        _env.storage

        The values param is passed directly to UserInterface base.

        The environment param is passed directly to environment.

        Values are passed to __initialize__ method. It this is not None,
        the values contains a dictionary of values received from administration gui,
        that contains the form data requested from user.

        If you override marshal, unmarshal and inherited UserInterface method
        valuesDict, you must also take account of values (dict) provided at the
        __init__ method of your class.
        """
        #
        UserInterface.__init__(self, values)
        Environmentable.__init__(self, environment)
        Serializable.__init__(self)
        self._uuid = uuid if uuid is not None else ''
Exemple #3
0
    def __init__(self, values=None):
        '''
        Do not forget to invoke this in your derived class using
        "super(self.__class__, self).__init__(values)".

        The values parameter is passed directly to UserInterface base.

        Values are passed to __initialize__ method. It this is not None,
        the values contains a dictionary of values received from administration gui,
        that contains the form data requested from user.

        If you override marshal, unmarshal and inherited UserInterface method
        valuesDict, you must also take account of values (dict) provided at the
        __init__ method of your class.
        '''
        #
        UserInterface.__init__(self, values)
        self.initialize(values)
Exemple #4
0
    def __init__(self, values=None):
        """
        Do not forget to invoke this in your derived class using
        "super(self.__class__, self).__init__(values)".

        The values parameter is passed directly to UserInterface base.

        Values are passed to __initialize__ method. It this is not None,
        the values contains a dictionary of values received from administration gui,
        that contains the form data requested from user.

        If you override marshal, unmarshal and inherited UserInterface method
        valuesDict, you must also take account of values (dict) provided at the
        __init__ method of your class.
        """
        #
        UserInterface.__init__(self, values)
        self.initialize(values)