# HG changeset patch # User casties # Date 1276799676 -7200 # Node ID 40730cfbcb8ec351dc81c67957c8ac8588e4edb1 # Parent 39167e96e582813c6ce2b8f5ad928d89ea590035 fixed problem with getnumpages and **args diff -r 39167e96e582 -r 40730cfbcb8e MpdlXmlTextServer.py --- a/MpdlXmlTextServer.py Thu Jun 17 19:38:59 2010 +0200 +++ b/MpdlXmlTextServer.py Thu Jun 17 20:34:36 2010 +0200 @@ -121,7 +121,7 @@ return serializeNode(pagenode) return "no text here" - def getNumPages(self,docinfo=None): + def getNumPages(self, docinfo): """get list of pages from fulltext and put in docinfo""" if 'numPages' in docinfo: # already there @@ -328,4 +328,4 @@ RESPONSE.redirect('manage_main') - \ No newline at end of file + diff -r 39167e96e582 -r 40730cfbcb8e documentViewer.py --- a/documentViewer.py Thu Jun 17 19:38:59 2010 +0200 +++ b/documentViewer.py Thu Jun 17 20:34:36 2010 +0200 @@ -172,9 +172,9 @@ """get search""" return self.template.fulltextclient.getSearch(**args) - def getNumPages(self, **args): + def getNumPages(self, docinfo): """get numpages""" - return self.template.fulltextclient.getNumPages(**args) + return self.template.fulltextclient.getNumPages(docinfo) def getTranslate(self, **args): """get translate""" @@ -587,7 +587,7 @@ docinfo['textURLPath'] = textUrl if not docinfo['imagePath']: # text-only, no page images - docinfo = self.getNumPages(docinfo) #im moment einfach auf eins setzen, navigation ueber die thumbs geht natuerlich nicht + docinfo = self.getNumPages(docinfo) presentationUrls = dom.xpath("//texttool/presentation") docinfo = self.getBibinfoFromIndexMeta(url, docinfo=docinfo, dom=dom) # get info von bib tag