def post(self, userid): """docstring for post""" user = User.get_by_id(int(userid)) return self.post_impl(UserUI(user))
def current_user(): if "auth" not in session: return None if not security_manager.check_user(session["auth"]): return None return User.from_hashstring(session["auth"])
def get(self, userid): """docstring for get""" logging.debug("Hello world") user = User.get_by_id(int(userid)) return self.get_impl(UserUI(user))
def get_following_keys(self): """docstring for get_follower_keys""" return User.get_sources(FOLLOWED_BY, self.user, keys_only=True)