Hey folks, I discovered that my zcml using includeOverrides chokes when I
upgrade to Pyramid 1.2. I have tested that the issue goes away or reappears
from doing nothing except switching my pyramid egg from 1.1 to 1.2

I have some packages with zcml in them, I include some others that redefine
routes, and I include the others like so:

<!-- application's routes -->
<includeOverrides file="routes.zcml" />

With 1.2, I get error messages about conflicting configuration actions,
traceback included below

I looked through what's new in Pyramid 1.2 and whats deprecated and couldn't
see anything that made me think this would not work anymore, but maybe I
missed something?

thanks
Iain

Traceback (most recent call last):
File "bin/paster", line 53, in <module>
paste.script.command.run()
File
"/home/cms_demos/Test/eggs/PasteScript-1.7.4.2-py2.6.egg/paste/script/command.py",
line 104, in run
invoke(command, command_name, options, args[1:])
File
"/home/cms_demos/Test/eggs/PasteScript-1.7.4.2-py2.6.egg/paste/script/command.py",
line 143, in invoke
exit_code = runner.run(args)
File
"/home/cms_demos/Test/eggs/PasteScript-1.7.4.2-py2.6.egg/paste/script/command.py",
line 238, in run
result = self.command()
File
"/home/cms_demos/Test/eggs/PasteScript-1.7.4.2-py2.6.egg/paste/script/serve.py",
line 284, in command
relative_to=base, global_conf=vars)
File
"/home/cms_demos/Test/eggs/PasteScript-1.7.4.2-py2.6.egg/paste/script/serve.py",
line 321, in loadapp
**kw)
File
"/home/stabil/Stabil/eggs/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py",
line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File
"/home/stabil/Stabil/eggs/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py",
line 272, in loadobj
return context.create()
File
"/home/stabil/Stabil/eggs/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py",
line 710, in create
return self.object_type.invoke(self)
File
"/home/stabil/Stabil/eggs/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py",
line 203, in invoke
app = context.app_context.create()
File
"/home/stabil/Stabil/eggs/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py",
line 710, in create
return self.object_type.invoke(self)
File
"/home/stabil/Stabil/eggs/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py",
line 146, in invoke
return fix_call(context.object, context.global_conf, **context.local_conf)
File
"/home/stabil/Stabil/eggs/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/util.py",
line 56, in fix_call
val = callable(*args, **kw)
File "/home/cms_demos/Test/test/app.py", line 85, in app
config.commit()
File
"/home/cms_demos/Test/eggs/pyramid-1.2-py2.6.egg/pyramid/config/__init__.py",
line 484, in commit
self.action_state.execute_actions()
File
"/home/cms_demos/Test/eggs/pyramid-1.2-py2.6.egg/pyramid/config/__init__.py",
line 899, in execute_actions
for action in resolveConflicts(self.actions):
File
"/home/cms_demos/Test/eggs/pyramid-1.2-py2.6.egg/pyramid/config/__init__.py",
line 1013, in resolveConflicts
raise ConfigurationConflictError(conflicts)
pyramid.exceptions.ConfigurationConflictError: Conflicting configuration
actions
For: ('view', <class 'pyramid.httpexceptions.HTTPForbidden'>, '', None,
<InterfaceClass pyramid.interfaces.IView>, None, None, None, None, None,
False, None, None, None, None)
File "/home/cms_demos/Test/test/routes.zcml", line 18.2-23.4
<view
view="test.views.error_views.forbidden_view"
context="pyramid.exceptions.Forbidden"
renderer="test.templates:forbidden.pt"
wrapper="content_wrapper"
/>
File
"/home/xornot/framework_pyramid/src/xornot.auth/xornot/auth/configure.zcml",
line 12.2-15.4
<forbidden
view="xornot.auth.views.forbidden"
renderer="xornot.auth.templates:forbidden.pt"
/>
iain@musicbox:/home/cms_demos/Test$

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to