A quick question about basic CRUD for both humans (basic HTML) and computers
(REST)

I'm trying to pick a solid python framework for a project at work.  We have 
a
lot of situations where we need to expose datbase tables for data CRUD.

I'm trying to pick between Flask and Web2py at this time, but I've got a
specific need that I'm not sure is solved by either framework.

Obviously for human consumption, I'll be using some sort of form-library 
that
will read the table-schema auto-create the form for me.  (Built in with 
Web2py,
WTForms + SQL-Alchemy for Flask.)  For the REST interfaces, I'll use a 
similar
library (Built in with Web2py, flask-rest for flask).

What I'd REALLY like, is to have both the REST interfaces and html-forms 
use as
much of a common code-path as possible.  It's really frustrating when things
like data-validation work differently between one's REST interfaces and 
one's
html forms.

Thusfar, in my investigations with both frameworks, I've felt that both
mechanisms appear quite different, and/or I have to do a lot of manual 
parsing
of XML in the Post/Put REST case.

HOWEVER...  I've really only spent a little time investigating either one.
It's extremely likely that I'm just completely missing the best way to solve
the issue I'm describing.

Can anyone point me to an example that works the way I'm describing?

Hopefully, I have asked my question well enough.  :-) I'm feeling horribly
inelequent right now.

-- 



Reply via email to