[Checkins]
SVN: five.customerize/branches/plone-3.0-branch/src/five/customerize/customerize.txt
Fixed one test to work with the zope-aq branch
Hanno Schlichting
plone at hannosch.info
Tue Aug 28 18:33:46 EDT 2007
Log message for revision 79333:
Fixed one test to work with the zope-aq branch
Changed:
U five.customerize/branches/plone-3.0-branch/src/five/customerize/customerize.txt
-=-
Modified: five.customerize/branches/plone-3.0-branch/src/five/customerize/customerize.txt
===================================================================
--- five.customerize/branches/plone-3.0-branch/src/five/customerize/customerize.txt 2007-08-28 22:24:45 UTC (rev 79332)
+++ five.customerize/branches/plone-3.0-branch/src/five/customerize/customerize.txt 2007-08-28 22:33:46 UTC (rev 79333)
@@ -106,12 +106,13 @@
In the list of template-based browser views we can select one and see
the source of its template:
+ >>> from Acquisition import aq_base
>>> view = zope.component.getMultiAdapter((item, request),
... name=u"customizezpt.html")
>>> view = view.__of__(item)
>>> template = view.templateFromViewName(u'customizezpt.html')
- >>> template.aq_base
- <ZopeTwoPageTemplateFile at ...>
+ >>> aq_base(template)
+ <...PageTemplateFile ...>
>>> import os.path
>>> os.path.basename(template.filename)
'customize.pt'
More information about the Checkins
mailing list