Skip to content

Commit

Permalink
Assert location for all adapters that require any dedicated permission:
Browse files Browse the repository at this point in the history
If the permission attribute is used in the adapter directive and the permission is not zope.Public, then:

    If the adapter doesn't provide ILocation, we location 
    proxy it and set the parent.

    If the adapter does provide ILocation and it's __parent__
    is None, we set the __parent__. 

TODO:
I do not unterstand three tests inside zope.app.component.tests.test_directives.

I've got pickable errors within zope.app.intid's
functional tests. As a workaround I derive
zope.app.keyreference.persistent.KeyReferenceToPersistent
from location.

I marked those issues with
# TODO: I do not understand that test
  • Loading branch information
Dominik Huber committed Apr 14, 2005
0 parents commit 051228f
Show file tree
Hide file tree
Showing 2 changed files with 1,960 additions and 0 deletions.

0 comments on commit 051228f

Please sign in to comment.