[Zope] FW: [ZC] 780/ 1 Request "dtml-var always renders to empty except if missing tag is added"

Thijs Cobben thijscobben@thijscobben.nl
Sat, 25 Jan 2003 11:58:22 +0100


All,

Mr. Dieter Mauer tipped me to forward this bug to zope@zope.org . I have
after posting been 'diffing' various versions of DocumentTemplate/DT_Var.py
but I honestly do not have a clue.

Could the root of the problem lie in the warnings I get about a 'Python C
API' ?

Please help!


Thijs

> -----Oorspronkelijk bericht-----
> Van: Collector: Zope Bugs, Features, and Patches ...
> [mailto:zope-coders-admin@zope.org]
> Verzonden: donderdag 23 januari 2003 13:04
> Aan: Thijs Cobben; klm; Brian; chrism; Caseman; _Pending_ recipient
> Onderwerp: [ZC] 780/ 1 Request "dtml-var always renders to empty except
> if missing tag is added"
>
>
> Issue #780 Update (Request) "dtml-var always renders to empty
> except if missing tag is added"
>  Status Pending, Zope/bug medium
> To followup, visit:
>   http://collector.zope.org/Zope/780
>
> ==============================================================
> = Request - Entry #1 by Anonymous User on Jan 23, 2003 7:03 am
>
> As posted in comp.lang.python (didn't know of this site, sorry)
>
> 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@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/__ini
> t__.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_Va
> r.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
>
>
>
>
>
> ==============================================================
>