[Zope3-checkins] SVN: Zope3/branches/dominik-locatableadapters/src/zope/app/component/metaconfigure.py fix cosmetics mischance

Dominik Huber dominik.huber at projekt01.ch
Fri Apr 15 03:44:36 EDT 2005


Log message for revision 29994:
  fix cosmetics mischance
  
  TODO:
  - refactor subscriber directive too
  - write more tests for adapter and subsriber directive

Changed:
  U   Zope3/branches/dominik-locatableadapters/src/zope/app/component/metaconfigure.py

-=-
Modified: Zope3/branches/dominik-locatableadapters/src/zope/app/component/metaconfigure.py
===================================================================
--- Zope3/branches/dominik-locatableadapters/src/zope/app/component/metaconfigure.py	2005-04-15 02:38:31 UTC (rev 29993)
+++ Zope3/branches/dominik-locatableadapters/src/zope/app/component/metaconfigure.py	2005-04-15 07:44:36 UTC (rev 29994)
@@ -178,7 +178,7 @@
         factory = _protectedFactory(factory, checker)
 
         # handle untrusted adapter that requires dedicated permissions
-        if permission != PublicPermission:
+        if permission != PublicPermission and not trusted:
             factory = UntrustedAdapterFactory(factory)
             
     if trusted:



More information about the Zope3-Checkins mailing list