[Checkins] SVN: zope3org/trunk/src/zorg/restsupport/__init__.py
fixed a problem with empty html fragments
Uwe Oestermeier
uwe_oestermeier at iwm-kmrc.de
Wed Apr 5 15:23:56 EDT 2006
Log message for revision 66574:
fixed a problem with empty html fragments
Changed:
U zope3org/trunk/src/zorg/restsupport/__init__.py
-=-
Modified: zope3org/trunk/src/zorg/restsupport/__init__.py
===================================================================
--- zope3org/trunk/src/zorg/restsupport/__init__.py 2006-04-05 17:59:21 UTC (rev 66573)
+++ zope3org/trunk/src/zorg/restsupport/__init__.py 2006-04-05 19:23:55 UTC (rev 66574)
@@ -75,7 +75,10 @@
"""
if fragment and not '<html>' in html.lower() :
- html = "<html><body>%s</body></html>" % html
+ if html :
+ html = "<html><body>%s</body></html>" % html
+ else :
+ return ""
if catch_errors :
try :
More information about the Checkins
mailing list