(self)
return result
同步到数据库
同步到数据库
同步到数据库
def syncDB(self):
        """同步到数据库
        """
        tablename = self._name.split(':')[0]
        data_item = self.__dict__.get("data")
        data_item.setValue(data_item.value)
        if self._cas:
            self.release()
        props = self.data
        pk = self.pk
        prere = {pk:props.get(pk)}
        result = util.UpdateWithDict(tablename, props, prere)
        return result
def syncDB ( self ) : tablename = self . _name . split ( ':' ) [ 0 ] data_item = self . __dict__ . get ( "data" ) data_item . setValue ( data_item . value ) if self . _cas : self . release ( ) props = self . data pk = self . pk prere = { pk : props . get ( pk ) } result = util . UpdateWithDict ( tablename , props , prere ) return result