def get_request_user():
 request = RequestCache.get_current_request()
 return getattr(request, u'user', None)

def get_request_user ( ) : request = RequestCache . get_current_request ( ) return getattr ( request , u'user' , None )
helper to get the authenticated user from the current http request .