Thierry FLORAC wrote:
>   Hi,
> I think that you can also use something like this :
>         from import getInteraction
>         def checkPermission(object, permission='zope.ManageContent'):
>             interaction = getInteraction()
>             return interaction.checkPermission(permission, object)
> I don't know what's the difference between the two methods, and so I
> don't if one of them is better than the other one...

They're exactly the same. defers to


Zope3-users mailing list

Reply via email to