[PEAK] peak.security

darryl developer at csrules.dyndns.org
Fri Dec 5 20:31:04 EST 2003


Phillip J. Eby wrote:

>
> Yes.  Except that 'Maniac = Owner()' bit doesn't make sense.


Now that you mention it, it doesn't make sense does it :)

> Oh, and you don't need the MyBuildingInteraction class, since you 
> didn't change the default permissionProtocol.  You could have used 
> security.Interaction out of the box for this example.

Ok good i wasn't sure about that.

> Last, but not least, you could have had the 'checkCanBurn' method 
> return a 'security.Denial()' so that the app could show a message 
> explaining why non-owners are not allowed to be arsonists.  :)

And you really should be able to burn your own  building shouldn't you :)

As always
thanks pje!

-darryl




More information about the PEAK mailing list