Annotation of documentViewer/MpdlXmlTextServer.py, revision 1.86

1.2       casties     1: 
                      2: from OFS.SimpleItem import SimpleItem
                      3: from Products.PageTemplates.PageTemplateFile import PageTemplateFile 
                      4: from Ft.Xml import EMPTY_NAMESPACE, Parse
                      5: 
                      6: import sys
                      7: import logging
1.5       casties     8: import urllib
1.2       casties     9: import documentViewer
                     10: from documentViewer import getTextFromNode, serializeNode
                     11: 
                     12: class MpdlXmlTextServer(SimpleItem):
                     13:     """TextServer implementation for MPDL-XML eXist server"""
                     14:     meta_type="MPDL-XML TextServer"
                     15: 
                     16:     manage_options=(
                     17:         {'label':'Config','action':'manage_changeMpdlXmlTextServerForm'},
                     18:        )+SimpleItem.manage_options
                     19:     
                     20:     manage_changeMpdlXmlTextServerForm = PageTemplateFile("zpt/manage_changeMpdlXmlTextServer", globals())
                     21:         
1.3       casties    22:     def __init__(self,id,title="",serverUrl="http://mpdl-proto.mpiwg-berlin.mpg.de/mpdl/interface/", serverName=None, timeout=40):
1.2       casties    23:         """constructor"""
                     24:         self.id=id
                     25:         self.title=title
                     26:         self.timeout = timeout
1.3       casties    27:         if serverName is None:
                     28:             self.serverUrl = serverUrl
                     29:         else:
                     30:             self.serverUrl = "http://%s/mpdl/interface/"%serverName
1.2       casties    31:         
                     32:     def getHttpData(self, url, data=None):
                     33:         """returns result from url+data HTTP request"""
                     34:         return documentViewer.getHttpData(url,data,timeout=self.timeout)
                     35:     
                     36:     def getServerData(self, method, data=None):
                     37:         """returns result from text server for method+data"""
                     38:         url = self.serverUrl+method
                     39:         return documentViewer.getHttpData(url,data,timeout=self.timeout)
                     40: 
                     41:     def getSearch(self, pn=1, pageinfo=None,  docinfo=None, query=None, queryType=None, lemma=None):
                     42:         """get search list"""
                     43:         docpath = docinfo['textURLPath'] 
                     44:         url = docinfo['url']
1.23      abukhman   45:         logging.debug("documentViewer (gettoc) docpath: %s"%(docpath))
                     46:         logging.debug("documentViewer (gettoc) url: %s"%(url))
1.2       casties    47:         pagesize = pageinfo['queryPageSize']
                     48:         pn = pageinfo['searchPN']
                     49:         sn = pageinfo['sn']
                     50:         highlightQuery = pageinfo['highlightQuery']
1.34      abukhman   51:         query =pageinfo['query']
1.2       casties    52:         queryType =pageinfo['queryType']
                     53:         viewMode=  pageinfo['viewMode']
                     54:         tocMode = pageinfo['tocMode']
1.24      abukhman   55:         characterNormalization = pageinfo['characterNormalization']
1.2       casties    56:         tocPN = pageinfo['tocPN']
                     57:         selfurl = self.absolute_url()
                     58:         
1.41      abukhman   59:         data = self.getServerData("doc-query.xql","document=%s&mode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s&sn=%s&viewMode=%s&highlightQuery=%s"%(docpath, 'text', queryType, urllib.quote(query), pagesize, pn, sn, viewMode,urllib.quote(highlightQuery)))
1.2       casties    60:         #page=self.template.fulltextclient.eval("/mpdl/interface/doc-query.xql","document=%s&mode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s&sn=%s&viewMode=%s&highlightQuery=%s"%(docpath, 'text', queryType, query, pagesize, pn, sn, viewMode,highlightQuery) ,outputUnicode=False)                
                     61:         
                     62:         pagexml = data.replace('?document=%s'%str(docpath),'?url=%s'%url)
                     63:         pagedom = Parse(pagexml)
                     64:         if (queryType=="fulltext")or(queryType=="xpath")or(queryType=="xquery")or(queryType=="fulltextMorphLemma"):   
                     65:             pagedivs = pagedom.xpath("//div[@class='queryResultPage']")
                     66:             if len(pagedivs)>0:
                     67:                 pagenode=pagedivs[0]
                     68:                 links=pagenode.xpath("//a")
                     69:                 for l in links:
                     70:                     hrefNode = l.getAttributeNodeNS(None, u"href")
                     71:                     if hrefNode:
                     72:                         href = hrefNode.nodeValue
                     73:                         if href.startswith('page-fragment.xql'):
                     74:                             selfurl = self.absolute_url()            
