Changeset 1143 for TI07-MOLES


Ignore:
Timestamp:
08/06/06 14:49:22 (13 years ago)
Author:
lawrence
Message:

Sundry errors fixed to support browse under apache ...

Location:
TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi/DiscoveryWS.py

    r1020 r1143  
    88# This version known to work (in part) with ZSI 1.6 patched for NDG ... 
    99 
    10 DEBUG=1 
     10DEBUG=0 
    1111 
    1212class DiscoveryState: 
     
    3636        ''' Establish connection to wsdl proxy at self.srv with self.sessID ''' 
    3737 
    38         try: 
    39             wr=WSDLReader() 
    40             self.srv=ServiceProxy(wsdl,use_wsdl=True,tracefile=tracefile) 
    41             if user is not None: 
    42                 conResp=self.srv.connect(in0=user,in1=passwd) 
    43             else: 
    44                 conResp=self.srv.connect() 
    45             self.sessID=conResp['connectReturn'] 
    46             if DEBUG: print 'Connection Made to Session: ',self.sessID 
    47         except Exception, e: 
    48             raise Exception(str(e)+os.linesep) 
     38        #try: 
     39        wr=WSDLReader() 
     40        self.srv=ServiceProxy(wsdl,use_wsdl=True,tracefile=tracefile) 
     41        if user is not None: 
     42            conResp=self.srv.connect(in0=user,in1=passwd) 
     43        else: 
     44            conResp=self.srv.connect() 
     45        self.sessID=conResp['connectReturn'] 
     46        if DEBUG: print 'Connection Made to Session: ',self.sessID 
    4947 
    5048    def SearchFullText(self,query): 
  • TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi/browseCGI.py

    r1140 r1143  
    252252                    return self.error('No records found'),title 
    253253                difs=[] 
     254                 
    254255                for result in results: difs.append(result) 
    255256                html=renderDiscoverySet(difs,state,selector=self.selector, 
  • TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi/geoUtilities.py

    r1006 r1143  
    3636                return html      
    3737    def toHTMLbox(self): 
    38         print self.box 
    3938        if self.box is not None: 
    4039            html='''<table><tbody><tr><td colspan="2" align="center">%s</td></tr> 
  • TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi/renderDiscoverySet.py

    r1097 r1143  
    120120 
    121121if __name__=="__main__": 
    122      
    123     from ETxmlView import xmlCleanup 
     122 
    124123    ws=DiscoveryWS() 
    125     r=ws.SearchFullText('acsoe') 
    126     hits,time=r['hits'],r['queryTime'] 
     124    hits=ws.SearchFullText('acsoe') 
    127125    results=ws.GetResults(offset=1,number=5) 
    128126    difs=[] 
    129127    querystring='dummyUrl' 
    130     state=Discovery(ws.sessionID,queryString,hits,stride=5) 
     128    state=DiscoveryState(ws.sessID,querystring,hits,stride=5) 
    131129    #g=file('log.xml','w') 
    132130    for result in results: 
Note: See TracChangeset for help on using the changeset viewer.