[zope / DocumentTemplate] odd bug

Thijs Cobben nntp0103 at thijscobben.nl
Wed Jan 22 06:58:11 EST 2003


Dear All,

Have looked on the web for answers, have found none.

Problem description: In a dtml document template file, <dtml-var varname> is
substituted by an empty string. If, however, I replace by <dtml-var varname
missing=''> the correct value for varname (so not the '' empty string) is
substituted.

Odd. Anyone encounter this before?
versions: python2.2.2 [GCC 2.96.200000731]
RedHat Linux 7.3
Zope-2.6.0-linux2-x86 from source

warnings:[root at ns www.phaedro.com]# python
Python 2.2.2 (#1, Dec 28 2002, 13:14:20)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-113)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import DocumentTemplate
/usr/local/Zope-2.6.0-linux2-x86/lib/python/DocumentTemplate/__init__.py:21:
RuntimeWarning: Python C API version mismatch for module ExtensionClass:
This Python has API version 1011, module ExtensionClass has version 1010.
  import ExtensionClass # work-around for import bug.
/usr/local/Zope-2.6.0-linux2-x86/lib/python/ZPublisher/HTTPResponse.py:19:
RuntimeWarning: Python C API version mismatch for module zlib: This Python
has API version 1011, module zlib has version 1010.
  import zlib, struct
/usr/local/Zope-2.6.0-linux2-x86/lib/python/xmlrpclib.py:325:
RuntimeWarning: Python C API version mismatch for module sgmlop: This Python
has API version 1011, module sgmlop has version 1007.
  import sgmlop
/usr/local/Zope-2.6.0-linux2-x86/lib/python/DocumentTemplate/DT_Var.py:163:
RuntimeWarning: Python C API version mismatch for module Acquisition: This
Python has API version 1011, module Acquisition has version 1010.
  from Acquisition import aq_base
>>>

Any info is welcome, the missing='' addition feels like an ugly workaround
fix.

--
Thijs Cobben
www.thijscobben.nl









More information about the Python-list mailing list