projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9e61f8
)
Strip pour éviter que le firstChild soit un nœud text.
author
Benoît Pin
<pin@cri.ensmp.fr>
Tue, 23 Jul 2013 11:40:43 +0000
(13:40 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Tue, 23 Jul 2013 11:40:43 +0000
(13:40 +0200)
Folder.py
patch
|
blob
|
history
diff --git
a/Folder.py
b/Folder.py
index
9051b3c
..
2458bf1
100644
(file)
--- 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 '<fragment>
<![CDATA[%s]]></fragment>' % meth
()
+ return '<fragment>
%s></fragment>' % meth().strip
()
# ## overload to maintain ownership if authenticated user has 'Manage portal' permission