[ZCM] [ZC] 2070/ 1 Request "dtml-in summary variables"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Thu Apr 13 03:29:00 EDT 2006


Issue #2070 Update (Request) "dtml-in summary variables"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/2070

==============================================================
= Request - Entry #1 by cyhoong on Apr 13, 2006 3:28 am


Uploaded:  "bugReport"
 - http://www.zope.org/Collectors/Zope/2070/bugReport/view
I have a dtml method that list some values from Postgresql 8.x database. This dtml method works in Zope 2.8.x while Zope 2.9.x list error message. I have attached the sample code for your reproduction. My platform is Window XP.

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

Site Error

An error was encountered while publishing this resource.

Error Type: TypeError
Error Value: float argument required

Troubleshooting Suggestions

    * The URL may be incorrect.
    * The parameters passed to this resource may be incorrect.
    * A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to the error log.

If the error persists please contact the site maintainer. Thank you for your patience. 

Event log
===========
2006-04-13T15:10:19 ERROR Zope.SiteErrorLog http://127.0.0.1:9080/Test/test.dtml
Traceback (most recent call last):
  File "e:\Zope-2.9.2\lib\python\ZPublisher\Publish.py", line 115, in publish
    request, bind=1)
  File "e:\Zope-2.9.2\lib\python\ZPublisher\mapply.py", line 88, in mapply
    if debug is not None: return debug(object,args,context)
  File "e:\Zope-2.9.2\lib\python\ZPublisher\Publish.py", line 41, in call_object
    result=apply(object,args) # Type s<cr> to step into published object.
  File "e:\Zope-2.9.2\lib\python\OFS\DTMLMethod.py", line 144, in __call__
    r=apply(HTML.__call__, (self, client, REQUEST), kw)
  File "e:\Zope-2.9.2\lib\python\DocumentTemplate\DT_String.py", line 476, in __call__
    try: result = render_blocks(self._v_blocks, md)
  File "e:\Zope-2.9.2\lib\python\DocumentTemplate\DT_In.py", line 703, in renderwob
    try: append(render(section, md))
  File "e:\Zope-2.9.2\lib\python\DocumentTemplate\DT_Var.py", line 280, in render
    val = fmt % val
TypeError: float argument required
==============================================================



More information about the Zope-Collector-Monitor mailing list