1.30      abukhman   75:                             pagexml=href.replace('mode=text','mode=texttool&viewMode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s&tocMode=%s&searchPN=%s&tocPN=%s'%(viewMode,queryType,urllib.quote(query),pagesize,pn,tocMode,pn,tocPN))
1.2       casties    76:                             hrefNode.nodeValue = pagexml.replace('page-fragment.xql','%s'%selfurl)                                           
                     77:                 return serializeNode(pagenode)        
                     78:         if (queryType=="fulltextMorph"):
                     79:             pagedivs = pagedom.xpath("//div[@class='queryResult']")
                     80:             if len(pagedivs)>0:
                     81:                 pagenode=pagedivs[0]
                     82:                 links=pagenode.xpath("//a")
                     83:                 for l in links:
                     84:                     hrefNode = l.getAttributeNodeNS(None, u"href")
                     85:                     if hrefNode:
                     86:                         href = hrefNode.nodeValue
                     87:                         if href.startswith('page-fragment.xql'):
                     88:                             selfurl = self.absolute_url()       
1.30      abukhman   89:                             pagexml=href.replace('mode=text','mode=texttool&viewMode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s&tocMode=%s&searchPN=%s&tocPN=%s'%(viewMode,queryType,urllib.quote(query),pagesize,pn,tocMode,pn,tocPN))
1.2       casties    90:                             hrefNode.nodeValue = pagexml.replace('page-fragment.xql','%s'%selfurl)  
                     91:                         if href.startswith('../lt/lemma.xql'):
                     92:                             hrefNode.nodeValue = href.replace('../lt/lemma.xql','%s/template/head_main_lemma_New'%(selfurl))        
                     93:                             l.setAttributeNS(None, 'target', '_blank')
                     94:                             l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=400, scrollbars=1'); return false;")
1.6       abukhman   95:                             l.setAttributeNS(None, 'onClick', 'popupWin.focus();')  
1.2       casties    96:                 pagedivs = pagedom.xpath("//div[@class='queryResultMorphExpansion']")                
                     97:                 return serializeNode(pagenode)        
                     98:         if (queryType=="ftIndex")or(queryType=="ftIndexMorph"):
                     99:             pagedivs= pagedom.xpath("//div[@class='queryResultPage']")
                    100:             if len(pagedivs)>0:
                    101:                 pagenode=pagedivs[0]
                    102:                 links=pagenode.xpath("//a")
                    103:                 for l in links:
                    104:                     hrefNode = l.getAttributeNodeNS(None, u"href")
                    105:                     if hrefNode:
                    106:                         href = hrefNode.nodeValue
1.18      abukhman  107:                         hrefNode.nodeValue=href.replace('mode=text','mode=texttool&viewMode=%s&tocMode=%s&tocPN=%s&pn=%s'%(viewMode,tocMode,tocPN,pn))             
1.2       casties   108:                         if href.startswith('../lt/lex.xql'):
                    109:                             hrefNode.nodeValue = href.replace('../lt/lex.xql','%s/template/head_main_voc'%selfurl)         
                    110:                             l.setAttributeNS(None, 'target', '_blank')
                    111:                             l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=400, scrollbars=1'); return false;")
1.6       abukhman  112:                             l.setAttributeNS(None, 'onClick', 'popupWin.focus();')
1.2       casties   113:                         if href.startswith('../lt/lemma.xql'):
                    114:                             hrefNode.nodeValue = href.replace('../lt/lemma.xql','%s/template/head_main_lemma'%selfurl)        
                    115:                             l.setAttributeNS(None, 'target', '_blank')
                    116:                             l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=400, scrollbars=1'); return false;")
