Exemplo n.º 1
0
 def getCommonKeys(self, users):
     """ get common keys of a list of users """
     return LKH.getCommonKeys(self.dbfile, users)
Exemplo n.º 2
0
 def getKey(self, userid):
     """Get the key of corresponding to a user-id """
     return LKH.getUserKey(self.dbfile, userid)
Exemplo n.º 3
0
 def __init__(self, dbfile):
     super(KPIDB, self).__init__()
     self.dbfile = dbfile
     self.rootKey = LKH.getKey(dbfile, 1)
     info = LKH.getInfo(self.dbfile)
     self.max_user_id = info.max_user_id
Exemplo n.º 4
0
 def getCommonKeys(self, users):
     """ get common keys of a list of users """
     return LKH.getCommonKeys(self.dbfile, users)
Exemplo n.º 5
0
 def getKey(self, userid):
     """Get the key of corresponding to a user-id """
     return LKH.getUserKey(self.dbfile, userid)
Exemplo n.º 6
0
 def __init__(self, dbfile):
   super(KPIDB,self).__init__()
   self.dbfile = dbfile
   self.rootKey = LKH.getKey(dbfile, 1)
   info = LKH.getInfo(self.dbfile)
   self.max_user_id = info.max_user_id