<s> """<STR_LIT>""" <EOL> from django . http import HttpResponseRedirect <EOL> from google . appengine . api import users <EOL> def login_required ( function ) : <EOL> """<STR_LIT>""" <EOL> def login_required_wrapper ( request , * args , ** kw ) : <EOL> if request . user . is_authenticated ( ) : <EOL> return function ( request , * args , ** kw ) <EOL> return HttpResponseRedirect ( users . create_login_url ( request . path ) ) <EOL> return login_required_wrapper </s>
