You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was something that took me quite a while to figure out since it was not obvious to me how to do it. I wanted to use my own root factory (e.g. MyRootFactory), and the code:
# register root factory, only if not set alreadyifconfigurator.registry.queryUtility(IRootFactory) isNone:
configurator.set_root_factory(
'pyramid_fullauth.auth.BaseACLRootFactoryMixin')
confused me. In the end I found out that I could do:
How did you indent this to be used ? I ended up doing this only since I did not find another way that worked - so I am guessing it might not be the most natural way.
Would be nice with some documentation describing this, possibly with a small example.
The text was updated successfully, but these errors were encountered:
I wanted a generic name for the 's:user' so I basically changed the ('password_change', 'email_change') to 'user'.
In addition I did not want to care about inactive vs active users at this point, so allowing 's:inactive' in addition. But that's something I'll probably change later.
This was something that took me quite a while to figure out since it was not obvious to me how to do it. I wanted to use my own root factory (e.g.
MyRootFactory
), and the code:confused me. In the end I found out that I could do:
to make sure my factory was used instead.
How did you indent this to be used ? I ended up doing this only since I did not find another way that worked - so I am guessing it might not be the most natural way.
Would be nice with some documentation describing this, possibly with a small example.
The text was updated successfully, but these errors were encountered: