<s> from gluon . contrib . appconfig import AppConfig <EOL> myconf = AppConfig ( reload = True ) <EOL> response . formstyle = '<STR_LIT>' <EOL> if not request . env . web2py_runtime_gae : <EOL> db = DAL ( myconf . take ( '<STR_LIT>' ) , pool_size = myconf . take ( '<STR_LIT>' , cast = int ) , check_reserved = [ '<STR_LIT:all>' ] ) <EOL> else : <EOL> db = DAL ( '<STR_LIT>' ) <EOL> session . connect ( request , response , db = db ) <EOL> response . generic_patterns = [ '<STR_LIT:*>' ] if request . is_local else [ ] <EOL> response . formstyle = myconf . take ( '<STR_LIT>' ) <EOL> response . form_label_separator = myconf . take ( '<STR_LIT>' ) <EOL> from plugin_ckeditor import CKEditor <EOL> ckeditor = CKEditor ( db ) <EOL> ckeditor . define_tables ( ) <EOL> from gluon . tools import Auth , Service , PluginManager , Crud <EOL> auth = Auth ( db ) <EOL> service = Service ( ) <EOL> plugins = PluginManager ( ) <EOL> crud = Crud ( db ) <EOL> auth . settings . extra_fields [ '<STR_LIT>' ] = [ <EOL> Field ( '<STR_LIT>' , '<STR_LIT>' , requires = IS_EMPTY_OR ( IS_IMAGE ( ) ) ) , <EOL> Field ( '<STR_LIT>' , '<STR_LIT:text>' ) <EOL> ] <EOL> auth . define_tables ( username = False , signature = False ) <EOL> import logging <EOL> logger = logging . getLogger ( "<STR_LIT>" % request . application ) <EOL> logger . setLevel ( logging . DEBUG ) <EOL> mail = auth . settings . mailer <EOL> mail . settings . server = '<STR_LIT>' if request . is_local else myconf . take ( '<STR_LIT>' ) <EOL> mail . settings . sender = myconf . take ( '<STR_LIT>' ) <EOL> mail . settings . login = myconf . take ( '<STR_LIT>' ) <EOL> auth . settings . registration_requires_verification = False <EOL> auth . settings . registration_requires_approval = False <EOL> auth . settings . reset_password_requires_verification = True <EOL> auth . settings . create_user_groups = False <EOL> if db ( db . auth_group ) . count ( ) == <NUM_LIT:0> : <EOL> db . auth_group . insert ( role = "<STR_LIT>" , description = "<STR_LIT>" ) <EOL> db . auth_group . insert ( role = "<STR_LIT>" , description = "<STR_LIT>" ) <EOL> db . auth_group . insert ( role = "<STR_LIT>" , description = "<STR_LIT>" ) <EOL> db . commit ( ) <EOL> auth . settings . everybody_group_id = <NUM_LIT:1> </s>
