Re: Context still is DefaultRootFactory although root_factory is custom

34 views
Skip to first unread message

Michael Merickel

unread,
Nov 6, 2012, 2:42:52 PM11/6/12
to pylons-...@googlegroups.com

This is not expected. You'll have to paste some code to figure out why this may be the case.

On Nov 6, 2012 1:36 PM, "khairi hafsham" <juman...@gmail.com> wrote:
hi,

in my application, a custom RootFactory is passed as an argument to the Configurator. But when debugging for permission, the context for all views is still DefaultRootFactory. only when the custom factory passed to the add_route() method, will it be the context for the particular route. is this to be expected? fyi, i am using url dispatch and the pyramid is version 1.3.4

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/XqA4HwbdZksJ.
To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.

khairi hafsham

unread,
Nov 7, 2012, 8:33:09 AM11/7/12
to pylons-...@googlegroups.com
thank you for the fast reply. after hours of debugging, it turned out to be a silly mistake. there was another duplicate configurator overwriting the one that i set with the custom rootfactory. sorry for wasting your time.
Reply all
Reply to author
Forward
0 new messages