Re: [Zope-PAS] Re: id mangling

2005-05-26 Thread Zachery Bir

On May 26, 2005, at 11:16 AM, Chris Withers wrote:


Zac/Amber,

You having a bit of a personality crisis?

cheers,

Chris - ignoring Jens cackling in the background ;-)

Amber Smirnow wrote:



*snicker* Yeah, Amber (my wife) had to send some email when we were  
on the road. I rigged up my mail client to pretend to be her, and,  
uh, left it that way :^\


Zac

___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


Re: [Zope-PAS] Re: id mangling

2005-05-26 Thread Chris Withers

Zac/Amber,

You having a bit of a personality crisis?

cheers,

Chris - ignoring Jens cackling in the background ;-)

Amber Smirnow wrote:


--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


RE: [Zope-PAS] Re: id mangling

2005-05-26 Thread Mark Hammond
> Sorry, Mark, and everyone else waiting for some pronouncement.

No problem!

> Just got back from a week and a half in Honduras.

Nice :)

> I do want the
> flexible ids, but I don't want PAS to care. Personally, I believe it
> should be a configuration of the individual plugin, and where
> present, the plugin will hand back mangled ids. That's how I was
> planning on finishing the prefix implementation on my branch.

Sounds good.  It seems to me then that your branch is ready to go.  As the
plugins themselves will be responsible for this, we can simply declare that
none of the supplied plugins are (currently) prefix-aware.  The PAS public
interface need not change to accomodate plugins that choose to implement
this feature.

When someone has a need for this, they must somehow manage to convert all
their plugins to a "prefix-aware" implementation.  Until then we can ignore
it - which sounds fine to me!

So I vote for merging your branch as it stands!  All the tests seem to pass,
and at least we have an agreed baseline from which to work.  Once done I can
then start nagging about
http://www.zope.org/Members/urbanape/PluggableAuthService/Collector/7
.

Cheers,

Mark.

___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


Re: [Zope-PAS] Re: id mangling

2005-05-26 Thread Amber Smirnow

On May 26, 2005, at 8:25 AM, Mark Hammond wrote:

I'd really like to help on this, but also hate to nag :)  Does PAS  
still want the concept of a flexible prefix?  Assuming the  
zbir_fixing_ids_branch represents the future of PAS, is there  
anything we can do to help move this forward?


If Zope3 has implemented these ideas already, I guess I could  
simply look at that.  Does anyone know if that is the case?


Sorry, Mark, and everyone else waiting for some pronouncement.

Just got back from a week and a half in Honduras. I do want the  
flexible ids, but I don't want PAS to care. Personally, I believe it  
should be a configuration of the individual plugin, and where  
present, the plugin will hand back mangled ids. That's how I was  
planning on finishing the prefix implementation on my branch.


Zac

___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


RE: [Zope-PAS] Re: id mangling

2005-05-26 Thread Mark Hammond
I'd really like to help on this, but also hate to nag :)  Does PAS still want 
the concept of a flexible prefix?  Assuming the zbir_fixing_ids_branch 
represents the future of PAS, is there anything we can do to help move this 
forward?

If Zope3 has implemented these ideas already, I guess I could simply look at 
that.  Does anyone know if that is the case?

Thanks,

Mark
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Mark Hammond
> Sent: Wednesday, 18 May 2005 12:55 PM
> To: 'Zachery Bir'; zope-pas@zope.org
> Subject: RE: [Zope-PAS] Re: id mangling
> 
> 
> > The initial work is done (scrubbing 
> > PAS of expectations of mangled ids), I think all we need 
> > now is a way 
> > to have the plugins to assert they want to use a prefix. I 
> > imagine this 
> > would be some property of the plugin and if you need 
> > multiple plugins 
> > to play along together, you'd make the same assignment on each.
> 
> Along with Cameron, I'm starting to have a bit of a look at 
> this.  Looking back over the archives, I found a mail from 
> Lennart that went into slightly more detail:
> 
> : It was decided that you define the prefix for each plugin, as a 
> : configuration setting or that plugin. That will mean that 
> : extractor, authenticator and enumerator plugins with that 
> : prefix will only work 
> : with plugins e/a/e plugins with the same prefix.
> : Default will be no prexfix, meaning that all plugins will 
> : work with all other plugins.
> 
> There seem to be 2 basic ways of approaching this in 
> zbir_fixing_ids_branch
> 
> 1) Re-instate the concept of _mangleId(), but change the 
> implementation (and params) to add a prefix only if the 
> plugin wants one.  This would also appear to involve adding 
> the concept of the prefix to the interface.
> 
> 2) Keep this concept internal to the plugin itself.  The 
> plugin becomes responsible for adding or removing the prefix 
> as appropriate.
> 
> (1) seems right to me here.
> 
> Once either of them is done, the ZMI for existing plugins 
> will need to grow the ability to set this prefix, and 
> existing plugins will need to review their use of the mangle 
> functions (the details of which depend on 1 or 2 above)
> 
> Am I on the right track here?  I so, can someone offer me 
> guidance on (1) and (2) above?
> 
> Thanks,
> 
> Mark
> 
> ___
> Zope-PAS mailing list
> Zope-PAS@zope.org
> http://mail.zope.org/mailman/listinfo/zope-pas
> 

___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


RE: [Zope-PAS] Re: id mangling

2005-05-17 Thread Mark Hammond
> The initial work is done (scrubbing 
> PAS of expectations of mangled ids), I think all we need now is a way 
> to have the plugins to assert they want to use a prefix. I 
> imagine this 
> would be some property of the plugin and if you need multiple plugins 
> to play along together, you'd make the same assignment on each.

Along with Cameron, I'm starting to have a bit of a look at this.  Looking back 
over the archives, I found a mail from Lennart that went into slightly more 
detail:

: It was decided that you define the prefix for each plugin, as a 
: configuration setting or that plugin. That will mean that extractor, 
: authenticator and enumerator plugins with that prefix will only work 
: with plugins e/a/e plugins with the same prefix.

: Default will be no prexfix, meaning that all plugins will work with all 
: other plugins.

There seem to be 2 basic ways of approaching this in zbir_fixing_ids_branch

1) Re-instate the concept of _mangleId(), but change the implementation (and 
params) to add a prefix only if the plugin wants one.  This would also appear 
to involve adding the concept of the prefix to the interface.

2) Keep this concept internal to the plugin itself.  The plugin becomes 
responsible for adding or removing the prefix as appropriate.

(1) seems right to me here.

Once either of them is done, the ZMI for existing plugins will need to grow the 
ability to set this prefix, and existing plugins will need to review their use 
of the mangle functions (the details of which depend on 1 or 2 above)

Am I on the right track here?  I so, can someone offer me guidance on (1) and 
(2) above?

Thanks,

Mark

___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas