I can't seem to generate a request properly.

For example, in `main(`:

from pyramid.interfaces import IRequestFactory
from pyramid.request import Request

app = config.make_wsgi_app()
request_factory = app.registry.queryUtility(IRequestFactory, 
default=Request)
request = request_factory.blank("/")

The query for IRequestFactory always returns None,  leaving me with the 
default `Request` (which has none of the configured `add_request_method` 
attributes)

I've also tried this using `get_app(config_uri)` from scripting. 

Am I querying the wrong interface, or is this just not a compatible 
use-case?


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/pylons-discuss/c46029eb-e0c4-4f75-82d1-2971f55a49bcn%40googlegroups.com.

Reply via email to