LOL I did not reply because I do not want to start a war. So I am not going to make any serious comparison on this list. Come to our list for that. I have used TG a lot in the past. I have made a software for online portfolio analysis with it (TG1). I have also used Django a lot and made the portal of UN missions with it (http://www2.un.int). I am on this list because somebody pointed me to this thread, I am not normally spying on you. ;-)
To be honest I have not used TG2 much but I am familiar with its components, in particular Genshi and SQLAlchemy. I really like both of them but in web2py we took a different approach: Genshi is designed specifically for generating HTML/XML documents. The web2py template system is pure Python (similar to Mako but without indentation requirements) because we are very much interested in generating JS programmatically as well as XML/HTML. We have a lot going on in that direction recently. You can use Genshi with web2py if you install the module. SQLAlchemy focuses exclusively on relational databases and does not set restrictions on which tables can be accessed. This makes it great for legacy databases. web2py's DAL instead was designed to force the developer to follow good practice (as we defined] it): every record must have a unique auto increment id field and this record must be used for references. This means web2py cannot access all legacy databases as SQLAlchemy does. Nevertheless this constraint allowed us to create a sophisticated CRUD + web services structure that works on both relational databases and non-relational databases (such as the Google App Engine). You can use SQLAlchemy with web2py if you install the module but it will not have the ability to generate CRUD forms automatically for you. You need the web2py DAL for that. You can also use some SQLAlchemy and Django models with web2py WITHOUT installing SQLAlchemy and Django because web2py understands 90% of their syntax (we have compatibility modules). In this case you do not loose any web2py functionality. This is designed to help you port existing applications but it is not a recommended way of coding. Conversely you can use the web2py template system and the web2py DAL with TG and Pylons if you like (but I do know know anybody doing it and I cannot think of any good reason for doing so). If you need SQLAlchemy you should use TG2 or Pylons. This brings up a question I have and I have not had a decent answer to. Other than for accessing legacy databases why would one need SQLAlchemy over the web2py DAL? What functionality is missing in th web2py DAL that is in SQLAlchemy? Please understand I am not trying to be polemic, far from it, I am trying to learn from you so that we can improve. For new users anyway the difference in syntax for the DAL or the template syntax is probably not the most important feature difference between the two frameworks. I believe the biggest different is in the time to setup them and become productive. I sent Jens a private email saying that he should should try them both (5 minutes each, no more) and let us know what he thinks. I hope everybody realizes that we are not in competition and our "success" or "market share" are positively correlated. We are both based on Python, our users share very similar knowledge and experiences. Massimo On Apr 24, 5:08 am, Antoine Pitrou <[email protected]> wrote: > On Apr 24, 11:39 am, Jens Østergaard Petersen <[email protected]> > wrote: > > > Interesting posting! How many people _not_ using TG subscribe to the > > TG list? I had an off-list reply from the web2py developer - > > presumably he has run TG, but why does he not reply on-list? > > Maybe because Google Groups is a real pain in the ass. > (subliminal message to open source projects out there : please use > decent project management tools. Sometimes it's a real pain to get > interested in, and contribute to your projects) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

