def user(method):
    " Prefix the user to method call args. Must have ACSID cookie to log in.  "
    @functools.wraps(method)
    def user_deco(self, *args):
        user = users.get_current_user()
        assert isinstance(user, users.User), "%r" % user
        return method(self, user, *args)              
    return user_deco
 Prefix the user to method call args. Must have ACSID cookie to log in.  
recipes/Python/577235_GAE_User_SessiHTTP_Basic/recipe-577235.py