Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
TODO:
- refactor subscriber directive too
  • Loading branch information
Dominik Huber committed Apr 15, 2005
1 parent 051228f commit 295c061
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions metaconfigure.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,12 @@ def adapter(_context, factory, provides=None, for_=None, permission=None,
checker = InterfaceChecker(provides, permission)
factory = _protectedFactory(factory, checker)

if trusted:
factory = TrustedAdapterFactory(factory)
elif permission != PublicPermission:
# handle untrusted adapter that requires dedicated permissions
if permission != PublicPermission:
factory = UntrustedAdapterFactory(factory)
else:
if trusted:
factory = TrustedAdapterFactory(factory)
if trusted:
factory = TrustedAdapterFactory(factory)

_context.action(
discriminator = ('adapter', for_, provides, name),
Expand Down

0 comments on commit 295c061

Please sign in to comment.