Re: [Zope-PAS] Re: Multiple principals with the same ID

2005-12-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wichert Akkerman wrote: > Previously Tres Seaver wrote: > >>Within a single PAS, it is an error to have two principals with the same >>ID; otherwise you will end up granting permissions inappropriately. If >>you have plugins which are generating ide

Re: [Zope-PAS] Re: Multiple principals with the same ID

2005-12-01 Thread Wichert Akkerman
Previously Tres Seaver wrote: > Within a single PAS, it is an error to have two principals with the same > ID; otherwise you will end up granting permissions inappropriately. If > you have plugins which are generating identical IDs, then you need to > have one or both of them use prefixes (that i

Re: [Zope-PAS] Re: Multiple principals with the same ID

2005-12-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wichert Akkerman wrote: > Previously Tres Seaver wrote: > >>We aren't "enforcing" anything: the plugin can't fulfill its own >>contract (in this case, to return a list of (id, title) tuples) if the >>user has screwed up by configuring the other plugi

[Zope-PAS] Re: Multiple principals with the same ID

2005-12-01 Thread Wichert Akkerman
Previously Tres Seaver wrote: > We aren't "enforcing" anything: the plugin can't fulfill its own > contract (in this case, to return a list of (id, title) tuples) if the > user has screwed up by configuring the other plugins that way. If multiple principals share have the same id you will still f

Re: [Zope-PAS] Re: Multiple principals with the same ID

2005-12-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris McDonough wrote: >>> Is anyone against removing that assertion? >> >> >> - -1. Asserts only affect debug mode, anyway, which means that they >> help >> find problems. > > > FWIW, this is not true. Asserts happen outside of debug mode unless

Re: [Zope-PAS] Re: Multiple principals with the same ID

2005-12-01 Thread Chris McDonough
Is anyone against removing that assertion? - -1. Asserts only affect debug mode, anyway, which means that they help find problems. FWIW, this is not true. Asserts happen outside of debug mode unless you've compiled somehow to .pyo's. ___ Zop

[Zope-PAS] Re: Multiple principals with the same ID

2005-12-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sidnei da Silva wrote: > There is an assertion in ZODBRoleManager, in the > listAssignedPrincipals method that makes it bomb when there's more > than one principal returned from searchPrincipals. > > Now, while it doesn't make much sense to have prin