Em Sexta 21 Abril 2006 09:51, Michele Cella escreveu:
> We haven't discussed about identity imports, that's what I had in mind:
>
> Instead of:
>
> from turbogears import identity
> ...
> @identity.require(identity.not_anonymous())
> @identity.require(identity.in_group("admin"))
>
> what about:
>
> from turbogears.identity import require
> from turbogears import identity

I thought we had agreed on using full imports to make it clear what is each 
thing.  At least for docs (that's what I would call Alberto's project as 
well).  It also looks bad to me to have "require" imported "twice" in two 
different namespaces: the current namespace ("from turbogears.identity import 
require") and the identity namespace ("from turbogears import identity").

-- 
Jorge Godoy      <[EMAIL PROTECTED]>


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