Example #1
0
File: user.py Project: pvh/thegrid
 def __getitem__(self, key):
     if key == "pid":
         return self.pid
     return db.hget(self.dbid, key)
Example #2
0
File: user.py Project: pvh/thegrid
 def getUser(self):
     return User(db.hget("g:%s:usr" % self.gid, self.pid))
Example #3
0
File: grid.py Project: pvh/thegrid
    def fromName(obj, name):
        uid = db.hget("nameid", name)

        return obj(uid)
Example #4
0
File: grid.py Project: pvh/thegrid
 def __getitem__(self, key):
     return db.hget(self.dbid, key)
Example #5
0
File: grid.py Project: pvh/thegrid
 def getColor(self, pid):
     return db.hget(self.dbid + ":clr", pid)