Changeset 613:c57d80a649ea in documentViewer for MpiwgXmlTextServer.py


Ignore:
Timestamp:
Oct 17, 2013, 2:25:39 PM (11 years ago)
Author:
casties
Branch:
default
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpiwgXmlTextServer.py

    r610 r613  
    1212from datetime import datetime
    1313
    14 from SrvTxtUtils import getInt, getText, getHttpData
     14from SrvTxtUtils import getInt, getText, getHttpData, serialize
    1515
    1616# mapping of fields in the output of /mpiwg-mpdl-cms-web/query/GetDocInfo to documentViewer docinfo
     
    2323                    'countTocEntries' : 'numTocEntries'
    2424                    }
    25 
    26 def serialize(node):
    27     """returns a string containing an XML snippet of node"""
    28     s = ET.tostring(node, 'UTF-8')
    29     # snip off XML declaration
    30     if s.startswith('<?xml'):
    31         i = s.find('?>')
    32         return s[i+3:]
    33 
    34     return s
    3525
    3626
Note: See TracChangeset for help on using the changeset viewer.