[Zope-PTK] Problem upgrading an existing Portalsite to PTK 0.9
Joachim Schmitz
js@aixtraware.de
Wed, 18 Oct 2000 10:44:59 +0200 (CEST)
Hi,
I did an cvs update to retrieve the new PTK version from CVS into my working
portal, I also deleted and imported DemoPortal and Wizard in the products.
I restarted Zope, and tried to access my Portal, I got:
....
File /usr/local/Zope-2.2.1/lib/python/DocumentTemplate/DT_Util.py, line
337, in eval
(Object: _.hasattr(this(),'Date') and Date().isFuture())
(Info: this)File <string>, line 0, in ?
File /usr/local/Zope-2.2.1/lib/python/DocumentTemplate/DT_Util.py, line
129, in careful_getattr
AttributeError: 'string' object has no attribute 'isFuture'
I found that in standard_html_header of the new version the second line
changed from:
<dtml-if "_.hasattr(this(),'Date') and and Date().isFuture() )">
to
<dtml-if "_.hasattr(this(),'isEffective') and not isEffective( ZopeTime() )">
what is the correct way of upgrading an existing PTK-instance to a new
version.
Mit freundlichen Grüßen
Joachim Schmitz
AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163