Eric Woroshow wrote:
Hi all,
Is it somehow possible to retrieve the set of form errors reported by
the validate decorator in semantic order? By that I mean get a list of
errors in the same order as the field definitions in the schema. I'm
pretty sure the answer is no but I figured it
Wichert Akkerman wrote:
I'm trying to use @validate but it does not quite fit my needs.
Especially the fact that it automatically calls htmlfill which fails to
handle XHTML makes it a no-go.
Can you give an example of the XHTML it breaks on? This might not be a
difficult thing to resolve in
Previously Ian Bicking wrote:
Wichert Akkerman wrote:
I'm trying to use @validate but it does not quite fit my needs.
Especially the fact that it automatically calls htmlfill which fails to
handle XHTML makes it a no-go.
Can you give an example of the XHTML it breaks on? This might not
On Mar 23, 4:57 pm, Wichert Akkerman [EMAIL PROTECTED] wrote:
At the moment you get all four in one decorator. If you want a subset of
them you have to code the whole thing yourself. I'm not sure what the
best way to make that more modular - we don't want to make the common
case more
is there a way to test if a url is valid , or where it maps to?
i can't find that within the pylons code
use case:
i'm locking a project down to 'preview', and want to redirect
uncookied users to '/preview/%(original_request)' if that is a valid
url, and /preview otherwise.
On Sun, Mar 23, 2008 at 1:57 PM, Wichert Akkerman [EMAIL PROTECTED] wrote:
validate does lots of things:
- it extract parameters from a request according to a defined schema
- it validates the decoded data
- it optionally redirect the request elsewhere if validation fails
- it
On Sun, Mar 23, 2008 at 3:38 PM, Jonathan Vanasco [EMAIL PROTECTED] wrote:
is there a way to test if a url is valid , or where it maps to?
i can't find that within the pylons code
use case:
i'm locking a project down to 'preview', and want to redirect
uncookied users to
Wichert Akkerman wrote:
validate does lots of things:
- it extract parameters from a request according to a defined schema
- it validates the decoded data
These can't be that hard, can they? If they are hard, then we could
push a little something back into FormEncode, I suppose. If these
On Mar 23, 10:32 pm, Ian Bicking [EMAIL PROTECTED] wrote:
These can't be that hard, can they? If they are hard, then we could
push a little something back into FormEncode, I suppose. If these are
easy, then not using @validate should be easy, as it's the second two
items that I think
On Mar 23, 8:56 pm, Mike Orr [EMAIL PROTECTED] wrote:
You can check if there's a valid route by getting the routemapper out
of the environ and trying to match it, but that won't tell you whether
the controller and action exist. You'd have to duplicate Pylons'
dispatching code to do that.
On Sun, Mar 23, 2008 at 7:42 PM, Jonathan Vanasco [EMAIL PROTECTED] wrote:
On Mar 23, 8:56 pm, Mike Orr [EMAIL PROTECTED] wrote:
You can check if there's a valid route by getting the routemapper out
of the environ and trying to match it, but that won't tell you whether
the
11 matches
Mail list logo