[Checkins]
SVN: grokcore.view/trunk/src/grokcore/view/ftests/view/index.py
In regular Zope 3's publication,
the context will be security proxied, so trying to access
Philipp von Weitershausen
philikon at philikon.de
Tue Jul 22 13:47:15 EDT 2008
Log message for revision 88720:
In regular Zope 3's publication, the context will be security proxied, so trying to access
stuff for which we don't have security declarations won't work (ForbiddenAttribute errors).
Instead of coming up with security declarations for this ftests, let's just use an attribute
that the security proxy will definitely allow us to access: obj.__class__.
Changed:
U grokcore.view/trunk/src/grokcore/view/ftests/view/index.py
-=-
Modified: grokcore.view/trunk/src/grokcore/view/ftests/view/index.py
===================================================================
--- grokcore.view/trunk/src/grokcore/view/ftests/view/index.py 2008-07-22 17:44:15 UTC (rev 88719)
+++ grokcore.view/trunk/src/grokcore/view/ftests/view/index.py 2008-07-22 17:47:14 UTC (rev 88720)
@@ -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