[Zope3-checkins] CVS: Zope3/src/zope/app/component - metaconfigure.py:1.25.2.1

Marius Gedminas marius at pov.lt
Mon Feb 23 14:18:33 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/component
In directory cvs.zope.org:/tmp/cvs-serv14712/src/zope/app/component

Modified Files:
      Tag: mgedmin-events2-branch
	metaconfigure.py 
Log Message:
Added interaction to security proxies.  Added interaction arguments to security
checkers.  Added a lot of XXX comments in places where proxies are created but
no interaction is (yet) available.

Added an initial draft of IInteraction to zope.security.interfaces.  This might
move to zope.interaction.interfaces as suggested by Steve.

Fixed a buglet in CheckerLoggingMixin: check_getattr delegated the check to
super(...).check instead of super(...).check_getattr.  Added full unit tests
for CheckerLoggingMixin.



=== Zope3/src/zope/app/component/metaconfigure.py 1.25 => 1.25.2.1 ===
--- Zope3/src/zope/app/component/metaconfigure.py:1.25	Fri Feb 13 17:27:33 2004
+++ Zope3/src/zope/app/component/metaconfigure.py	Mon Feb 23 14:18:01 2004
@@ -78,7 +78,9 @@
     try:
         ob.__Security_checker__ = checker
     except AttributeError:
-        ob = Proxy(ob, checker)
+        # XXX get the interaction from somewhere
+        # XXX this place is not covered by unit tests
+        ob = Proxy(ob, checker, None)
 
     return ob
 




More information about the Zope3-Checkins mailing list