Ok I have another question....

Do all the form packages like formalchemy or Deform assume that forms are 
submitted via a "form submit" action?

I am contemplating on using Deform for my form validations, but I am 
currently submitting the forms using an AJAX POST request; sending data as 
JSON to the backend Pyramid.  Why?  Well, the forms are a bit complex and 
because I use CouchDB, the JSON is easily saved.  The problem is, I need to 
write a bunch of code to validate the received JSON from the frontend.  

Is this a right or wrong way?  Part of me feels that this way is more 
convenient to save the data, but I would be unable to make use of the 
beaker session object, say for showing flash messages.  

Advise needed.  Thanks in advance!

On Sunday, 7 October 2012 17:33:19 UTC+8, Chris McDonough wrote:
>
> On Sun, 2012-10-07 at 01:56 -0700, Mark Huang wrote: 
> > Hi, 
> > 
> > 
> > I have a question about form handling with packages like 
> > Deform/Colander.  From my brief understanding, these packages assume 
> > that you use a relational database so that it can create a schema for 
> > your form. 
>
> No, this is not correct.  Neither deform nor colander assume anything 
> about databases; they know nothing about databases. 
>
> >  The problem with my use-case is that I am using CouchDB, a document 
> > database.   
> > 
> > 
> > Would deform work for CouchDB?  Are there any packages that do 
> > something similar like deform for Pyramid using CouchDB? 
>
> Deform. ;-) 
>
> - C 
>
> > 
> > 
> > Regards, 
> > Mark Huang 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "pylons-discuss" group. 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msg/pylons-discuss/-/GfP1phJlm1YJ. 
> > To post to this group, send email to 
> > [email protected]<javascript:>. 
>
> > To unsubscribe from this group, send email to pylons-discuss 
> > [email protected] <javascript:>. 
> > For more options, visit this group at 
> > http://groups.google.com/group/pylons-discuss?hl=en. 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/yqqqWyuuWisJ.
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