1.6       abukhman  117:                             l.setAttributeNS(None, 'onClick', 'popupWin.focus();')
1.2       casties   118:                 return serializeNode(pagenode)      
                    119:         return "no text here"   
                    120:                        
1.58      abukhman  121:     """def getNumPages(self, docinfo):
                    122:         ""get list of pages from fulltext and put in docinfo""
1.2       casties   123:         if 'numPages' in docinfo:
                    124:             # already there
1.43      abukhman  125:             return docinfo        
1.2       casties   126:         xquery = '//pb'
                    127:         text = self.getServerData("xquery.xql","document=%s&xquery=%s"%(docinfo['textURLPath'],xquery))
                    128:         docinfo['numPages'] = text.count("<pb ")
                    129:         return docinfo
1.58      abukhman  130:      """
1.43      abukhman  131:     def getNumTextPages (self, docinfo):
                    132:         """get list of pages from fulltext (texts without images) and put in docinfo"""
1.56      abukhman  133:         if 'numPages' in docinfo:
1.43      abukhman  134:             # allredy there
1.56      abukhman  135:             return docinfo
                    136:         xpath ='/count(//pb)'
                    137:         text=self.getServerData("xpath.xql", "document=%s&xpath=%s"%(docinfo['textURLPath'], xpath))
                    138:         dom = Parse(text)
                    139:         result= dom.xpath("//result/resultPage")
                    140:         docinfo['numPages']=int(getTextFromNode(result[0]))
1.43      abukhman  141:         return docinfo
1.58      abukhman  142:     
1.86    ! abukhman  143:     def getGisPlaces(self, docinfo):
1.58      abukhman  144:         """ Show all Gis Places of whole Page"""
                    145:         xpath='//place'
1.79      abukhman  146:         text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn))
1.58      abukhman  147:         pagedom = Parse(text)
1.86    ! abukhman  148:         result =pagedom.xpath("//result/resultPage/*")
1.72      abukhman  149:         for l in result:
1.86    ! abukhman  150:             hrefNode= l.getAttributeNodeNS(None, u"id")
        !           151:             logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l))
1.76      abukhman  152:             if hrefNode:
                    153:                 href= hrefNode.nodeValue
                    154:                 if href.startswith('id='):
1.81      abukhman  155:                     hrefNode.nodeValue = href.replace('id=',"?")
                    156:                                 
1.76      abukhman  157:         return serializeNode(pagenode)
1.58      abukhman  158:     
1.25      abukhman  159:     def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):
1.2       casties   160:         """returns single page from fulltext"""
                    161:         docpath = docinfo['textURLPath']
                    162:         path = docinfo['textURLPath']
                    163:         url = docinfo['url']
1.73      abukhman  164:         name = docinfo['name']
1.2       casties   165:         viewMode= pageinfo['viewMode']
                    166:         tocMode = pageinfo['tocMode']
1.20      abukhman  167:         characterNormalization=pageinfo['characterNormalization']
1.2       casties   168:         tocPN = pageinfo['tocPN']
                    169:         selfurl = self.absolute_url()   
                    170:         if mode == "text_dict":
                    171:             textmode = "textPollux"
                    172:         else:
                    173:             textmode = mode
1.19      abukhman  174:         #logging.debug("documentViewer (characterNormalization) characterNormalization: %s"%(characterNormalization))
1.26      abukhman  175:         textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s"%(docpath,textmode,pn,characterNormalization)
1.2       casties   176:         if highlightQuery is not None:
1.40      abukhman  177:             textParam +="&highlightQuery=%s&sn=%s"%(urllib.quote(highlightQuery),sn)           
1.2       casties   178:         
1.38      abukhman  179:         pagexml = self.getServerData("page-fragment.xql",textParam)
1.2       casties   180:         #pagexml=self.template.fulltextclient.eval("/mpdl/interface/page-fragment.xql", textParam, outputUnicode=False)
                    181:         
