[ZCM] [ZC] 780/ 2 Reject "dtml-var always renders to empty except if missing tag is added"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin@zope.org
Sun, 02 Feb 2003 06:59:14 -0500


Issue #780 Update (Reject) "dtml-var always renders to empty except if missing tag is added"
 Status Rejected, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/780

==============================================================
= Reject - Entry #2 by ajung on Feb 2, 2003 6:59 am

 Status: Pending => Rejected

I don't see the problem with the missing attribute since it 
is working as expected and document. Also be aware that
should use missing="" (double quotes) instead of missing=''.

-aj
________________________________________
= 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/__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





==============================================================