def process_response(self, request, response):
if hasattr(request, "<STR_LIT>") and hasattr(request, "<STR_LIT:user>") and request.user.is_authenticated():<EOL><INDENT>msgs = get_messages(request.user)<EOL>if msgs:<EOL><INDENT>for msg, level in msgs:<EOL><INDENT>messages.add_message(request, level, msg)<EOL><DEDENT><DEDENT><DEDENT>return response<EOL>
Check for messages for this user and, if it exists,
call the messages API with it