예제 #1
0
파일: model.py 프로젝트: zetsub0u/bulbs
 def _initialize(self,result):
     # this is called by initialize_element; 
     # putting it here to ensure method resolution order
     Edge._initialize(self,result)
     label = self._get_label()
     self._set_property_data(result)
     self._index = self._get_index(label)
예제 #2
0
파일: model.py 프로젝트: caalle/bulbs
 def _initialize(self,result):
     # this is called by initialize_element; 
     # putting it here to ensure method resolution order
     # initialize all non-DB properties here
     Edge._initialize(self,result)
     self._initialized = False
     self._set_property_data()
     self._initialized = True
예제 #3
0
 def _initialize(self, result):
     # this is called by initialize_element;
     # putting it here to ensure method resolution order
     Edge._initialize(self, result)
     label = self._get_label()
     self._set_default_values()
     self._set_property_data()
     self._index = self._get_index(label)
예제 #4
0
파일: model.py 프로젝트: altoplano/bulbs
    def _initialize(self,result):
        """
        Initializes the element. Initialize all non-DB attributes here.

        :param result: Result object.
        :type result: Result

        :rtype: None

        ..note:: Called by _create, _update, and utils.initialize_element. 

        """
        Edge._initialize(self,result)
        self._initialized = False
        self._set_property_data()
        self._initialized = True
예제 #5
0
파일: model.py 프로젝트: kod3r/bulbs
    def _initialize(self,result):
        """
        Initializes the element. Initialize all non-DB attributes here.

        :param result: Result object.
        :type result: Result

        :rtype: None

        ..note:: Called by _create, _update, and utils.initialize_element. 

        """
        Edge._initialize(self,result)
        self._initialized = False
        self._set_property_data()
        self._initialized = True