[Zope] Zope and Image display

2005-12-13 Thread tyson

Hi-
 I have a dtml form that loads a binary image from a python script.  
This works fine with no problems, but I want to return the image and 
also some other data as well.  The only thing is when I return the 
information in the form of a list, my image won't load.  I think that 
the list automatically changes the binary image into a string or 
something. Does anybody know about this or some work around by any chance?


Here is my python script py_get_image():

*#calling an external method to get binary image
ganttImageData = context.loadGanttWSping()

#returing a list starting with the image, and then a string
return (ganttImageData[0], ganttImageData[1])*

Here is the dtml code that works if I don't return it as a list:

*dtml-var standard_html_header

img src=py_get_image

dtml-var standard_html_footer
*
Here is the dtml code that doesn't work:

*dtml-var standard_html_header

dtml-in py_get_image
 dtml-if sequence-start
   img src=_['sequence-item']
 dtml-else
  dtml-var sequence-item
 /dtml-if
/dtml-in

dtml-var standard_html_footer*

Also, this doesn't work either:

*dtml-var standard_html_header

dtml-var py_get_image[0]

dtml-var standard_html_footer
*
Any help would be much appreciated!



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] date problem

2005-09-27 Thread tyson

The date is actually coming from a postgresql database.  I checked the
zope.conf file, and it's set for us.  Now that you mentioned that, I
tried creating a variable within dtml and when I do that, it works just
fine.  Now I guess I'm looking at a postgresql problem!

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )