[Grok-dev] zope.Anybody versus zope.Everybody in grokproject?

Vincent Fretin vincent.fretin at gmail.com
Thu Jan 7 07:17:12 EST 2010


On Thu, Jan 7, 2010 at 1:08 PM, Martijn Faassen <faassen at startifact.com> wrote:
> Hey,
>
> Vincent Fretin wrote:
>> Well, Souheil told me this, so I wrote that.
>>
>> I didn't verify it, I've just tested with a simple view:
>>
>> class MyView(grok.View):
>>     grok.context(Interface)
>>     grok.require("zope.View")
>>     def render(self):
>>         return "coucou"
>>
>> With
>> <grant permission="zope.View"
>>         principal="zope.Anybody" />
>> or
>> <grant permission="zope.View"
>>         principal="zope.Everybody" />
>>
>> I get access to the view as unauthenticated or authenticated member
>> (with a PAU).
>
> So it doesn't seem to make a difference in this case? Is this in Grok or
> with Zope 2?

It's with Grok 1.1a2 and a small set of dolmen libraries.
Indeed, it doesn't seem to make a difference in this case, you can
remove the zcml completly, it's the same too.


More information about the Grok-dev mailing list