version 1.213, 2010/11/24 11:32:36
|
version 1.214, 2010/11/25 09:03:50
|
Line 143 class MpdlXmlTextServer(SimpleItem):
|
Line 143 class MpdlXmlTextServer(SimpleItem):
|
def getGisPlaces(self, docinfo=None, pageinfo=None): |
def getGisPlaces(self, docinfo=None, pageinfo=None): |
""" Show all Gis Places of whole Page""" |
""" Show all Gis Places of whole Page""" |
xpath='//place' |
xpath='//place' |
docpath = docinfo['textURLPath'] |
docpath = docinfo.get('textURLPath',None) |
|
if not docpath: |
|
return None |
|
|
url = docinfo['url'] |
url = docinfo['url'] |
selfurl = self.absolute_url() |
selfurl = self.absolute_url() |
pn = pageinfo['current'] |
pn = pageinfo['current'] |
Line 198 class MpdlXmlTextServer(SimpleItem):
|
Line 201 class MpdlXmlTextServer(SimpleItem):
|
|
|
def getOrigPages (self, docinfo=None, pageinfo=None): |
def getOrigPages (self, docinfo=None, pageinfo=None): |
"""Show original page """ |
"""Show original page """ |
docpath = docinfo['textURLPath'] |
docpath = docinfo.get('textURLPath',None) |
|
if not docpath: |
|
return None |
|
|
logging.debug ("docinfo['textURLPath']=%s"%(docinfo['textURLPath'])) |
logging.debug ("docinfo['textURLPath']=%s"%(docinfo['textURLPath'])) |
#url = docinfo['url'] |
#url = docinfo['url'] |
selfurl = self.absolute_url() |
selfurl = self.absolute_url() |