def getEntriesOfPerson(self,id): person = User.get(id) return list(Node.selectBy(user=person))
def getProfileOfPerson(self,id): person = User.get(id) profile = {} for p in Profile.selectBy(user=person): profile[p.name] = p.value return profile
def getPerson(self,id): return User.get(id)