def __before__(self):
<EOL>c.www_version = nipapwww.__version__<EOL>o = AuthOptions(<EOL>{<EOL>'<STR_LIT:username>': session.get('<STR_LIT:user>'),<EOL>'<STR_LIT>': session.get('<STR_LIT>'),<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': session.get('<STR_LIT>')<EOL>})<EOL>if self.requires_auth and '<STR_LIT:user>' not in session:<EOL><INDENT>session['<STR_LIT>'] = request.path_info<EOL>session.save()<EOL>redirect(url(controller='<STR_LIT>', action='<STR_LIT>'))<EOL><DEDENT>
Perform actions before action method is invoked.
            Deals with authentication.