Ignore:
Timestamp:
23/08/07 13:31:56 (12 years ago)
Author:
lawrence
Message:

This is a fix for at least some of the ticket:857 problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/models/DiscoveryState.py

    r2786 r2842  
    1 from paste.request import parse_querystring,construct_url 
    2 import cgi 
     1from paste.request import parse_querystring 
     2import cgi,urllib 
    33class constraints: 
    44    ''' A container object for constraints on a search ''' 
     
    6666            if 'start' in args: del args['start'] 
    6767            if 'howmany' in args: del args['howmany'] 
    68         q='' 
     68        q='?' 
    6969        for i in args: q+='%s=%s&'%(i,args[i]) 
    7070        q=q[0:-1] 
    71         url=construct_url(self.environ, with_query_string=True, with_path_info=True, querystring=q) 
     71        url=urllib.quote(self.environ.get('SCRIPT_NAME','')) + \ 
     72            urllib.quote(self.environ.get('PATH_INFO','')) + q 
    7273        #url=cgi.escape(url) 
    7374        return url 
Note: See TracChangeset for help on using the changeset viewer.