<s> import urllib <EOL> from flask import Flask <EOL> from route53 . views . zones import zones <EOL> from route53 . views . main import main <EOL> from route53 . views . records import records <EOL> from route53 . views . slicehost import slicehost <EOL> from auth import FlaskRealmDigestDB , AuthMiddleware <EOL> app = Flask ( __name__ ) <EOL> app . register_module ( main ) <EOL> app . register_module ( zones , url_prefix = '<STR_LIT>' ) <EOL> app . register_module ( records , url_prefix = '<STR_LIT>' ) <EOL> app . register_module ( slicehost , url_prefix = '<STR_LIT>' ) <EOL> app . config . from_pyfile ( '<STR_LIT>' ) <EOL> @ app . template_filter ( '<STR_LIT>' ) <EOL> def shortid ( s ) : <EOL> return s . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> @ app . template_filter ( '<STR_LIT>' ) <EOL> def urlencode ( s ) : <EOL> return urllib . quote ( s , '<STR_LIT:/>' ) <EOL> auth_users = app . config . get ( '<STR_LIT>' , None ) <EOL> if auth_users : <EOL> authDB = FlaskRealmDigestDB ( '<STR_LIT>' ) <EOL> for user , password in auth_users : <EOL> authDB . add_user ( user , password ) <EOL> app . wsgi_app = AuthMiddleware ( app . wsgi_app , authDB ) <EOL> import route53 . models </s>
