[Checkins] SVN: grok/trunk/doc/tutorial.txt grok.View now has a new attribute, response. Use that in the tutorial.

Philipp von Weitershausen philikon at philikon.de
Thu Mar 8 16:41:40 EST 2007


Log message for revision 73076:
  grok.View now has a new attribute, response. Use that in the tutorial.
  

Changed:
  U   grok/trunk/doc/tutorial.txt

-=-
Modified: grok/trunk/doc/tutorial.txt
===================================================================
--- grok/trunk/doc/tutorial.txt	2007-03-08 21:40:46 UTC (rev 73075)
+++ grok/trunk/doc/tutorial.txt	2007-03-08 21:41:39 UTC (rev 73076)
@@ -621,8 +621,8 @@
 
       class Index(grok.View):
           def render(self):
-              self.request.response.setHeader('Content-Type',
-                                              'text/xml; charset=UTF-8')
+              self.response.setHeader('Content-Type',
+                                      'text/xml; charset=UTF-8')
               return "<doc>Some XML</doc>"
 
   In Zope 3, any instance of a view has a ``request`` object



More information about the Checkins mailing list