[Calypso] [PATCH 1/4] Don't validate when sending data back to the user.

Jelmer Vernooij jelmer at jelmer.uk
Sun May 15 15:35:29 PDT 2016


From: Jelmer Vernooń≥ <jelmer at jelmer.uk>

The alternative is raising an exception here or hiding the item
altogether.
---
 calypso/webdav.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calypso/webdav.py b/calypso/webdav.py
index 0299c7a..0c59cc7 100644
--- a/calypso/webdav.py
+++ b/calypso/webdav.py
@@ -163,7 +163,7 @@ class Item(object):
         Text is the serialized form of the item.
 
         """
-        return self.object.serialize().decode('utf-8')
+        return self.object.serialize(validate=False).decode('utf-8')
 
     @property
     def length(self):
-- 
2.8.1



More information about the Calypso mailing list