synced with gluino

This commit is contained in:
mdipierro
2013-07-09 16:15:21 -05:00
parent 89e158cd1d
commit cadf0e946a
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -800,8 +800,8 @@ class DummyResponse():
def write(self, data, escape=True):
if not escape:
self.body.write(str(data))
elif hasattr(data, 'as_html') and callable(data.as_html):
self.body.write(data.as_html())
elif hasattr(data, 'xml') and callable(data.xml):
self.body.write(data.xml())
else:
# make it a string
if not isinstance(data, (str, unicode)):