Changeset 416:1c821283556a in documentViewer
- Timestamp:
- Dec 23, 2010, 4:45:55 PM (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MpdlXmlTextServer.py
r415 r416 225 225 # figureEntries 226 226 pagedivs = dom.xpath("//div[@class='countFigureEntries']") 227 docinfo['figureEntries'] = getTextFromNode(pagedivs[0]) 227 s = getTextFromNode(pagedivs[0]) 228 try: 229 docinfo['figureEntries'] = int(s) 230 except: 231 docinfo['figureEntries'] = 0 228 232 # tocEntries 229 233 pagedivs = dom.xpath("//div[@class='countTocEntries']") 230 docinfo['tocEntries'] = getTextFromNode(pagedivs[0]) 234 s = getTextFromNode(pagedivs[0]) 235 try: 236 docinfo['tocEntries'] = int(s) 237 except: 238 docinfo['tocEntries'] = 0 231 239 # allPlaces 232 240 pagedivs = dom.xpath("//div[@class='countPlaces']") 233 docinfo['allPlaces']= getTextFromNode(pagedivs[0]) 241 s = getTextFromNode(pagedivs[0]) 242 try: 243 docinfo['allPlaces'] = int(s) 244 except: 245 docinfo['allPlaces'] = 0 234 246 235 247 return docinfo
Note: See TracChangeset
for help on using the changeset viewer.