# # mpulsweb - Pylons development environment configuration # # The %(here)s variable will be replaced with the parent directory of this file # [DEFAULT] debug = True #locale = # Uncomment and replace with the address which should receive any error reports #email_to = you@yourdomain.com smtp_server = localhost error_email_from = paste@localhost # set this to 'false' if you do not want the application # to handle static content. serve_static = true # Name of the application mpuls.app.title = "MPULS" mpuls.app.name = "Default application Name" # You can provide a user specific configuration for the mpuls server. mpuls.app.root=%(here)s # Where is the config file for this application. Config is used to define # which moduls are enabled or which phases are present. mpuls.app.config=%(here)s/default_config.json mpuls.app.dbmapping=%(here)s/default_dbmapping.json mpuls.app.dblist=%(here)s/default_dblist.json mpuls.app.tagging=%(here)s/default_tagging.xml # What is the name of the application instance. This is the name of the # directory containing the instance specific controller, templates and model. mpuls.app.instance=mpulsweb # Which controller should be the entry point of the appliction? mpuls.app.indexcontroller=mpuls # installation specific search paths mpuls.app.path=%(mpuls.app.root)s/%(mpuls.app.instance)s mpuls.app.path.public = %(mpuls.app.path)s/public mpuls.app.path.controllers = %(mpuls.app.path)s/controllers mpuls.app.path.templates = %(mpuls.app.path)s/templates mpuls.app.path.formed=%(mpuls.app.path.public)s/formed #mpuls.app.path.i18n = #mpuls.app.path.addons = # for connections to PostgeSQL database # db_database: %s will be replaced by certificate value mpuls.db.host = 127.0.0.1 mpuls.db.port = 5432 # Define name of the database. If no name is defined the application will try # to get the name from MPULS_DBNAME http-header mpuls.db.name = mydb mpuls.db.database = ka_%s_db # db_user: first %s -> database name, second %s -> user mpuls.db.user = ka_%s_%s [server:main] use = egg:Paste#http host = 127.0.0.1 port = 5000 #ssl_pem = * [app:main] use = egg:mpulsweb lang = de full_stack = true cache_dir = %(here)s/data beaker.session.key = mpulsweb beaker.session.secret = somesecret beaker.session.timeout = 1800 #beaker.session.type = memory #beaker.session.invalidate_corrupt = True # If you'd like to fine-tune the individual locations of the cache data dirs # for the Cache data, or the Session saves, un-comment the desired settings # here: #beaker.cache.data_dir = %(here)s/data/cache #beaker.session.data_dir = %(here)s/data/sessions # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* # Debug mode will enable the interactive debugging tool, allowing ANYONE to # execute malicious code after an exception is raised. #set debug = false # Logging configuration [loggers] keys = root, libmpuls, mpulsweb, instanceapp, routes [handlers] keys = console, wsgilog, file [formatters] keys = generic, message [logger_root] level = INFO handlers = console # use wsgi handler for Apache mod_wsgi #handlers = wsgilog [logger_routes] level = WARNING handlers = qualname = mpulsweb.config.routing [logger_libmpuls] level = INFO handlers = qualname = libmpuls [logger_mpulsweb] level = DEBUG handlers = qualname = mpulsweb [logger_instanceapp] level = WARNING handlers = qualname = %(mpuls.app.instance)s [handler_console] class = mpulsweb.lib.logfilter.FilteredHandler args = (StreamHandler, sys.stderr) level = NOTSET formatter = generic [handler_wsgilog] class = pylons.log.WSGIErrorsHandler args = () level = INFO formatter = message [handler_file] class = mpulsweb.lib.logfilter.FilteredHandler # Third parameter in args is maximum size of the log file in bytes. # Fourth parameter specifies the number of old files to keep. args=(logging.handlers.RotatingFileHandler,'mpuls.log', 'w', 1048576, 5) level = NOTSET formatter = generic [formatter_generic] format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(mpuls_dbname)s] [%(name)s] %(message)s datefmt = %Y-%m-%d %H:%M:%S [formatter_message] # strip time for logging in apache mod_wsgi format = %(levelname)-5.5s [%(name)s] %(message)s datefmt = %Y-%m-%d %H:%M:%S