In my def main(global_config, **settings)
I have the config = Configuration(...) variable. How would I access this config variable from my views? Some people have suggested using request.registry.settings, but I don't see it in that dictionary in my 1.3.3 version. Background: I am using pyramid_ldap, and there is a config.ldap_set_login_query() that I would like to dynamically set (the ldap search base) depending on the type of request: http://docs.pylonsproject.org/projects/pyramid_ldap/en/latest/ Also, if I wanted to do something before each and every request, what is the best way? What about just after the request is sent handled? Pylons used to have a __before__ and __after__, I don't think those are working here. Thanks -- 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/-/1nX3whIB_dUJ. 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.
