(self,pk)
return mm
根据主键，可以获得mmode对象的实例.\n
        >>> m = madmin.getObj(1)
根据主键，可以获得mmode对象的实例.\n
        >>> m = madmin.getObj(1)
根据主键，可以获得mmode对象的实例 . \ n >>> m = madmin . getObj ( 1 )
def getObj(self,pk):
        '''根据主键，可以获得mmode对象的实例.\n
        >>> m = madmin.getObj(1)
        '''
        mm = MMode(self._name+':%s'%pk,self.pk,fk=self._fk,timeout=self.timeout)
        if mm.get('data'):
            return mm
        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 mm
def getObj ( self , pk ) : mm = MMode ( self . _name + ':%s' % pk , self . pk , fk = self . _fk , timeout = self . timeout ) if mm . get ( 'data' ) : return mm 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 mm