Running CMF 2.0-beta tests against the zope 2 trunk, I noticed a test failure
that's not happening under zope 2.9:

Error in test testHTML
Traceback (most recent call last):
  File "/usr/lib/python2.4/", line 260, in run
line 391, in testHTML
    ZopePageTemplate('source_html') )
line 135, in __init__
    self.pt_edit(text, content_type, encoding)
line 143, in pt_edit
    text = text.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

This is because the semantics of ZopePageTemplate(id, text=None) have changed.
It used to be that if text was None, the contents of www/default.html
would be used. That no longer happends, and pt_edit can't accept None
for the text.

Was this intentional or is it a bug?


Paul Winkler
Zope-Dev maillist  -
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to