Пример #1
0
 def getCommonKeys(self, users):
     """ get common keys of a list of users """
     return LKH.getCommonKeys(self.dbfile, users)
Пример #2
0
 def getKey(self, userid):
     """Get the key of corresponding to a user-id """
     return LKH.getUserKey(self.dbfile, userid)
Пример #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
Пример #4
0
 def getCommonKeys(self, users):
     """ get common keys of a list of users """
     return LKH.getCommonKeys(self.dbfile, users)
Пример #5
0
 def getKey(self, userid):
     """Get the key of corresponding to a user-id """
     return LKH.getUserKey(self.dbfile, userid)
Пример #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