On Mon, 2007-05-02 at 01:20 -0400, Jorge Vargas wrote:
> On 2/5/07, iain duncan <[EMAIL PROTECTED]> wrote:
>         
>         >         I guess one area of confusion right now is what the
>         role of
>         >         the various
>         >         mapper choices are. It would be great to have some
>         form of
>         >         unified api
>         >         for the core components IMO, like being able to use
>         identity 
>         >         with
>         >         similar calls, so that if somebody starts using a
>         tutorial on
>         >         session/identities/widgets, whatever, they can count
>         on it
>         >         "just
>         >         working" with nothing more than a difference in what
>         they 
>         >         import.
>         >
>         > huh? how can you have the same api for two totally different
>         > components?
>         
>         Take identity for example. Is there any reason not to have a
>         set of
>         methods and a table structure that look identical to the user
>         for things 
>         like adding and removing a user to a permission group?
> 
> actually that is like that right now the autogenerated Model classes
> have identical interfaces
> except some minor error's in the translation like
> http://trac.turbogears.org/ticket/1271 (by the way thanks for
> reminding me of that one I forgot to assign it to myself)
> 
> 
>         At the moment with SO we use group.addUser(user). No reason
>         the exact
>         same syntax couldn't be supported in SA by adding an addUser
>         method to
>         the group class. SA is so flexible in this regard that I don't
>         see why 
>         we couldn't do that sort of thing quite a bit.
> 
> I haven't use SA with identity so I do not know but if you want to
> unify both APIs (I though they where) I'll commit the patch right away
> the code is a bit messy because it's a cheetah template but it's not
> that hard to follow, the offending code is on this file
> http://trac.turbogears.org/browser/branches/1.0/turbogears/qstemplates/quickstart/%2Bpackage%2B/model.py_tmpl

Well bring it up on dev list but certainly don't take my word for
anything, I'm an SA newbie and could well be overlooking obvious
problems! =)

Iain

>         


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