mirror of
https://github.com/wassname/pyramid_formalchemy.git
synced 2026-08-11 11:23:53 +08:00
fix tests
This commit is contained in:
@@ -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,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=""
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user