On 2/3/07, Karl Guertin <[EMAIL PROTECTED]> wrote: > > > On 2/3/07, iain duncan <[EMAIL PROTECTED]> wrote: > > Which also made me wonder, why not add an addUser() method to the SA API > > and make them more consistent? ( Wrapping the g.users.appennd(u) ) Are > > there good reasons to not do so that I'm not thinking of? > > The group.addUser() API is SO's way of adding an item to a > many-to-many relation. group.users.append() is SA's way. The goal for > TG 2.0 is to reduce the surface area of TG, so adding wrappers doesn't > really make sense (and I don't want to create more docs work > explaining why identity is a special case exception when you're using > SA).
yes indeed the Class1.addClass2 is very couple with how SO works in fact there is no obvious way to make it point somewhere else (the non-obvious way is using sqlmeta) now in SA the "users" variable of the group instance can be almost anything in fact it could even be a temp variable therefore forcing an SO api on top of SA is not a good idea, it was removed by popular demand :) http://trac.turbogears.org/changeset/1997, now if you really want that and that is why TG identity is so cool, all you need to do is reproduce the old classes on your model and everything will work like a charm either coping over the "red parts" from there or having old quickstart code generate your SA wrapper, warning most people dislike ActiveMapper because they though it was SO build on top of SA which was the best of both worlds, but it wasn't that is why the author and the guy that made TurboEntity and some other people are working on a new SO-like mapper. Karl what's your opinion on I think that doesn't harms please let me know if it does so I won't include it. http://trac.turbogears.org/ticket/1271 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

