Log message for revision 29936:
  Added logic to get copied ZClasses to be accessed through their
  containers. This is necessary to satisfy expectations of python-script
  security machinery.
  

Changed:
  U   Zope/trunk/lib/python/ZClasses/27.txt
  U   Zope/trunk/lib/python/ZClasses/ZClass.txt

-=-
Modified: Zope/trunk/lib/python/ZClasses/27.txt
===================================================================
--- Zope/trunk/lib/python/ZClasses/27.txt       2005-04-10 13:03:16 UTC (rev 
29935)
+++ Zope/trunk/lib/python/ZClasses/27.txt       2005-04-10 13:03:18 UTC (rev 
29936)
@@ -12,7 +12,8 @@
     >>> from Zope2.ClassFactory import ClassFactory
     >>> db.classFactory = ClassFactory
     >>> conn = db.open()
-    >>> ac = conn.root()['Application'].ac
+    >>> app = conn.root()['Application'] 
+    >>> ac = app.ac
     >>> ac.eek()
     'xxx'
     >>> ac.y = 2

Modified: Zope/trunk/lib/python/ZClasses/ZClass.txt
===================================================================
--- Zope/trunk/lib/python/ZClasses/ZClass.txt   2005-04-10 13:03:16 UTC (rev 
29935)
+++ Zope/trunk/lib/python/ZClasses/ZClass.txt   2005-04-10 13:03:18 UTC (rev 
29936)
@@ -71,7 +71,7 @@
     >>> import transaction
     >>> transaction.commit()
 
-We can access the class in another connection. We'll ise an explicit
+We can access the class in another connection. We'll use an explicit
 transaction manager so that we can use the second connection without
 creating a separate thread:
 
@@ -107,8 +107,11 @@
     >>> c3 is app.c2.aq_base
     False
 
-    >>> c3.eek()
+    >>> app.c3 = c3
+    >>> app.c3.eek()
     '******************************************'
 
+But the copies share a common class:
+
     >>> c3.__class__ is app.c2.__class__
     True

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to