1.39      abukhman  182:         pagedom = Parse(pagexml)
1.2       casties   183:         # plain text mode
                    184:         if mode == "text":
                    185:             # first div contains text
                    186:             pagedivs = pagedom.xpath("/div")
                    187:             if len(pagedivs) > 0:      
                    188:                 pagenode = pagedivs[0]
                    189:                 links = pagenode.xpath("//a")
                    190:                 for l in links:
                    191:                     hrefNode = l.getAttributeNodeNS(None, u"href")
                    192:                     if hrefNode:
                    193:                         href= hrefNode.nodeValue
                    194:                         if href.startswith('#note-'):
1.27      abukhman  195:                             hrefNode.nodeValue = href.replace('#note-',"?url=%s&viewMode=%s&tocMode=%s&tocPN=%s&pn=%s#note-"%(url,viewMode,tocMode,tocPN,pn))
1.2       casties   196:                 return serializeNode(pagenode)
                    197:         if mode == "xml":
                    198:               # first div contains text
                    199:               pagedivs = pagedom.xpath("/div")
                    200:               if len(pagedivs) > 0:
                    201:                   pagenode = pagedivs[0]
                    202:                   return serializeNode(pagenode)
1.7       abukhman  203:         if mode == "gis":
                    204:               # first div contains text
                    205:               pagedivs = pagedom.xpath("/div")
                    206:               if len(pagedivs) > 0:
                    207:                   pagenode = pagedivs[0]
1.28      abukhman  208:                   links =pagenode.xpath("//a")
                    209:                   for l in links:
                    210:                       hrefNode =l.getAttributeNodeNS(None, u"href")
                    211:                       if hrefNode:
                    212:                           href=hrefNode.nodeValue
                    213:                           if href.startswith('http://chinagis.mpiwg-berlin.mpg.de'):
1.75      abukhman  214:                               hrefNode.nodeValue =href.replace('chinagis_REST/REST/db/chgis/mpdl','chinagis/REST/db/mpdl/%s'%name)
1.62      abukhman  215:                               l.setAttributeNS(None, 'target', '_blank') 
1.61      abukhman  216:                   return serializeNode(pagenode)
1.7       abukhman  217:                     
1.2       casties   218:         if mode == "pureXml":
                    219:               # first div contains text
                    220:               pagedivs = pagedom.xpath("/div")
                    221:               if len(pagedivs) > 0:
                    222:                   pagenode = pagedivs[0]
                    223:                   return serializeNode(pagenode)      
                    224:         # text-with-links mode
                    225:         if mode == "text_dict":
                    226:             # first div contains text
                    227:             pagedivs = pagedom.xpath("/div")
                    228:             if len(pagedivs) > 0:
                    229:                 pagenode = pagedivs[0]
                    230:                 # check all a-tags
                    231:                 links = pagenode.xpath("//a")
                    232:                 for l in links:
                    233:                     hrefNode = l.getAttributeNodeNS(None, u"href")
                    234:                     if hrefNode:
                    235:                         # is link with href
                    236:                         href = hrefNode.nodeValue
                    237:                         if href.startswith('lt/lex.xql'):
                    238:                             # is pollux link
                    239:                             selfurl = self.absolute_url()
                    240:                             # change href
                    241:                             hrefNode.nodeValue = href.replace('lt/lex.xql','%s/template/head_main_voc'%selfurl)
                    242:                             # add target
                    243:                             l.setAttributeNS(None, 'target', '_blank')
                    244:                             l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=700, scrollbars=1'); return false;")
1.6       abukhman  245:                             l.setAttributeNS(None, 'onClick', 'popupWin.focus();')      
1.2       casties   246:                         if href.startswith('lt/lemma.xql'):    
                    247:                             selfurl = self.absolute_url()
                    248:                             hrefNode.nodeValue = href.replace('lt/lemma.xql','%s/template/head_main_lemma'%selfurl)
                    249:                             l.setAttributeNS(None, 'target', '_blank')
                    250:                             l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=700, scrollbars=1'); return false;")
