[Checkins] SVN: grok/branches/philikon-eggification/buildout.cfg
Now that we no longer install Zope 3 (neither from SVN nor
from a tarball)
Philipp von Weitershausen
philikon at philikon.de
Tue Apr 17 15:00:54 EDT 2007
Log message for revision 74214:
Now that we no longer install Zope 3 (neither from SVN nor from a tarball)
there'll be no mkzopeinstance script. The old zc.recipe.zope3instance recipe
won't work anymore.
Use the new zc.zope3recipes recipes to define an application and an instance.
Unfortunately, this requires us to dump a lot of ZCML into buildout.cfg (that
can be considered an advantage since it provides us with much more control).
An advantage of the zc.zope3recipes:app recipe is that it creates a
"bin/<name_of_instance_section>" script that works like zopectl.
After running the buildout, start Zope with bin/instance fg. Enjoy.
Changed:
U grok/branches/philikon-eggification/buildout.cfg
-=-
Modified: grok/branches/philikon-eggification/buildout.cfg
===================================================================
--- grok/branches/philikon-eggification/buildout.cfg 2007-04-17 18:57:24 UTC (rev 74213)
+++ grok/branches/philikon-eggification/buildout.cfg 2007-04-17 19:00:53 UTC (rev 74214)
@@ -1,61 +1,82 @@
[buildout]
develop = . grokwiki ldapaddressbook
-parts = zope3 data instance testdata testinstance test
+parts = app data instance test
+find-links = http://download.zope.org/distribution/
[zope3]
-recipe = zc.recipe.zope3checkout
-url = svn://svn.zope.org/repos/main/Zope3/branches/3.3
+# this dead chicken is needed by some other recipe(s)
+location =
+[app]
+eggs = grok
+ grokwiki
+recipe = zc.zope3recipes:app
+site.zcml = <include package="zope.security" file="meta.zcml" />
+ <include package="zope.i18n" file="meta.zcml" />
+ <include package="zope.app.securitypolicy" file="meta.zcml" />
+ <include package="zope.app.zcmlfiles" file="meta.zcml" />
+ <include package="grok" file="meta.zcml" />
+
+ <include package="zope.annotation" />
+ <include package="zope.copypastemove" />
+ <include package="zope.formlib" />
+ <include package="zope.i18n.locales" />
+ <include package="zope.publisher" />
+ <include package="zope.size" />
+ <include package="zope.traversing" />
+ <include package="zope.traversing.browser" />
+ <include package="zope.publisher" />
+ <include package="zope.app.zcmlfiles" />
+ <include package="zope.app.securitypolicy" />
+ <include package="zope.app.authentication" />
+ <include package="zope.app.catalog" />
+ <include package="zope.app.intid" />
+ <include package="zope.app.keyreference" />
+ <include package="zope.app.twisted" />
+ <include package="grok" />
+ <include package="grokwiki" />
+
+ <securityPolicy
+ component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
+
+ <unauthenticatedPrincipal id="zope.anybody"
+ title="Unauthenticated User" />
+ <unauthenticatedGroup id="zope.Anybody"
+ title="Unauthenticated Users" />
+ <authenticatedGroup id="zope.Authenticated"
+ title="Authenticated Users" />
+ <everybodyGroup id="zope.Everybody"
+ title="All Users" />
+ <principal id="zope.manager"
+ title="Manager"
+ login="grok"
+ password_manager="Plain Text"
+ password="grok"
+ />
+
+ <!-- Replace the following directive if you don't want
+ public access -->
+ <grant permission="zope.View"
+ principal="zope.Anybody" />
+ <grant permission="zope.app.dublincore.view"
+ principal="zope.Anybody" />
+
+ <role id="zope.Manager" title="Site Manager" />
+ <role id="zope.Member" title="Site Member" />
+ <grantAll role="zope.Manager" />
+ <grant role="zope.Manager"
+ principal="zope.manager" />
+
[data]
recipe = zc.recipe.filestorage
-[testdata]
-recipe = zc.recipe.filestorage
-
-[testinstance]
-recipe = zc.recipe.zope3instance
-database = testdata
-user = grok:grok
-eggs = setuptools
- grok
-zcml = zope.annotation
- zope.copypastemove
- zope.formlib
- zope.i18n-meta
- zope.i18n.locales
- zope.publisher
- zope.security-meta
- zope.size
- zope.traversing
- zope.traversing.browser
- zope.app
- zope.app-meta
- zope.app.securitypolicy
- zope.app.securitypolicy-meta
- zope.app.authentication
- zope.app.catalog
- zope.app.intid
- zope.app.keyreference
- grok
- grok-meta
-
[instance]
-recipe = zc.recipe.zope3instance
-database = data
-user = grok:grok
-eggs = setuptools
- grok
- grokwiki
+recipe = zc.zope3recipes:instance
+application = app
+zope.conf = ${data:zconfig}
-zcml = ${testinstance:zcml}
- zope.app.twisted
- grokwiki
-
[test]
recipe = zc.recipe.testrunner
eggs = grok
-extra-paths = parts/zope3/src
-working-directory = parts/testinstance
-defaults = ['--tests-pattern', '^f?tests$',
- '-v'
- ]
+working-directory = parts/instance
+defaults = ['--tests-pattern', '^f?tests$', '-v']
More information about the Checkins
mailing list