fix tests

This commit is contained in:
Gael Pasgrimaud
2011-01-15 23:33:46 +01:00
parent 16ab8b45ad
commit 039f8e33d2
3 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ def include(config):
"""include formalchemy's zcml"""
config.load_zcml('pyramid.includes:configure.zcml')
config.load_zcml('pyramid_formalchemy:configure.zcml')
config.load_zcml('pyramid_formalchemy:views.zcml')
config.load_zcml('pyramid_formalchemy:view.zcml')
def include_jquery(config):
"""include formalchemy's zcml"""
+1 -4
View File
@@ -1,8 +1,5 @@
<?xml version="1.0"?>
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
>
<configure xmlns="http://pylonshq.com/pyramid">
<view
name=""
+2 -2
View File
@@ -13,8 +13,8 @@ def main(global_config, **settings):
config.add_static_view('static', 'pyramidapp:static')
config.add_route('home', '/', view='pyramidapp.views.my_view',
view_renderer='templates/mytemplate.pt')
pyramid_formalchemy.include_jquery(config)
pyramid_formalchemy.configure(config, package='pyramidapp', use_jquery=True)
pyramid_formalchemy.include(config)
pyramid_formalchemy.configure(config, package='pyramidapp')
return config.make_wsgi_app()