[Mpuls-commits] r3026 - jmd/trunk

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jun 17 20:39:18 CEST 2010


Author: bh
Date: 2010-06-17 20:39:17 +0200 (Thu, 17 Jun 2010)
New Revision: 3026

Added:
   jmd/trunk/development-combined.ini
Modified:
   jmd/trunk/ChangeLog
Log:
* development-combined.ini: New. sample configuration for running
both JMD parts in one WSGI application


Modified: jmd/trunk/ChangeLog
===================================================================
--- jmd/trunk/ChangeLog	2010-06-17 12:22:13 UTC (rev 3025)
+++ jmd/trunk/ChangeLog	2010-06-17 18:39:17 UTC (rev 3026)
@@ -1,3 +1,8 @@
+2010-06-17  Bernhard Herzog  <bh at intevation.de>
+
+	* development-combined.ini: New. sample configuration for running
+	both JMD parts in one WSGI application
+
 2010-06-15  Roland Geider <roland.geider at intevation.de>
 
         * jmdstrukturweb/model/appointment.py,

Added: jmd/trunk/development-combined.ini
===================================================================
--- jmd/trunk/development-combined.ini	2010-06-17 12:22:13 UTC (rev 3025)
+++ jmd/trunk/development-combined.ini	2010-06-17 18:39:17 UTC (rev 3026)
@@ -0,0 +1,218 @@
+#
+# mpulsweb - Pylons development environment configuration
+#
+# The %(here)s variable will be replaced with the parent directory of this file
+#
+[DEFAULT]
+debug = True 
+# Uncomment and replace with the address which should receive any error reports
+#email_to = you at yourdomain.com
+smtp_server = localhost
+error_email_from = paste at localhost
+
+# set this to 'false' if you do not want the application
+# to handle static content.
+serve_static = true
+
+#
+# Database Settings
+#
+# The Case Database
+#
+jmd.casedb.host = localhosst
+jmd.casedb.port = 5432
+# %s will be replaced by certificate value:
+jmd.casedb.database = ka_%s_db
+# first %s -> database name, second %s -> user:
+jmd.casedb.user = ka_%s_%s
+# Define fallback name of the database if fetching name from
+# SSL_CLIENT_S_DN_CN in ssl certificte fails. 
+jmd.casedb.name = mydb
+
+#
+# The Structure Database
+#
+# Most of the settings are the same as for the case db, so they can be
+# copied with references of the form %(jmd.casedb.FOO)s
+#
+jmd.structuredb.host = %(jmd.casedb.host)s
+jmd.structuredb.port = %(jmd.casedb.port)s
+# %s will be replaced by certificate value:
+# The structure database usually has the prefix "st" in the database name
+jmd.structuredb.database = ka_st%s_db
+# first %s -> database name, second %s -> user:
+jmd.structuredb.user = %(jmd.casedb.user)s
+# Define fallback name of the database if fetching name from
+# SSL_CLIENT_S_DN_CN in ssl certificte fails. 
+jmd.structuredb.name = %(jmd.casedb.name)s
+
+#
+# DB Mapping
+#
+#mpuls.app.dbmapping=%(here)s/dbmapping.json
+
+
+# Beaker session settings.  Configured here because the need to be the
+# same for both MPuls application parts
+beaker.session.key = jmdweb
+beaker.session.secret = somesecret
+beaker.session.timeout = 1800
+
+
+# If true, add a simple exception handle that only logs any exceptions
+# raised by the main MPuls application.  This can be useful during
+# debugging for exception containing non-ASCII characters which the
+# default debug handler doesn't handle properly.
+mpuls.app.simple-exception-handler = True
+
+# WARNING: *THE LINE BELOW MUST BE COMMENTED OUT IN A PRODUCTION ENVIRONMENT*
+# Debug mode will enable the interactive debugging tool, allowing ANYONE to
+# execute malicious code after an exception is raised.
+set debug = true
+
+
+[server:main]
+use = egg:Paste#http
+host = 0.0.0.0
+port = 5002
+#ssl_pem = *
+
+# Main WSGI application that makes the case and structure parts
+# available under two different URL prefixes
+[composite:main]
+use = egg:Paste#urlmap
+/jmd = jmd
+/struktur = struktur
+
+
+# Main Case Management Part
+[app:jmd]
+use = egg:mpulsweb
+lang = de 
+full_stack = true
+cache_dir = %(here)s/data/
+
+# Name of the application
+mpuls.app.title = "JMD"
+mpuls.app.name = "JMD Fallakten"
+
+# You can provide a user specific configuration for the mpuls server.
+mpuls.app.root=%(here)s
+
+# The configuration file for this application. It defines which modules
+# are enabled or which phases are present.
+mpuls.app.config=%(here)s/jmd.json
+mpuls.app.tagging=%(here)s/default_tagging.xml
+# The name of the application instance. This is the name of the
+# directory containing the instance specific controller, templates and
+# model.
+mpuls.app.instance=jmdweb
+# Controller serving as the main 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.template_cache = %(cache_dir)s/templates/jmd
+mpuls.app.path.formed=%(mpuls.app.path.public)s/formed
+
+# The MPuls case database is the same as the jmd.casedb, so copy all
+# settings
+mpuls.db.host = %(jmd.casedb.host)s
+mpuls.db.port = %(jmd.casedb.port)s
+mpuls.db.database = %(jmd.casedb.database)s
+mpuls.db.user = %(jmd.casedb.user)s
+mpuls.db.name = %(jmd.casedb.name)s
+
+
+# Structure Part
+[app:struktur]
+use = egg:mpulsweb
+lang = de 
+full_stack = true
+cache_dir = %(here)s/data/
+
+# Name of the application
+mpuls.app.title = "JMD Struktur"
+mpuls.app.name = "JMD Struktur"
+
+# You can provide a user specific configuration for the mpuls server.
+mpuls.app.root=%(here)s
+
+# The configuration file for this application. It defines which modules
+# are enabled or which phases are present.
+mpuls.app.config=%(here)s/jmdstruktur.json
+mpuls.app.tagging=%(here)s/default_tagging.xml
+# The name of the application instance. This is the name of the
+# directory containing the instance specific controller, templates and
+# model.
+mpuls.app.instance=jmdstrukturweb
+# Controller serving as the main 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.template_cache = %(cache_dir)s/templates/struktur
+mpuls.app.path.formed=%(mpuls.app.path.public)s/formed
+mpuls.app.path.i18n = %(mpuls.app.path)s/i18n
+
+# The main database for the structure part jmd.structuredb, so copy all
+# settings
+mpuls.db.host = %(jmd.structuredb.host)s
+mpuls.db.port = %(jmd.structuredb.port)s
+mpuls.db.database = %(jmd.structuredb.database)s
+mpuls.db.user = %(jmd.structuredb.user)s
+mpuls.db.name = %(jmd.structuredb.name)s
+
+# force login to be done with the jmd application.  
+#
+# The prefix used here must match the one used in the [composite:main]
+# section
+mpuls.auth.login_url = /jmd/auth/login
+
+
+# Logging configuration
+[loggers]
+keys = root, mpulsweb, jmdweb, jmdstrukturweb
+
+[handlers]
+keys = console
+
+[formatters]
+keys = generic
+
+[logger_root]
+level = INFO
+handlers = console
+
+[logger_mpulsweb]
+level = DEBUG
+handlers =
+qualname = mpulsweb
+
+[logger_jmdweb]
+level = DEBUG
+handlers =
+qualname = jmdweb
+
+[logger_jmdstrukturweb]
+level = DEBUG
+handlers =
+qualname = jmdstrukturweb
+
+
+[handler_console]
+class = StreamHandler
+args = (sys.stderr,)
+level = NOTSET
+formatter = generic
+
+[formatter_generic]
+format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
+datefmt = %H:%M:%S
+



More information about the Mpuls-commits mailing list