[Zope3-dev] Problem granting to principals

Roger Ineichen dev at projekt01.ch
Wed Feb 9 19:33:13 EST 2005


Hi Garrett

> -----Original Message-----
> From: zope3-dev-bounces+dev=projekt01.ch at zope.org 
> [mailto:zope3-dev-bounces+dev=projekt01.ch at zope.org] On 
> Behalf Of Garrett Smith
> Sent: Thursday, February 10, 2005 1:27 AM
> To: dev at projekt01.ch
> Cc: jim at zope.com; zope3-dev (E-mail)
> Subject: RE: [Zope3-dev] Problem granting to principals
> 
> I'm still getting the error -- I'll submit an issue with an 
> ftest. Maybe
> this is Windows only, or maybe I'm just missing something.

I'm working on windows XP. You too?
 
> The issue I'm seeing has nothing to do with subsites, AFAICT.

Ok, I'll try your ftest.

>  -- Garret
> 
> Roger Ineichen wrote:
> > Hi Garrett and Jim
> > 
> > Can you check if the bug is solved?
> > 
> > I added a context to the getUtility in authentication.py's
> > getPrincipal method.
> > 
> > We should add a multi site-subsite test case for testing
> > next utility usecases.
> > 
> > Regards
> > Roger Ineichen
> > 
> > Projekt01 GmbH
> > www.projekt01.ch
> > _____________________________
> > END OF MESSAGE
> > 
> >> -----Original Message-----
> >> From: zope3-dev-bounces+dev=projekt01.ch at zope.org
> >> [mailto:zope3-dev-bounces+dev=projekt01.ch at zope.org] On Behalf Of
> >> Roger Ineichen Sent: Thursday, February 10, 2005 12:54 AM
> >> To: 'Garrett Smith'
> >> Cc: zope3-dev at zope.org
> >> Subject: RE: [Zope3-dev] Problem granting to principals
> >> 
> >> From: Garrett Smith [mailto:garrett at mojave-corp.com]
> >>> Sent: Thursday, February 10, 2005 12:45 AM
> >>> To: dev at projekt01.ch
> >>> Cc: zope3-dev at zope.org
> >>> Subject: RE: [Zope3-dev] Problem granting to principals
> >>> 
> >>> I've added a pluggable authentication utility and a principal
> >>> folder to ++etc++site/default. I'm trying to grant in the root
> >>> folder. 
> >>> 
> >>> I can search the principals in principals.zcml, but I get 
> the error
> >>> below when I search the principals folder in ++etc++site/default.
> >> 
> >> Principals form a PrincipalFolder instance or the global
> >> prinzipals.zcml principals? 
> >> 
> >> Regards
> >> Roger Ineichen
> >> 
> >> Projekt01 GmbH
> >> www.projekt01.ch
> >> _____________________________
> >> END OF MESSAGE
> >> 
> >> 
> >>>  -- Garrett
> >>> 
> >>> Roger Ineichen wrote:
> >>>> Hi Garrett
> >>>> 
> >>>> 
> >>>>> -----Original Message-----
> >>>>> From: zope3-dev-bounces+dev=projekt01.ch at zope.org
> >>>>> [mailto:zope3-dev-bounces+dev=projekt01.ch at zope.org] On 
> Behalf Of
> >>>>> Garrett Smith Sent: Wednesday, February 09, 2005 11:23 PM To:
> >>>>> zope3-dev (E-mail) Subject: [Zope3-dev] Problem granting to
> >>>>> principals 
> >>>>> 
> >>>>> When using the @@grant.html view, I'm getting a lookup 
> error when
> >>>>> I search for a principal in  a principals folder:
> >>>>> 
> >>>>>   File "\zope\app\security\browser\principalterms.py", 
> line 49, in
> >>>>>     getTerm raise LookupError, principal_id
> >>>> 
> >>>> Do you have this error just if you click on a search button
> >>>> in the grant.html view for sources above your actualy site?
> >>>> 
> >>>> Does your tree look something like site/subsite/folder?
> >>>> 
> >>>> Or are you searching in the principal folder of your site where
> >>>> you grant? 
> >>>> 
> >>>>> I've seen this work not too long ago.
> >>>>> 
> >>>>> I've tried various settings, e.g. with prin folder prefix and
> >>>>> without, but I always get this error.
> >>>>> 
> >>>>> I can add a collector issue, unless this is user error, or
> >>>>> someone fixes it first :) 
> >>>>> 
> >>>>>  -- Garrett
> >>>>> _______________________________________________
> >>>>> Zope3-dev mailing list
> >>>>> Zope3-dev at zope.org
> >>>>> Unsub:
> >>>>> 
> http://mail.zope.org/mailman/options/zope3-dev/dev%40projekt01.ch
> >>> 
> >>> 
> >> 
> >> _______________________________________________
> >> Zope3-dev mailing list
> >> Zope3-dev at zope.org
> >> Unsub:
> >> http://mail.zope.org/mailman/options/zope3-dev/dev%40projekt01.ch
> 
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> Unsub: 
> http://mail.zope.org/mailman/options/zope3-dev/dev%40projekt01.ch
> 
> 



More information about the Zope3-dev mailing list