[Checkins] SVN: zc.zope3recipes/trunk/zc/zope3recipes/ You no
longer need a [zope3] section with an empty location if you
install Zope 3
Philipp von Weitershausen
philikon at philikon.de
Fri Jul 13 06:48:51 EDT 2007
Log message for revision 77836:
You no longer need a [zope3] section with an empty location if you install Zope 3
completely from eggs.
Changed:
U zc.zope3recipes/trunk/zc/zope3recipes/README.txt
U zc.zope3recipes/trunk/zc/zope3recipes/recipes.py
-=-
Modified: zc.zope3recipes/trunk/zc/zope3recipes/README.txt
===================================================================
--- zc.zope3recipes/trunk/zc/zope3recipes/README.txt 2007-07-13 10:44:01 UTC (rev 77835)
+++ zc.zope3recipes/trunk/zc/zope3recipes/README.txt 2007-07-13 10:48:50 UTC (rev 77836)
@@ -315,9 +315,9 @@
Run Application Solely from Eggs
--------------------------------
-To run a Zope 3 application solely from eggs, value of location in
-zope3 section should be set to empty. Now we'll create a buildout.cfg
-file that defines our application with an empty location for zope3:
+To run a Zope 3 application solely from eggs, we don't need a zope3
+section at all. Now we'll create a buildout.cfg file that defines our
+application:
>>> write('buildout.cfg',
... '''
@@ -325,9 +325,6 @@
... develop = demo1 demo2
... parts = myapp
...
- ... [zope3]
- ... location =
- ...
... [myapp]
... recipe = zc.zope3recipes:app
... site.zcml = <include package="demo2" />
Modified: zc.zope3recipes/trunk/zc/zope3recipes/recipes.py
===================================================================
--- zc.zope3recipes/trunk/zc/zope3recipes/recipes.py 2007-07-13 10:44:01 UTC (rev 77835)
+++ zc.zope3recipes/trunk/zc/zope3recipes/recipes.py 2007-07-13 10:48:50 UTC (rev 77836)
@@ -41,11 +41,11 @@
self.name,
)
- location = buildout[options.get('zope3', 'zope3')]['location']
- if location:
+ zope3 = buildout.get(options.get('zope3', 'zope3'))
+ if zope3 is not None and zope3.get('location'):
options['zope3-location'] = os.path.join(
buildout['buildout']['directory'],
- location,
+ zope3['location'],
)
options['servers'] = options.get('servers', 'twisted')
More information about the Checkins
mailing list