URLs in pyramid are generated based on the context of the request.
Therefore if there is no request telling the generator what the
host/port/subpath are, pyramid will not know the correct URL to generate.

You can trick pyramid with a fake request, but that's just the way it is.

You may want to just get the base url from a setting in your INI and create
it that way.

Michael

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to