- Timestamp:
- 06/06/06 14:54:19 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi/browseCGI.py
r1097 r1098 99 99 return cookie 100 100 101 class Request: 102 ''' Holds the request URL etc ''' 103 def __init__(self,env): 104 self.env=env 105 self.URL='http://%s:%s%s'%(env.get('SERVER_NAME'),env.get('SERVER_PORT'), 106 env.get('SCRIPT_NAME')) 107 qs=env.get('QUERY_STRING') 108 if qs!='': self.URL+='?'+qs 109 101 110 class CGIcontroller: 102 111 ''' Currently holds the cgi environment and controls ''' … … 104 113 def __init__(self,config): 105 114 ''' Instantiate the CGI environment''' 115 # 116 # Need to refactor all of this to use the request class and then move 117 # the request class out into the utilities ... 118 # 106 119 self.env=os.environ 107 120 self.path=self.env.get('PATH_INFO','/') … … 109 122 self.config=config 110 123 self.response=Response() 111 self.requestURL=self.env.get('SCRIPT_NAME')+'?'+self.env.get('QUERY_STRING') 124 self.request=Request(self.env) 125 self.requestURL=self.request.URL 112 126 self.selector=selector(self.requestURL,config.get('layout','selectI')) 113 127
Note: See TracChangeset
for help on using the changeset viewer.