[buildout]
develop = .
parts = app data zopectl i18n test waeupdocs coverage-detect coverage-report
find-links = http://download.zope.org/distribution/
newest = false
extends= http://grok.zope.org/releaseinfo/grok-1.0.cfg
versions = versions

[versions]
zc.sourcefactory = 0.3.5
zope.testing = 3.7.0
z3c.testsetup = 0.4.0
hurry.workflow = 0.10
hurry.query = 0.9.2
zope.xmlpickle = 3.4.0
hurry.yui = 2.7.0
hurry.zoperesource = 0.4
megrok.layout = 0.9


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

            <configure i18n_domain="waeup">
              <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"
                         />

	      <grant permission="zope.View"
                     principal="zope.Authenticated" />
	      <grant permission="zope.app.dublincore.view"
                     principal="zope.Authenticated" />

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

	      <grant permission="waeup.Public"
                     principal="zope.Everybody" />

              <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}

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

# Collect test coverage data.
[coverage-detect]
recipe = zc.recipe.testrunner
eggs = waeup
defaults = ['--tests-pattern', '^f?tests$', '-v', '--coverage', 'coverage']

# Create a coverage report.
# Make sure to run bin/coverage-detect to collect the data for the report
# first!
[coverage-report]
recipe = zc.recipe.egg
eggs = z3c.coverage
scripts = coverage
arguments = ('${buildout:parts-directory}/coverage-detect/coverage', '${buildout:parts-directory}/coverage-detect/coverage/report')



# this section named so that the i18n scripts are called bin/i18n...
[i18n]
recipe = lovely.recipe:i18n
package = waeup
domain = waeup
location = src/waeup
output = locales

[waeupdocs]
recipe = z3c.recipe.sphinxdoc
eggs = waeup [docs]
default.css =
layout.html = 

