(self)
return None
获取data数据
获取data数据
获取data数据
def getData(self):
        """获取data数据
        """
        data = self.get('data')
        if data:
            return data
        tablename,pk_value = self._name.split(':')
        props = {self._pk:int(pk_value)}
        record = util.GetOneRecordInfo(tablename,props)
        if record:
            self.data = record
            self.insert()
            return self.data
        return None
def getData ( self ) : data = self . get ( 'data' ) if data : return data tablename , pk_value = self . _name . split ( ':' ) props = { self . _pk : int ( pk_value ) } record = util . GetOneRecordInfo ( tablename , props ) if record : self . data = record self . insert ( ) return self . data return None