<s> """<STR_LIT>""" <EOL> import urllib <EOL> import urlparse <EOL> from core . controllers import base <EOL> from core . controllers import editor <EOL> from core . domain import config_domain <EOL> import feconf <EOL> ABOUT_PAGE_YOUTUBE_VIDEO_ID = config_domain . ConfigProperty ( <EOL> '<STR_LIT>' , { '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> '<STR_LIT>' , <EOL> default_value = '<STR_LIT>' ) <EOL> CONTACT_EMAIL_ADDRESS = config_domain . ConfigProperty ( <EOL> '<STR_LIT>' , { '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> '<STR_LIT>' , <EOL> default_value = '<STR_LIT>' ) <EOL> EMBEDDED_GOOGLE_GROUP_URL = config_domain . ConfigProperty ( <EOL> '<STR_LIT>' , { '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> '<STR_LIT>' , <EOL> default_value = ( <EOL> '<STR_LIT>' ) ) <EOL> SITE_FORUM_URL = config_domain . ConfigProperty ( <EOL> '<STR_LIT>' , { '<STR_LIT:type>' : '<STR_LIT>' } , <EOL> '<STR_LIT>' , <EOL> default_value = '<STR_LIT>' ) <EOL> class AboutPage ( base . BaseHandler ) : <EOL> """<STR_LIT>""" <EOL> def get ( self ) : <EOL> """<STR_LIT>""" <EOL> self . values . update ( { <EOL> '<STR_LIT>' : ABOUT_PAGE_YOUTUBE_VIDEO_ID . value , <EOL> '<STR_LIT>' : CONTACT_EMAIL_ADDRESS . value , <EOL> '<STR_LIT>' : SITE_FORUM_URL . value , <EOL> '<STR_LIT>' : feconf . NAV_MODE_ABOUT , <EOL> } ) <EOL> self . render_template ( '<STR_LIT>' ) <EOL> class ParticipatePage ( base . BaseHandler ) : <EOL> """<STR_LIT>""" <EOL> def get ( self ) : <EOL> """<STR_LIT>""" <EOL> self . values . update ( { <EOL> '<STR_LIT>' : ( <EOL> editor . MODERATOR_REQUEST_FORUM_URL . value ) , <EOL> '<STR_LIT>' : SITE_FORUM_URL . value , <EOL> '<STR_LIT>' : feconf . NAV_MODE_PARTICIPATE , <EOL> } ) <EOL> self . render_template ( '<STR_LIT>' ) <EOL> class ForumPage ( base . BaseHandler ) : <EOL> """<STR_LIT>""" <EOL> def get ( self ) : <EOL> """<STR_LIT>""" <EOL> if not feconf . SHOW_CUSTOM_PAGES : <EOL> raise self . PageNotFoundException <EOL> _ , netloc , _ , _ , _ = urlparse . urlsplit ( self . request . uri ) <EOL> self . values . update ( { <EOL> '<STR_LIT>' : ( <EOL> '<STR_LIT>' % ( <EOL> EMBEDDED_GOOGLE_GROUP_URL . value , <EOL> urllib . quote ( self . request . uri , safe = '<STR_LIT>' ) , <EOL> ) <EOL> ) , <EOL> '<STR_LIT>' : netloc . startswith ( '<STR_LIT:localhost>' ) , <EOL> } ) <EOL> self . render_template ( '<STR_LIT>' ) <EOL> class TermsPage ( base . BaseHandler ) : <EOL> """<STR_LIT>""" <EOL> def get ( self ) : <EOL> """<STR_LIT>""" <EOL> if not feconf . SHOW_CUSTOM_PAGES : <EOL> raise self . PageNotFoundException <EOL> self . render_template ( '<STR_LIT>' ) <EOL> class PrivacyPage ( base . BaseHandler ) : <EOL> """<STR_LIT>""" <EOL> def get ( self ) : <EOL> """<STR_LIT>""" <EOL> if not feconf . SHOW_CUSTOM_PAGES : <EOL> raise self . PageNotFoundException <EOL> self . render_template ( '<STR_LIT>' ) </s>
