On 7/22/06, Tim Lesher <[EMAIL PROTECTED]> wrote:

On 7/22/06, Jorge Vargas <[EMAIL PROTECTED]> wrote:
>
> > so if you don't want/need it don't use it. as for TG internals the reason ActiveMapper is still there is because it will make migrations from SO easier.
> >
> > As for taking it out it isn't hurting anybody rigth?

don't take me wrong I'm on your side my approach to this was make active mapper optional everywhere

In the case of Identity, I have to agree with Arnar.  It seems that
the most common use case for Identity is going to be writing your own
Identity classes, starting from the auto-generated ones.  That's
pretty much the reason Identity was changed to generate classes in the
project's model, rather than having "standard" classes that just get
imported.

yes in fact all other ways are deprecated

If a developer wants to create the rest of his model using straight
SA, and TurboGears claims to support that, then TurboGears shouldn't
force the developer to do it differently for Identity--particularly
when it's not difficult to code Identity in a way that works with both
styles.

from where I see it now, you can just take those out as part of the mall changes made to identity I beleive visit was taken to the model also. looking at the code generator files it makes sence for the request to be there since the classes extend ActiveMapper

http://trac.turbogears.org/turbogears/browser/tags/0.9a8/turbogears/qstemplates/quickstart/%2Bpackage%2B/model.py_tmpl

the solution right now is simple.

#1 create a new quickstart template http://trac.turbogears.org/turbogears/wiki/ExtendingQuickstart
#2 create a new SqlAlchemyIdentityProvider in fact I think all that needs to be done is extend the original one and overwrite validate_identity


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

Reply via email to