[buildout]
parts = app data zopectl devpython test 
develop = .
versions = versions
extends = http://grok.zope.org/releaseinfo/grok-0.14.1.cfg

[versions]
zope.testing = 3.6.0

[app]
recipe = zc.zope3recipes>=0.5.3:application
eggs = inghist.sample
site.zcml = <include package="Sample" />
            <include package="zope.app.twisted" />

            <configure i18n_domain="ingforms">

            <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="admin"
                       password_manager="Plain Text"
                       password="admin"
                       />

            <!-- 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" />
            </configure>

[data]
recipe = zc.recipe.filestorage

# this section named so that the start/stop script is called bin/zopectl
[zopectl]
recipe = zc.zope3recipes:instance
application = app
zope.conf = ${data:zconfig}
   <server>
      address 8080
      type HTTP
    </server>

[devpython]
recipe = zc.recipe.egg
interpreter = devpython
eggs = Sample

[test]
recipe = zc.recipe.testrunner
eggs = Sample
defaults = ['--tests-pattern', '^f?tests$', '-v']
