<s> """<STR_LIT>""" <EOL> from google . appengine . api import users <EOL> import webapp2 <EOL> class MainPage ( webapp2 . RequestHandler ) : <EOL> def get ( self ) : <EOL> user = users . get_current_user ( ) <EOL> if user : <EOL> nickname = user . nickname ( ) <EOL> logout_url = users . create_logout_url ( '<STR_LIT:/>' ) <EOL> greeting = '<STR_LIT>' . format ( <EOL> nickname , logout_url ) <EOL> else : <EOL> login_url = users . create_login_url ( '<STR_LIT:/>' ) <EOL> greeting = '<STR_LIT>' . format ( login_url ) <EOL> self . response . write ( <EOL> '<STR_LIT>' . format ( greeting ) ) <EOL> class AdminPage ( webapp2 . RequestHandler ) : <EOL> def get ( self ) : <EOL> user = users . get_current_user ( ) <EOL> if user : <EOL> if users . is_current_user_admin ( ) : <EOL> self . response . write ( '<STR_LIT>' ) <EOL> else : <EOL> self . response . write ( '<STR_LIT>' ) <EOL> else : <EOL> self . response . write ( '<STR_LIT>' ) <EOL> app = webapp2 . WSGIApplication ( [ <EOL> ( '<STR_LIT:/>' , MainPage ) , <EOL> ( '<STR_LIT>' , AdminPage ) <EOL> ] , debug = True ) </s>
