Ok, I'll see if i can make the same error happen with some simple repeatable
steps,

I'm thinking the following should work right?

- install simple starter app from the paster starter templates
- make some zcml
- add a basic package to the same environment
- make some conflicting zcml
- see what happens?

I usually just use buildout, I could use virtualenv for the test if would be
more helpful or repeatable.

thanks, I want my shiny new debug toolbar! ;-)

iain

On Wed, Oct 5, 2011 at 2:30 PM, Chris McDonough <[email protected]> wrote:

> On Wed, 2011-10-05 at 10:51 -0700, Iain Duncan wrote:
> > Hi Chris, sorry for the delay, was out of town and off line.
> >
> >
> > My zcml works with Pyramid 1.1 and fails with 1.2.1, using the same
> > egg for pyramid_zcml, 0.6
> >
> >
> > The failure is part of a pretty huge set of zcml inter-relations,
> > would it be useful to have me test this with a blank starting template
> > that imports some trivial but conflicting zcml from another package in
> > the same python evironment? Not sure if I could do that today, but
> > could do it in the next few days.
>
> Any help making it repeatable on a system other than your own would be
> great.
>
> - C
>
>
> >
> >
> > thanks
> > Iain
> >
> >
> > On Wed, Sep 28, 2011 at 4:44 PM, Chris McDonough <[email protected]>
> > wrote:
> >
> >         What version of pyramid_zcml are you running?  Can you paste
> >         the
> >         smallest bit of zcml that fails for you?
> >
> >         On Wed, 2011-09-28 at 16:18 -0700, Iain Duncan wrote:
> >         > 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-discuss" group.
> >         > To post to this group, send email to
> >         [email protected].
> >         > To unsubscribe from this group, send email to pylons-discuss
> >         > [email protected].
> >         > For more options, visit this group at
> >         > http://groups.google.com/group/pylons-discuss?hl=en.
> >
> >
> >         --
> >         You received this message because you are subscribed to the
> >         Google Groups "pylons-discuss" group.
> >         To post to this group, send email to
> >         [email protected].
> >         To unsubscribe from this group, send email to pylons-discuss
> >         [email protected].
> >         For more options, visit this group at
> >         http://groups.google.com/group/pylons-discuss?hl=en.
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "pylons-discuss" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to pylons-discuss
> > [email protected].
> > For more options, visit this group at
> > http://groups.google.com/group/pylons-discuss?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>

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

Reply via email to