On Dec 26, 7:00 pm, iain duncan <[EMAIL PROTECTED]> wrote:
>
> I would just use the TG identity stuff in all honesty. To get only
> simple identity working it's really straightforward and works pretty
> much out of the box. While using the more powerful features may be
> difficult, logging in and protecting some areas is dead easy!

I suppose there are a few questions worth asking:

 - does a user want the additional tables for groups and permissions,
and are these perhaps a minor burden (eg. if writing a very
lightweight app, or one without a database)?

 - is there a pre-existing user table/object that doesn't have
Identity? Or perhaps you have an old TG project that didn't use
Identity, but need to think about password protecting a few things?
Upgrading to Identity from an app that doesn't yet use it doesn't
sound trivial to me.

 - does Identity contain too many fields for your use? (eg. I have an
app where you need to enter a password, but no username. I don't think
Identity copes with that too well.)

 - is the default behaviour of redirecting a non-logged in user to a
login page what you want (often, it's not), and is the alternative
where you protect parts of controllers/templates explicitly any easier
to do with Identity than checking a session variable yourself? (Also,
a slight wart is that Identity's use of redirects makes my browser
think I reached the originally-intended page via a POST request. This
alone can be irritating enough at times.)


Overall, I find Identity quite monolithic and inflexible. For my
current project, I'm lucky in that it just about fits what I want, but
I can certainly see why some people would not want to bother.

--
Ben Sizer

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