Permalink
Browse files

Fix paster template to include pyramid_zcml.

  • Loading branch information...
1 parent b2b6ce5 commit cc351cc26df8ae1c3d3be05fdd8a813bb0fc4c6e @mcdonc mcdonc committed Jan 18, 2011
@@ -6,6 +6,7 @@ def main(global_config, **settings):
"""
zcml_file = settings.get('configure_zcml', 'configure.zcml')
config = Configurator(root_factory=Root, settings=settings)
+ config.include('pyramid_zcml')
config.load_zcml(zcml_file)
return config.make_wsgi_app()
@@ -1,7 +1,7 @@
<configure xmlns="http://pylonshq.com/pyramid">
<!-- this must be included for the view declarations to work -->
- <include package="pyramid.includes" />
+ <include package="pyramid_zcml" />
<view
context=".resources.Root"
@@ -6,7 +6,7 @@ here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
-requires = ['pyramid', 'WebError']
+requires = ['pyramid', 'pyramid_zcml', 'WebError']
setup(name='{{project}}',
version='0.0',

0 comments on commit cc351cc

Please sign in to comment.