1.6       abukhman  251:                             l.setAttributeNS(None, 'onClick', 'popupWin.focus();')   
1.2       casties   252:                         if href.startswith('#note-'):
1.19      abukhman  253:                             hrefNode.nodeValue = href.replace('#note-',"?url=%s&viewMode=%s&tocMode=%s&tocPN=%s&pn=%s#note-"%(url,viewMode,tocMode,tocPN,pn))    
1.2       casties   254:                 return serializeNode(pagenode)
                    255:         return "no text here"
                    256: 
                    257:     def getTranslate(self, query=None, language=None):
                    258:         """translate into another languages"""
1.5       casties   259:         data = self.getServerData("lt/lex.xql","document=&language="+str(language)+"&query="+urllib.quote(query))
1.2       casties   260:         #pagexml=self.template.fulltextclient.eval("/mpdl/interface/lt/lex.xql","document=&language="+str(language)+"&query="+url_quote(str(query)))
                    261:         return data
                    262:     
                    263:     def getLemma(self, lemma=None, language=None):
                    264:         """simular words lemma """
1.5       casties   265:         data = self.getServerData("lt/lemma.xql","document=&language="+str(language)+"&lemma="+urllib.quote(lemma))
1.2       casties   266:         #pagexml=self.template.fulltextclient.eval("/mpdl/interface/lt/lemma.xql","document=&language="+str(language)+"&lemma="+url_quote(str(lemma)))
                    267:         return data
                    268:     
                    269:     def getLemmaNew(self, query=None, language=None):
                    270:         """simular words lemma """
1.5       casties   271:         data = self.getServerData("lt/lemma.xql","document=&language="+str(language)+"&lemma="+urllib.quote(query))
1.2       casties   272:         #pagexml=self.template.fulltextclient.eval("/mpdl/interface/lt/lemma.xql","document=&language="+str(language)+"&lemma="+url_quote(str(query)))
                    273:         return data
1.28      abukhman  274:     
1.2       casties   275:     def getQuery (self,  docinfo=None, pageinfo=None, query=None, queryType=None, pn=1):
                    276:          """number of"""
                    277:          docpath = docinfo['textURLPath'] 
                    278:          pagesize = pageinfo['queryPageSize']
                    279:          pn = pageinfo['searchPN']
1.34      abukhman  280:          query =pageinfo['query']
1.2       casties   281:          queryType =pageinfo['queryType']
                    282:          tocSearch = 0
                    283:          tocDiv = None
                    284:          
1.32      abukhman  285:          pagexml = self.getServerData("doc-query.xql","document=%s&mode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s"%(docpath, 'text', queryType, urllib.quote(query), pagesize, pn))
1.2       casties   286:          #pagexml=self.template.fulltextclient.eval("/mpdl/interface/doc-query.xql","document=%s&mode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s"%(docpath, 'text', queryType, query, pagesize, pn) ,outputUnicode=False)
                    287:          pagedom = Parse(pagexml)
                    288:          numdivs = pagedom.xpath("//div[@class='queryResultHits']")
                    289:          tocSearch = int(getTextFromNode(numdivs[0]))
                    290:          tc=int((tocSearch/10)+1)
1.23      abukhman  291:          logging.debug("documentViewer (gettoc) tc: %s"%(tc))
1.2       casties   292:          return tc
                    293: 
                    294:     def getToc(self, mode="text", docinfo=None):
                    295:         """loads table of contents and stores in docinfo"""
