Ignore:
Timestamp:
17/05/07 11:38:17 (13 years ago)
Author:
lawrence
Message:

Modifications to support cut-down stub-b xquery.
Slight rearrangement of page positioning in discovery. (Needs CSS
support)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/wsgi/DiscoveryState.py

    r2340 r2487  
    33    ''' This class holds the state associated with presenting multiple slices 
    44    of a large result set ''' 
    5     def __init__(self,sessionID,environ,hits,offset=1,stride=10): 
     5    def __init__(self,sessionID,searchString,environ,hits,offset=1,stride=10): 
    66        ''' On instantiation, provide 
    77                the backend sessionID 
     
    1313        self.offset=offset 
    1414        self.stride=stride 
     15        self.searchString=searchString 
    1516    def geturl(self,**kw): 
    1617        ''' Get a url from the wsgi environment, modified by the keyword arguments offset and stride  
     
    3435        DummyEnviron={'QUERY_STRING':'start=10&howmany=10','HTTP_HOST':'example.ndg', 
    3536                      'PATH_INFO':'/discovery','wsgi.url_scheme':'http','SERVER_PORT':'80'} 
    36         d=DiscoveryState('123',DummyEnviron,12) 
     37        d=DiscoveryState('123','blah',DummyEnviron,12) 
    3738        self.assertEqual(d.geturl(offset='11',stride='20'), 
    3839                         'http://example.ndg/discovery?start=11&howmany=20') 
Note: See TracChangeset for help on using the changeset viewer.