Mercurial > hg > documentViewer
diff MpiwgXmlTextServer.py @ 613:c57d80a649ea
CLOSED - # 281: List of thumbnails verschluckt Seite, wenn odd-scan-position gesetzt ist
https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-software/ticket/281
author | casties |
---|---|
date | Thu, 17 Oct 2013 16:25:39 +0200 |
parents | 0488cd12355b |
children | 4a75a760def2 |
line wrap: on
line diff
--- a/MpiwgXmlTextServer.py Thu May 16 18:04:00 2013 +0200 +++ b/MpiwgXmlTextServer.py Thu Oct 17 16:25:39 2013 +0200 @@ -11,7 +11,7 @@ from datetime import datetime -from SrvTxtUtils import getInt, getText, getHttpData +from SrvTxtUtils import getInt, getText, getHttpData, serialize # mapping of fields in the output of /mpiwg-mpdl-cms-web/query/GetDocInfo to documentViewer docinfo textinfoFieldMap = { @@ -23,16 +23,6 @@ 'countTocEntries' : 'numTocEntries' } -def serialize(node): - """returns a string containing an XML snippet of node""" - s = ET.tostring(node, 'UTF-8') - # snip off XML declaration - if s.startswith('<?xml'): - i = s.find('?>') - return s[i+3:] - - return s - class MpiwgXmlTextServer(SimpleItem): """TextServer implementation for MPIWG-XML server"""