From: Benoît Pin Date: Tue, 23 Jul 2013 11:40:43 +0000 (+0200) Subject: Strip pour éviter que le firstChild soit un nœud text. X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/commitdiff_plain/fc6fa1ea0a3c1369acbf9078d2cd588de5f9172f?hp=a9e61f8d7e3ef299e47f6e2cefc7ced4b252c94b Strip pour éviter que le firstChild soit un nœud text. --- diff --git a/Folder.py b/Folder.py index 9051b3c..2458bf1 100644 --- a/Folder.py +++ b/Folder.py @@ -349,7 +349,7 @@ class PlinnFolder(CMFCatalogAware, PortalFolder, DefaultDublinCoreImpl) : meth = method_id and getattr(ob, method_id) or (lambda : 'Not implemented') RESPONSE.setStatus(httpRespCode) RESPONSE.setHeader('Content-Type', 'text/xml;;charset=utf-8') - return '' % meth() + return '%s>' % meth().strip() # ## overload to maintain ownership if authenticated user has 'Manage portal' permission