On Mar 23, 11:31 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote:
> Why? It seems intuitive to me.  The  first request doesn't know what
> the URL is but it knows the user shouldn't be going out of the preview
> section.

The first request should be able to decide if it will redirect to an
error, or a 'unprivileged without preview cookie, login/etc'

> The really proper way is to call url_for and have it  return a valid
> URL.  That assumes you've set specific routes to all valid locations,
> which you should normally do anyway, although it gets difficult if one
> action handles a large subtree.  If it returns None, the URL is
> invalid so you call url_for("preview") instead.

that would be ideal.  url_for() doesnt seem to work like that though
(maybe its because of the debug environment?) it spits back the same
url i give it, or will give me a named url.  its annoying.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to