Exemple #1
0
    def delchk(self, chkname):
        logging.info('meta delchk: chk %s', chkname)
        key = chk_key(chkname)
        self.delete(key)

        return True
Exemple #2
0
 def getchk(self, chkname):
     logging.info('meta getchk: chk %s', chkname)
     key = chk_key(chkname)
     return self.get(key)
Exemple #3
0
    def addchk(self, chkname, chkinfo):
        logging.info('meta addchk chkname %s', chkname)

        key = chk_key(chkname)
        ret = self.set(key, chkinfo)
        return ret
Exemple #4
0
 def haschk(self, chkname):
     logging.info('meta haschk: chk %s', chkname)
     return self.exists(chk_key(chkname))
Exemple #5
0
 def getchk(self, chkname):
     logging.info('meta getchk: chk %s', chkname)
     key = chk_key(chkname)
     return self.get(key)
Exemple #6
0
    def delchk(self, chkname):
        logging.info('meta delchk: chk %s', chkname)
        key = chk_key(chkname)
        self.delete(key)

        return True
Exemple #7
0
 def haschk(self, chkname):
     logging.info('meta haschk: chk %s', chkname)
     return self.exists(chk_key(chkname))
Exemple #8
0
    def addchk(self, chkname, chkinfo):
        logging.info('meta addchk chkname %s', chkname)

        key = chk_key(chkname)
        ret = self.set(key, chkinfo)
        return ret
Exemple #9
0
def test_chk_key():
    chkname = '/test_ob0_chk0'
    key = chk_key(chkname)
    eq_(key, 'chk:' + chkname)