[Checkins] SVN: zc.zope3recipes/trunk/zc/zope3recipes/ Revert
r77836. Will use a different strategy.
Philipp von Weitershausen
philikon at philikon.de
Sat Jul 14 09:06:19 EDT 2007
Log message for revision 77925:
Revert r77836. Will use a different strategy.
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-14 13:00:42 UTC (rev 77924)
+++ zc.zope3recipes/trunk/zc/zope3recipes/README.txt 2007-07-14 13:06:19 UTC (rev 77925)
@@ -315,9 +315,9 @@
Run Application Solely from Eggs
--------------------------------
-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:
+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:
>>> write('buildout.cfg',
... '''
@@ -325,6 +325,9 @@
... 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-14 13:00:42 UTC (rev 77924)
+++ zc.zope3recipes/trunk/zc/zope3recipes/recipes.py 2007-07-14 13:06:19 UTC (rev 77925)
@@ -41,11 +41,11 @@
self.name,
)
- zope3 = buildout.get(options.get('zope3', 'zope3'))
- if zope3 is not None and zope3.get('location'):
+ location = buildout[options.get('zope3', 'zope3')]['location']
+ if location:
options['zope3-location'] = os.path.join(
buildout['buildout']['directory'],
- zope3['location'],
+ location,
)
options['servers'] = options.get('servers', 'twisted')
More information about the Checkins
mailing list