[Grok-dev] Re: grok.Permission and grok.Role

Martijn Faassen faassen at startifact.com
Tue Aug 28 06:16:27 EDT 2007

Luis De la Parra wrote:
> Hello,
> Jan-Wijbrand Kolman wrote:
>> Permssion definitions now look like:
>>    class MyPermission(grok.Permission):
>>      id = 'my.permission'
>>      title = u'My Permission' # should this be optional?
>>      description = u'When you're allowed to foobar' # optional
> I don't know how other people see it, but I think it would be nice to get
> rid of the id (or at least make it optional), and have it "generated" from
> the fully-qualified class name (the same goes for role definition)

That's a good point. 'id' can be considered as repeating yourself, and 
it's now required. grok.name() has a default that goes back to the class 
name. Let's use grok.name() for this. :)



More information about the Grok-dev mailing list