[Checkins] SVN: grok/trunk/src/grok/ftests/viewlet/template_namespaces.py Add some text.

Martijn Faassen faassen at infrae.com
Mon Jun 23 15:13:04 EDT 2008


Log message for revision 87683:
  Add some text.
  

Changed:
  U   grok/trunk/src/grok/ftests/viewlet/template_namespaces.py

-=-
Modified: grok/trunk/src/grok/ftests/viewlet/template_namespaces.py
===================================================================
--- grok/trunk/src/grok/ftests/viewlet/template_namespaces.py	2008-06-23 19:06:36 UTC (rev 87682)
+++ grok/trunk/src/grok/ftests/viewlet/template_namespaces.py	2008-06-23 19:13:04 UTC (rev 87683)
@@ -1,7 +1,13 @@
 """
+Let's check that the viewlet namespaces are correct. In particular,
+``view`` in a template should refer to the namespace of the view the
+viewlet is defined on, not the actual viewlet itself.
 
   >>> root = getRootFolder()
   >>> root['cave'] = Cave()
+
+Let's look at the first template, which includes the viewlet::
+
   >>> from zope.testbrowser.testing import Browser
   >>> browser = Browser()
   >>> browser.handleErrors = False
@@ -12,6 +18,10 @@
   <grok.ftests.viewlet.template_namespaces.MirandaViewlet object at ...>
   <grok.ftests.viewlet.template_namespaces.CavewomenViewletManager object at ...>
 
+This is indeed what we expected from the viewlet.
+
+Let's look at a template for the viewlet manager too::
+
   >>> browser.open("http://localhost/cave/@@necklace")
   >>> print browser.contents
   <grok.ftests.viewlet.template_namespaces.Cave object at ...>



More information about the Checkins mailing list