[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ftests/test_functional.py Changed test to not use the experimental <script> tag

Jim Fulton jim at zope.com
Tue Aug 24 11:58:00 EDT 2004


Log message for revision 27246:
  Changed test to not use the experimental <script> tag
  


Changed:
  U   Zope3/trunk/src/zope/app/ftests/test_functional.py


-=-
Modified: Zope3/trunk/src/zope/app/ftests/test_functional.py
===================================================================
--- Zope3/trunk/src/zope/app/ftests/test_functional.py	2004-08-24 15:52:55 UTC (rev 27245)
+++ Zope3/trunk/src/zope/app/ftests/test_functional.py	2004-08-24 15:57:59 UTC (rev 27246)
@@ -45,19 +45,22 @@
         from zope.app.zptpage.zptpage import ZPTPage
 
         page = ZPTPage()
-        page.evaluateInlineCode = True
-        page.source = u'''<script type="text/server-python">
-            cookies = ['%s=%s'%(k,v) for k,v in request.getCookies().items()]
-            cookies.sort()
-            print ';'.join(cookies)
-            </script>'''
+
+        page.source = u'''<tal:tag tal:define="
+        cookies python:['%s=%s'%(k,v) for k,v in request.getCookies().items()]"
+        ><tal:tag tal:define="
+        ignored python:cookies.sort()"
+        /><span tal:replace="python:';'.join(cookies)" /></tal:tag>'''
+
         root['getcookies'] = page
 
         page = ZPTPage()
-        page.evaluateInlineCode = True
-        page.source = u'''<script type="text/server-python">
-            request.response.setCookie('bid','bval')
-            </script>'''
+
+        page.source = u'''<tal:tag tal:define="
+            ignored python:request.response.setCookie('bid','bval')" >
+            <h1 tal:condition="ignored" />
+            </tal:tag>'''
+
         root['setcookie'] = page
 
 



More information about the Zope3-Checkins mailing list