[ZCM] [ZC] 1723/ 5 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
Mon Mar 14 06:25:16 EST 2005


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

==============================================================
= Comment - Entry #5 by camil7 on Mar 14, 2005 6:25 am

I can reproduce this very easily. The behaviour is "mostly" correct.

 The empty src="" attribute causes the browser to locate
the image under the same url as the page, and this tries
to load the page a second time, this time as image ... not 
a zope bug IMO.
________________________________________
= Reject - Entry #4 by ajung on Mar 10, 2005 11:38 am

 Status: Pending => Rejected


________________________________________
= Comment - Entry #3 by tseaver on Mar 10, 2005 11:20 am

I'm guessing that the user is OP is doing something else in the
template which triggers a ConflictError, and therefore a
retry.

I can't reproduce it either.

________________________________________
= 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