[ZCM] [ZC] 1723/ 2 Comment "Empts src-attribute in img tag causes Zope to render a ZPT twice"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Thu Mar 10 07:38:49 EST 2005


Issue #1723 Update (Comment) "Empts src-attribute in img tag causes Zope to render a ZPT twice"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1723

==============================================================
= Comment - Entry #2 by ajung on Mar 10, 2005 7:38 am

Can not be reproduced
________________________________________
= Request - Entry #1 by wmkraus on Mar 10, 2005 7:25 am

The following line in a ZPT will cause Zope to render the Template twice:

<img src="">

You can test it with this line,using the external method printIt:

<img tal:define="foo python:here.printIt('FOO')" src="">

External Method:

import zLOG
def printIt(text):
    '''Print LOG-Informations from inside Zope'''
    zLOG.LOG("==>", zLOG.INFO, text)

When the ZPT is returned from a Python script, this Script is called twice, too.
==============================================================



More information about the Zope-Collector-Monitor mailing list