Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/z/a/zarkpy-HEAD/web/cgi/model/Private.py   zarkpy(Download)
    def getNextPrivateid(self, data_name, user_id):
        exists = self.getOneByWhere('data_name=%s and user_id=%s', data_name, user_id)
        return exists.private_id + 1 if exists else 1
 
    def incPrivateid(self, data_name, user_id):
        exists = self.getOneByWhere('data_name=%s and user_id=%s', data_name, user_id)
    def resetPrivateid(self, data_name, user_id):
        exists = self.getOneByWhere('data_name=%s and user_id=%s', data_name, user_id)
        return self.delete(exists.id) > 0 if exists else False
 
    table_template = \

src/z/a/zarkpy-HEAD/web/cgi/model/Setting.py   zarkpy(Download)
    def setValue(self, Userid, type, value):
        exists = self.getOneByWhere('Userid=%s and type=%s', Userid, type)
        if exists:
            return self.update(exists.id, {'value': value})
        else: