(self)
读取数据到数据库中
读取数据到数据库中
读取数据到数据库中
def load(self):
        '''读取数据到数据库中
        '''
        mmname = self._name
        recordlist = util.ReadDataFromDB(mmname)
        for record in recordlist:
            pk = record[self.pk]
            mm = MMode(self._name+':%s'%pk,self.pk,data=record,fk=self._fk,timeout=self.timeout)
            mm.insert()
def load ( self ) : mmname = self . _name recordlist = util . ReadDataFromDB ( mmname ) for record in recordlist : pk = record [ self . pk ] mm = MMode ( self . _name + ':%s' % pk , self . pk , data = record , fk = self . _fk , timeout = self . timeout ) mm . insert ( )