[Grok-dev] grokcore.component and trusted adapters

Christian Zagrodnick cz at gocept.com
Fri Aug 7 02:14:07 EDT 2009


On 2009-08-06 17:19:07 +0200, Martin Aspeli <optilude+lists at gmail.com> said:

> Christian Zagrodnick wrote:
> 
>> constantly I require trusted adapters.
> 
> Just curious, but what do you actually need them for?

As Martijn already deducted, it's for using grokcore in zope 3 with 
model level security. And then you sometimes want to declare how access 
to the adapter is handled, for instance when using it in a form. The 
case I currently have is that I have an lxml tree on one object and use 
adapters to modify various parts of the tree. And since a tree 
basically consists of only one class you cannot do any meaningful 
security assertion there.

Hope that helps.

-- 
Christian Zagrodnick · cz at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 4 · fax +49 345 1229889 1
Zope and Plone consulting and development




More information about the Grok-dev mailing list