Re: [mezzanine-users] Form validation in Page Processors

2014-03-05 Thread Danny flack
Well, I have a solution to my issue but I have a feeling its more of a hack. Let me explain, but bear with me because I'm typing/coding with one arm as I broke my wrist last weekend and am in a cast. It's a painfully slow experience. *Problem*: Be able to run extra validation on a Page's Form via

Re: [mezzanine-users] Form validation in Page Processors

2014-03-04 Thread Josh Cartmell
So I'm not actually sure about adding extra validation to the Form content type. I would start by looking at the default form page processor, https://bitbucket.org/stephenmcd/mezzanine/src/ea1095020def16365c418dd3a7541635d38a2916/mezzanine/forms/page_processors.py?at=default#cl-26 . One problem y

Re: [mezzanine-users] Form validation in Page Processors

2014-03-04 Thread Josh Cartmell
Hey Danny, Check out the example at https://mezzanine.jupo.org/docs/content-architecture.html#page-processors, I think it will get you started down the right path and shows how to handle validation in a processor. On Tue, Mar 4, 2014 at 9:37 AM, Danny flack wrote: > Is it possible to validate

[mezzanine-users] Form validation in Page Processors

2014-03-04 Thread Danny flack
Is it possible to validate a form in a page processor? I know you're able to override the associated form by something like: *@processor_for('rsvp')* *def rsvp_form(request, page): * *form = RsvpForm() # a custom form i created to override the page's form* *return {"form": form}* Bu