示例#1
0
文件: model.py 项目: zetsub0u/bulbs
 def _initialize(self,result):
     # this is called by initialize_element; 
     # putting it here to ensure method resolution order
     Vertex._initialize(self,result)
     element_type = self._get_element_type()
     self._set_property_data(result)
     self._index = self._get_index(element_type)
示例#2
0
文件: model.py 项目: caalle/bulbs
 def _initialize(self, result):
     # this is called by the initialize_element util; 
     # putting it here to ensure method resolution order.
     # initialize all non-DB properties here
     Vertex._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
     Vertex._initialize(self, result)
     element_type = self._get_element_type()
     self._set_default_values()
     self._set_property_data()
     self._index = self._get_index(element_type)
示例#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. 

        """
        Vertex._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. 

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