In the pshell you could get to "the current request" with
pyramid.threadlocal.get_current_request(). Obviously this is bad behavior
almost everywhere else.
request.registry is created by the configurator (which is gone now) and
request.registry.settings tends to be the values from your Paste Deploy
file.
Sorry to disappoint, but the best way to know what was configured is to look
at the code that does the configuration in the first place. Neither the
Configurator() nor the registry state, in plain terms, the API of your
configured application.
I usually use pshell for things like DBSession.query(User).set_password('I
forgot again'); import transaction; transaction.commit(). My root object
also happens to have useful methods like root['users'][1]
Daniel
--
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.