Florent Aide wrote:

> This coupling with ActiveMapper was one of the gripes I had with the
> 1.0 database layer of TurboGears, it made things difficult to evolve.

Agreed, even as the person who made ActiveMapper!  The problem isn't so
much that ActiveMapper support was there, it was that the particular
method of building SQLAlchemy / ActiveMapper support into TurboGears was
fragile, and part of the core, which should stay as simple and stable
as possible.  You can't have flexible and stable core if you hardcode
database support into the core in a *very* specific way.

Which brings me to my next point...

> For stability and evolutivity reasons I would prefer to not include
> extensions like this one (Elixir) in the core of the TG database
> layer. I am really happy that a simple line in the model.py file will
> make things work.

I had a discussion with Mark yesterday about this, and I actually
recommended that in the future, starting with TurboGears 2.0, that *no*
database integration would exist inside the *core* of TurboGears itself.

I have been using Pylons (via TurboGears 2.0) a lot lately, and have
come to truly appreciate their approach to database integration,
where none is included, but they provide nice tutorials on how to
integrate your favorite database package.  I think TurboGears should go
a step further by providing SQLAlchemy and Elixir (and even SQLObject
for backwards compatibility purposes) support eggs available.  The
SQLAlchemy support egg should probably be installed with the base
TurboGears package, while the Elixir one should only be installed if
you explicitly ask for it, or if you install the TurboGears-Extras
metapackage.

I don't want people to get the impression that I am encouraging them to
not use Elixir though, as I think its really beginning to come into its
own, and is a lot of fun to use!  I just want TurboGears to become a
leaner project, that is easier to maintain in the future, and bursting
these things out into separate eggs will make life a lot easier.

--
Jonathan LaCour
http://cleverdevil.org


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to