1.23      abukhman  296:         logging.debug("documentViewer (gettoc) mode: %s"%(mode))
1.2       casties   297:         if mode == "none":
                    298:             return docinfo        
                    299:         if 'tocSize_%s'%mode in docinfo:
                    300:             # cached toc
                    301:             return docinfo
                    302:         
                    303:         docpath = docinfo['textURLPath']
                    304:         # we need to set a result set size
                    305:         pagesize = 1000
                    306:         pn = 1
                    307:         if mode == "text":
                    308:             queryType = "toc"
                    309:         else:
                    310:             queryType = mode
                    311:         # number of entries in toc
                    312:         tocSize = 0
                    313:         tocDiv = None
                    314:         
                    315:         pagexml = self.getServerData("doc-query.xql","document=%s&queryType=%s&queryResultPageSize=%s&queryResultPN=%s"%(docpath,queryType, pagesize, pn))
                    316:         #pagexml=self.template.fulltextclient.eval("/mpdl/interface/doc-query.xql", "document=%s&queryType=%s&queryResultPageSize=%s&queryResultPN=%s"%(docpath,queryType,pagesize,pn), outputUnicode=False)
                    317:         # post-processing downloaded xml
                    318:         pagedom = Parse(pagexml)
                    319:         # get number of entries
                    320:         numdivs = pagedom.xpath("//div[@class='queryResultHits']")
                    321:         if len(numdivs) > 0:
                    322:             tocSize = int(getTextFromNode(numdivs[0]))
                    323:         docinfo['tocSize_%s'%mode] = tocSize
                    324:         return docinfo
                    325:     
                    326:     def getTocPage(self, mode="text", pn=1, pageinfo=None, docinfo=None):
                    327:         """returns single page from the table of contents"""
                    328:         # TODO: this should use the cached TOC
                    329:         if mode == "text":
                    330:             queryType = "toc"
                    331:         else:
                    332:             queryType = mode
                    333:         docpath = docinfo['textURLPath']
                    334:         path = docinfo['textURLPath']       
                    335:         pagesize = pageinfo['tocPageSize']
                    336:         pn = pageinfo['tocPN']
                    337:         url = docinfo['url']
                    338:         selfurl = self.absolute_url()  
                    339:         viewMode=  pageinfo['viewMode']
1.26      abukhman  340:         characterNormalization = pageinfo ['characterNormalization']
1.2       casties   341:         tocMode = pageinfo['tocMode']
                    342:         tocPN = pageinfo['tocPN']  
                    343:         
1.23      abukhman  344:         data = self.getServerData("doc-query.xql","document=%s&queryType=%s&queryResultPageSize=%s&queryResultPN=%s&characterNormalization=%s"%(docpath,queryType, pagesize, pn,characterNormalization))  
                    345:         page = data.replace('page-fragment.xql?document=%s'%str(path),'%s?url=%s&viewMode=%s&tocMode=%s&tocPN=%s'%(selfurl,url, viewMode, tocMode, tocPN))
1.2       casties   346:         text = page.replace('mode=image','mode=texttool')
1.21      abukhman  347:         logging.debug("documentViewer (characterNormalization) characterNormalization: %s"%(characterNormalization))
1.19      abukhman  348:         #logging.debug("documentViewer (characterNormalization) text: %s"%(text))
1.2       casties   349:         return text
                    350:     
                    351:     def manage_changeMpdlXmlTextServer(self,title="",serverUrl="http://mpdl-proto.mpiwg-berlin.mpg.de/mpdl/interface/",timeout=40,RESPONSE=None):
                    352:         """change settings"""
                    353:         self.title=title
                    354:         self.timeout = timeout
                    355:         self.serverUrl = serverUrl
                    356:         if RESPONSE is not None:
                    357:             RESPONSE.redirect('manage_main')
                    358:         
                    359: # management methods
                    360: def manage_addMpdlXmlTextServerForm(self):
                    361:     """Form for adding"""
                    362:     pt = PageTemplateFile("zpt/manage_addMpdlXmlTextServer", globals()).__of__(self)
                    363:     return pt()
                    364: 
                    365: def manage_addMpdlXmlTextServer(self,id,title="",serverUrl="http://mpdl-proto.mpiwg-berlin.mpg.de/mpdl/interface/",timeout=40,RESPONSE=None):
                    366:     """add zogiimage"""
                    367:     newObj = MpdlXmlTextServer(id,title,serverUrl,timeout)
                    368:     self.Destination()._setObject(id, newObj)
                    369:     if RESPONSE is not None:
                    370:         RESPONSE.redirect('manage_main')
                    371: 
                    372: 
1.4       casties   373:     

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>