Commit f6050677 authored by Martijn Pieters's avatar Martijn Pieters

Modified the output of HTML image tags to be XHTML compliant.

parent 31bdc1c2
...@@ -37,6 +37,10 @@ Zope changes ...@@ -37,6 +37,10 @@ Zope changes
that need access to this information remotely should be modified that need access to this information remotely should be modified
so that a Python Script or DTML Method can explicitly pass so that a Python Script or DTML Method can explicitly pass
the data. the data.
- The Image.tag() and ZopeAttributionButton methods now return an
image tag that is XHTML compatible; a space and a slash have been
added.
Bugs Fixed Bugs Fixed
......
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Application support __doc__='''Application support
$Id: Application.py,v 1.134 2000/12/05 18:49:43 shane Exp $''' $Id: Application.py,v 1.135 2000/12/20 15:01:25 mj Exp $'''
__version__='$Revision: 1.134 $'[11:-2] __version__='$Revision: 1.135 $'[11:-2]
import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_ import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_
import time, traceback, os, string, Products import time, traceback, os, string, Products
...@@ -261,7 +261,7 @@ class Application(Globals.ApplicationDefaultPermissions, ...@@ -261,7 +261,7 @@ class Application(Globals.ApplicationDefaultPermissions,
button along with a link to the Zope site.""" button along with a link to the Zope site."""
return '<a href="http://www.zope.org/Credits" target="_top"><img ' \ return '<a href="http://www.zope.org/Credits" target="_top"><img ' \
'src="%s/p_/ZopeButton" width="115" height="50" ' \ 'src="%s/p_/ZopeButton" width="115" height="50" ' \
'border="0" alt="Powered by Zope"></a>' % self.REQUEST.BASE1 'border="0" alt="Powered by Zope" /></a>' % self.REQUEST.BASE1
def DELETE(self, REQUEST, RESPONSE): def DELETE(self, REQUEST, RESPONSE):
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Image object""" """Image object"""
__version__='$Revision: 1.120 $'[11:-2] __version__='$Revision: 1.121 $'[11:-2]
import Globals, string, struct, content_types import Globals, string, struct, content_types
from OFS.content_types import guess_content_type from OFS.content_types import guess_content_type
...@@ -617,7 +617,7 @@ class Image(File): ...@@ -617,7 +617,7 @@ class Image(File):
value = args.get(key) value = args.get(key)
result = '%s %s="%s"' % (result, key, value) result = '%s %s="%s"' % (result, key, value)
return '%s>' % result return '%s />' % result
def cookId(id, title, file): def cookId(id, title, file):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment