When using pshell scripts that bootstrap the pyramid environment with a
fake request, the request does not go through the view mechanism and as
such does not get the read_only attribute assigned.
This commit add support for doing the following in a pshell script:
from pyramid.paster import bootstrap
env = bootstrap(parser.parse_args().config)
env["request"].db
When using pshell scripts that bootstrap the pyramid environment with a fake request, the request does not go through the view mechanism and as such does not get the
read_only
attribute assigned.This commit add support for doing the following in a pshell script: