[Checkins] SVN: grokproject/trunk/grokproject/template_paste/	decouple paster ini and zope conf files
    Michael Haubenwallner 
    michael at d2m.at
       
    Wed Dec 10 04:16:55 EST 2008
    
    
  
Log message for revision 93836:
  decouple paster ini and zope conf files
Changed:
  U   grokproject/trunk/grokproject/template_paste/etc/debug.ini_tmpl
  U   grokproject/trunk/grokproject/template_paste/etc/deploy.ini_tmpl
  U   grokproject/trunk/grokproject/template_paste/src/+package+/startup.py_tmpl
-=-
Modified: grokproject/trunk/grokproject/template_paste/etc/debug.ini_tmpl
===================================================================
--- grokproject/trunk/grokproject/template_paste/etc/debug.ini_tmpl	2008-12-10 09:03:41 UTC (rev 93835)
+++ grokproject/trunk/grokproject/template_paste/etc/debug.ini_tmpl	2008-12-10 09:16:55 UTC (rev 93836)
@@ -10,4 +10,8 @@
 [server:main]
 use = egg:Paste#http
 host = 127.0.0.1
-port = 8080
\ No newline at end of file
+port = 8080
+
+[DEFAULT]
+# set the directory of zope conf files (if not the same as the ini file)
+zope_conf = %(here)s
\ No newline at end of file
Modified: grokproject/trunk/grokproject/template_paste/etc/deploy.ini_tmpl
===================================================================
--- grokproject/trunk/grokproject/template_paste/etc/deploy.ini_tmpl	2008-12-10 09:03:41 UTC (rev 93835)
+++ grokproject/trunk/grokproject/template_paste/etc/deploy.ini_tmpl	2008-12-10 09:16:55 UTC (rev 93836)
@@ -4,4 +4,8 @@
 [server:main]
 use = egg:Paste#http
 host = 127.0.0.1
-port = 8080
\ No newline at end of file
+port = 8080
+
+[DEFAULT]
+# set the directory of zope conf files (if not the same as the ini file)
+zope_conf = %(here)s
\ No newline at end of file
Modified: grokproject/trunk/grokproject/template_paste/src/+package+/startup.py_tmpl
===================================================================
--- grokproject/trunk/grokproject/template_paste/src/+package+/startup.py_tmpl	2008-12-10 09:03:41 UTC (rev 93835)
+++ grokproject/trunk/grokproject/template_paste/src/+package+/startup.py_tmpl	2008-12-10 09:16:55 UTC (rev 93836)
@@ -6,7 +6,7 @@
 import zope.app.debug
 
 def application_factory(global_conf, conf='zope.conf'):
-    zope_conf = os.path.join(global_conf['here'], conf)
+    zope_conf = os.path.join(global_conf['zope_conf'], conf)
     return zope.app.wsgi.getWSGIApplication(zope_conf)
 
 def interactive_debug_prompt(zope_conf='${package_directory}/etc/zope.conf'):
    
    
More information about the Checkins
mailing list