[Chicago] web2py 1.20 is out

Daniel Griffin dgriff1 at gmail.com
Tue Feb 5 19:25:33 CET 2008

Most of these frameworks are made or broken by their ORM, Active Record is
probably the biggest component of rails and incidentally the reason Rails
kinda sucks at legacy applications, they assume that every table has an
auto-incrementing int called "id". If you dont have that field you can
either change primary_key to the new one, then rip through all the generated
code fixing references or you can add a "surrogate" key.
The problem with surrogate keys is that the actual keys can lose meaning,
django tells you to add constraints and validation to try to maintain any
actual meaning. I maintain that you shouldnt need to change your tables to
make a front end work.

So really, the ORM generally makes or breaks legacy app support.


On Feb 5, 2008 12:11 PM, Martin Maney <maney at two14.net> wrote:

> On Tue, Feb 05, 2008 at 10:52:26AM -0600, Ian Bicking wrote:
> > Martin Maney wrote:
> > > Are there any frameworks that don't pretty much assume you're starting
> > > from scratch?  I'd say that all of them that I've looked at for more
> > > than the briefest glance leverage the assumption that the project is
> > > all new (and needn't consider anyone accessing its data except through
> > > the app built using the framework) as a hugely simplifying assumption
> -
> > > only one shape of holes and pegs, once again.
> >
> > SQLAlchemy and Storm are both generally flexible enough to handle legacy
> > database schemas.  Paste includes several tools for proxying and calling
> > subprocesses, which lets you treat an external web application as just
> > another part of your application.
> Yeah, I recall that SQLAlchemy was far less of a crippled compromise
> than any other ORM I'd ever seen, but in itself it's hardly a web app
> framework (and so it didn't usefully solve any of my immediate problems
> - substituting its notation for existing SQL would have been little
> more than make-work, and using it with the small Django app(let)s would
> merely have broken the automagical admin and other stuff that make up
> half of the reason Django is useful to me).  I don't remember having
> heard of Storm before.
> Hmmm, now what shall I do with this dodecahedral peg? ...
> --
> Vs lbh pna ernq guvf, lbh'er va ivbyngvba bs
> gur Qvtvgny Zvyyraavhz Pbclevtug Npg.  -- anon.
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/chicago/attachments/20080205/486791fa/attachment.htm 

More information about the Chicago mailing list