[Zope3-checkins] CVS: Zope3/src/zope/app/component - hooks.py:1.5.8.6

Steve Alexander steve@cat-box.net
Wed, 14 May 2003 10:19:06 -0400


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

Modified Files:
      Tag: stevea-decorators-branch
	hooks.py 
Log Message:
Removed crufty commented out method.


=== Zope3/src/zope/app/component/hooks.py 1.5.8.5 => 1.5.8.6 ===
--- Zope3/src/zope/app/component/hooks.py:1.5.8.5	Wed May 14 10:18:02 2003
+++ Zope3/src/zope/app/component/hooks.py	Wed May 14 10:19:05 2003
@@ -115,37 +115,3 @@
     if checker is not None:
         d = Proxy(d, checker)
     return d
-
-
-
-def XXXdecorate(spec, ob, parent, kw):
-    """
-    """
-    if t is Proxy:
-        checker = getChecker(ob)
-        obj_nosecurityproxy = getObject(ob)
-    else:
-        checker = None
-        obj_nosecurityproxy = ob
-
-    if not spec.mixinIsTrusted:
-        # if t is not Proxy:
-        #     get a security checker for ob
-        #     wrap ob
-        inner = ob
-    else:
-        inner = None
-
-    # If the object is not security proxied, but we have a permission-map
-    # with the decorator specification, then we should use a special factory
-    # that adds a checker based on the permission map to the new mixin
-    # instance. Perhaps.
-    
-    # Make a composite checker from the existing checker, and the
-    # permission-map.
-    # Put this checker in the __Security_checker__ attribute of the decorator
-    # so that security checks will use this, rather than the ordinary one
-    # for the decorated object.
-    
-    # Make a composite __providedBy__ attribute from the mixinInterfaceSpec
-    # and what the decorated object provides.