[Zope-Checkins] SVN: Products.Five/branches/philikon-local-components/component/c More catching up with the renaming

Philipp von Weitershausen philikon at philikon.de
Wed Mar 1 13:36:20 EST 2006


Log message for revision 65676:
  More catching up with the renaming
  

Changed:
  U   Products.Five/branches/philikon-local-components/component/component.txt
  U   Products.Five/branches/philikon-local-components/component/customizetemplate.pt

-=-
Modified: Products.Five/branches/philikon-local-components/component/component.txt
===================================================================
--- Products.Five/branches/philikon-local-components/component/component.txt	2006-03-01 18:28:39 UTC (rev 65675)
+++ Products.Five/branches/philikon-local-components/component/component.txt	2006-03-01 18:36:20 UTC (rev 65676)
@@ -68,9 +68,9 @@
 We can select a view and see its template source:
 
   >>> view = zope.component.getMultiAdapter((item, request),
-  ...                                       name=u"customizeview.html")
+  ...                                       name=u"customizetemplate.html")
   >>> view = view.__of__(item)
-  >>> print view.templateSource(u'customizeview.html') #doctest: +ELLIPSIS
+  >>> print view.templateSource(u'customizetemplate.html') #doctest: +ELLIPSIS
   <html metal:use-macro="context/@@standard_macros/view"
         i18n:domain="zope">
   ...
@@ -80,13 +80,13 @@
 
 We now hit the customize button and get a customized ZPT template:
 
-  >>> zpt = view.doCustomizeTemplate(u'customizeview.html')
+  >>> zpt = view.doCustomizeTemplate(u'customizetemplate.html')
 
 That actually creates a ZPTPage object in the nearest site (perhaps
 later we'd like to have the option to pick which of the sites above us
 should be targeted)
 
-  >>> zpt = getattr(site, 'customizeview.html')
+  >>> zpt = getattr(site, 'customizetemplate.html')
   >>> print zpt.read() #doctest: +ELLIPSIS
   <html metal:use-macro="context/@@standard_macros/view"
         i18n:domain="zope">
@@ -104,7 +104,7 @@
   >>> from zope.app.component.hooks import setSite
   >>> setSite(site)
   >>> view = zope.component.getMultiAdapter((item, request),
-  ...                                       name=u"customizeview.html")
+  ...                                       name=u"customizetemplate.html")
   >>> print view()
   doctest
   <BLANKLINE>

Modified: Products.Five/branches/philikon-local-components/component/customizetemplate.pt
===================================================================
--- Products.Five/branches/philikon-local-components/component/customizetemplate.pt	2006-03-01 18:28:39 UTC (rev 65675)
+++ Products.Five/branches/philikon-local-components/component/customizetemplate.pt	2006-03-01 18:36:20 UTC (rev 65676)
@@ -10,7 +10,7 @@
     template source
   </pre>
 
-  <form action="." action="customizeTemplate" method="post"
+  <form action="." action="@@customizetemplate" method="post"
         enctype="multipart/form-data">
 
     <input type="hidden" name="viewname" value="theviewname"



More information about the Zope-Checkins mailing list