(self,pk)
return record
根据主键，可以获得mmode对象的实例的数据.\n
        >>> m = madmin.getObjData(1)
根据主键，可以获得mmode对象的实例的数据.\n
        >>> m = madmin.getObjData(1)
根据主键，可以获得mmode对象的实例的数据 . \ n >>> m = madmin . getObjData ( 1 )
def getObjData(self,pk):
        '''根据主键，可以获得mmode对象的实例的数据.\n
        >>> m = madmin.getObjData(1)
        '''
        mm = MMode(self._name+':%s'%pk,self.pk,fk=self._fk,timeout=self.timeout)
        if not mm.IsEffective():
            return None
        data = mm.get('data')
        if data:
            return data
        props = {self.pk:pk}
        record = util.GetOneRecordInfo(self._name,props)
        if not record:
            return None
        mm =  MMode(self._name+':%s'%pk,self.pk,data = record,fk=self._fk,timeout=self.timeout)
        mm.insert()
        return record
def getObjData ( self , pk ) : mm = MMode ( self . _name + ':%s' % pk , self . pk , fk = self . _fk , timeout = self . timeout ) if not mm . IsEffective ( ) : return None data = mm . get ( 'data' ) if data : return data props = { self . pk : pk } record = util . GetOneRecordInfo ( self . _name , props ) if not record : return None mm = MMode ( self . _name + ':%s' % pk , self . pk , data = record , fk = self . _fk , timeout = self . timeout ) mm . insert ( ) return record