Live data from Hacker News

Cross framework web development: bottle, flask, pyramid, tornado, web2py

github.com

11–12 of 12 posts

Re: Cross framework web development: bottle, flask, pyramid, tornado, web2py

#11
post #10

Earlier quoted context omitted.

It would be interesting to see how you tried it in the DAL and the alternative that you found easier in SQLAlchemy. Can you show an example?

Thanks for asking politely (I mean that truly). I'm on deadline now but I'll post back here in a day or two with the problems I ran into.

Great. Thanks.

Re: Cross framework web development: bottle, flask, pyramid, tornado, web2py

#12
post #3
post #2

I am missing the purpose of this library. When I use Flask, I use Flask-SQLAlchemy for Data Access and ORM, Flask-WTForm for forms and Jinja2 for templates. I don't see what I gain by using the web2py components in Flask.

I actually moved from web2py to Flask and Flask-SQLAlchemy as my framework of choice because of the limitations imposed by the web2py DAL (try modeling a school, for example, with the relationships between teachers, students, parents, and classes. It's very difficult in practice on the DAL). The rest of the web2py framework is excellent, and support is very good. I wish Massimo had spent some of the time he spent ada…

> try modeling a school, for example, with the relationships between teachers, students, parents, and classes.

The DAL can be used to model any set of tables and relationships that can be created in an RDBMS, so it's not clear what the problem would be modeling the relationships among these entities. Should be fairly straightforward.

Post reply on HN