Ben,

Thanks for the feedback. I've incorporated most of your comments.

"The Elixir approach usually results in shorter code. Some advanced

...

> Why recommend a method that limits you?


Well well, I should have guess that little comment would spark controversy
:-)

Elixir uses the Active Record pattern, which is more limited that the Data
Mapper pattern. You have to have a 1:1 relationship between objects and
tables, so you can't map and object to a select, or map multiple objects to
a table. These are rare things to do, and in any case, you can use plain SA
along side Elixir if you need.

I don't want to go into all this detail in the document. I've had a go at
rewording the paragraph, let me know what you think.


> "Plain SA with scoped_session. Use turbogears.database.session.mapper
> as the mapper:" ... why does this syntax differ from the example
> syntax given to you in a quick-started SA project, which uses
> sqlalchemy.orm.mapper instead?
>

If you use the latest trunk, session.mapper is the suggested default. This
will be in 1.0.4 and above.

It also doesn't give much detail on how to define the model.


I've added links to the SA/Elixir docs. No sense duplicating.

All the best,

Paul

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