[Zope3-checkins] SVN: Zope3/trunk/src/zope/viewlet/README.txt Oops, must have forgotten to run tests again. Fixed now.

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Jan 3 17:13:26 EST 2006


Log message for revision 41124:
  Oops, must have forgotten to run tests again. Fixed now.
  

Changed:
  U   Zope3/trunk/src/zope/viewlet/README.txt

-=-
Modified: Zope3/trunk/src/zope/viewlet/README.txt
===================================================================
--- Zope3/trunk/src/zope/viewlet/README.txt	2006-01-03 21:57:05 UTC (rev 41123)
+++ Zope3/trunk/src/zope/viewlet/README.txt	2006-01-03 22:13:26 UTC (rev 41124)
@@ -44,7 +44,7 @@
 You can then create a viewlet manager using this interface now:
 
   >>> from zope.viewlet import manager
-  >>> LeftColumn = manager.ViewletManager(ILeftColumn)
+  >>> LeftColumn = manager.ViewletManager('left', ILeftColumn)
 
 Now we have to instantiate it:
 
@@ -141,7 +141,8 @@
   ... </div>
   ... ''')
 
-  >>> LeftColumn = manager.ViewletManager(ILeftColumn, template=leftColTemplate)
+  >>> LeftColumn = manager.ViewletManager('left', ILeftColumn,
+  ...                                     template=leftColTemplate)
   >>> leftColumn = LeftColumn(content, request, view)
 
 TODO: Fix this silly thing; viewlets should be directly available.
@@ -204,7 +205,8 @@
 Let's now create a new viewlet manager:
 
   >>> LeftColumn = manager.ViewletManager(
-  ...     ILeftColumn, bases=(ListViewletManager,), template=leftColTemplate)
+  ...     'left', ILeftColumn, bases=(ListViewletManager,),
+  ...     template=leftColTemplate)
   >>> leftColumn = LeftColumn(content, request, view)
 
 So we get the weather box first and the sport box second:



More information about the Zope3-Checkins mailing list