Exemple #1
0
 def __getitem__(self, key):
     if key == "pid":
         return self.pid
     return db.hget(self.dbid, key)
Exemple #2
0
 def getUser(self):
     return User(db.hget("g:%s:usr" % self.gid, self.pid))
Exemple #3
0
    def fromName(obj, name):
        uid = db.hget("nameid", name)

        return obj(uid)
Exemple #4
0
 def __getitem__(self, key):
     return db.hget(self.dbid, key)
Exemple #5
0
 def getColor(self, pid):
     return db.hget(self.dbid + ":clr", pid)