def __property_config__(self, model_class, property_name):
        """Loads all of the references that point to this model.
        """
        
        #Direct invoke super with ReferenceProperty in order to skip the
        #ReferenceProperty process, but instead of invode ReferenceProperty's
        #parent function
        super(ReferenceProperty, self).__property_config__(model_class, property_name)
        if not (
                (isinstance(self.reference_class, type) and issubclass(self.reference_class, Model)) or
                self.reference_class is _SELF_REFERENCE or
                valid_model(self.reference_class, self.engine_name)):
            raise KindError('reference_class %r must be Model or _SELF_REFERENCE or available table name' % self.reference_class)
        
        if self.reference_class is _SELF_REFERENCE:
            self.reference_class = self.data_type = model_class
        else:
            self.reference_class = get_model(self.reference_class, self.engine_name,
                                             signal=False)
        self.reference_fieldname = self.reference_fieldname or self.reference_class._primary_field

        self.collection_name = self._collection_name
        if self.collection_name is None:
            self.collection_name = '%s' % (model_class.tablename)
        #enable reenter 2015/10/29
        # if hasattr(self.reference_class, self.collection_name):
        #     raise DuplicatePropertyError('Class %s already has property %s'
        #          % (self.reference_class.__name__, self.collection_name))
        setattr(self.reference_class, self.collection_name,
            _OneToOneReverseReferenceProperty(model_class, property_name,
                            self._id_attr_name(), self.collection_name))
        #append to reference_class._onetoone
        self.reference_class._onetoone[self.collection_name] = model_class
def __property_config__ ( self , model_class , property_name ) : super ( ReferenceProperty , self ) . __property_config__ ( model_class , property_name ) if not ( ( isinstance ( self . reference_class , type ) and issubclass ( self . reference_class , Model ) ) or self . reference_class is _SELF_REFERENCE or valid_model ( self . reference_class , self . engine_name ) ) : raise KindError ( 'reference_class %r must be Model or _SELF_REFERENCE or available table name' % self . reference_class ) if self . reference_class is _SELF_REFERENCE : self . reference_class = self . data_type = model_class else : self . reference_class = get_model ( self . reference_class , self . engine_name , signal = False ) self . reference_fieldname = self . reference_fieldname or self . reference_class . _primary_field self . collection_name = self . _collection_name if self . collection_name is None : self . collection_name = '%s' % ( model_class . tablename ) setattr ( self . reference_class , self . collection_name , _OneToOneReverseReferenceProperty ( model_class , property_name , self . _id_attr_name ( ) , self . collection_name ) ) self . reference_class . _onetoone [ self . collection_name ] = model_class
Loads all of the references that point to this model.