Friday, January 25, 2013

Re: define form in yaml file

Hi,

Yes, this sounds interesting.
Push to github if your project allows this. :)

Thank you


vineri, 25 ianuarie 2013, 00:57:58 UTC+2, Chris Hinds a scris:

Hey,

I've got a project where models, forms and templates are all generated from a single yaml file. It works well here as the forms are long, with a fair amount of layout and plenty of formsets. 

I'm doing a refactor at the moment which should yield some reusable bits. I'd be very happy to share.

In general terms for model/form construction, I transform the original spec it to something that jsonpickle can deliver into type().

Can talk more if this sounds at all interesting.

Cheers

Chris.


On Thursday, January 24, 2013 8:02:53 PM UTC, Adrian Andreias wrote:
Hello,

I need a way to define a django form through a yaml file (or another text format).
Is there some code that already does this?
I'm trying to not reinvent the wheel.

I can't use simple python classes, since this would user input and would be a security risk and I need a simpler and limited format.

Thanks

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

No comments:

Post a Comment