[Checkins] SVN: grokcore.view/new/src/grokcore/view/ftests/view/index.py refer to an unproxied attribute (in plain zope 3, content objects are security-proxied)

Philipp von Weitershausen philikon at philikon.de
Sat Aug 2 09:58:59 EDT 2008


Log message for revision 89229:
  refer to an unproxied attribute (in plain zope 3, content objects are security-proxied)
  

Changed:
  U   grokcore.view/new/src/grokcore/view/ftests/view/index.py

-=-
Modified: grokcore.view/new/src/grokcore/view/ftests/view/index.py
===================================================================
--- grokcore.view/new/src/grokcore/view/ftests/view/index.py	2008-08-02 13:58:35 UTC (rev 89228)
+++ grokcore.view/new/src/grokcore/view/ftests/view/index.py	2008-08-02 13:58:58 UTC (rev 89229)
@@ -11,8 +11,8 @@
   <html>
   <body>
   <h1>Hello, world!</h1>
-  <span>Blue</span>
-  <span>Blue</span>
+  <span><class 'grokcore.view.ftests.view.index.Mammoth'></span>
+  <span><class 'grokcore.view.ftests.view.index.Mammoth'></span>
   </body>
   </html>
 
@@ -20,7 +20,7 @@
 import grokcore.view as grok
 
 class Mammoth(grok.Context):
-    teeth = u"Blue"
+    pass
 
 class Index(grok.View):
     pass
@@ -29,8 +29,8 @@
 <html>
 <body>
 <h1>Hello, world!</h1>
-<span tal:content="python:context.teeth">green</span>
-<span tal:content="context/teeth">green</span>
+<span tal:content="structure python:context.__class__">green</span>
+<span tal:content="structure context/__class__">green</span>
 </body>
 </html>
 """)



More information about the Checkins mailing list