Changeset 2046
- Timestamp:
- 25/01/07 09:33:47 (14 years ago)
- Location:
- TI07-MOLES/trunk/PythonCode/wsgi
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TI07-MOLES/trunk/PythonCode/wsgi/00deploy.sh
r2045 r2046 6 6 echo $PYTHONPATH 7 7 ${MYPYTHONBIN}paster serve ndg.ini 8 # need to modifiy to have shell magic number, and get environmentand9 # add to python path -
TI07-MOLES/trunk/PythonCode/wsgi/ndg.ini
r2045 r2046 1 #!/usr/bin/env paster 2 # 1 3 2 # This is the (proto) paster-deploy configuration file for the NDG discovery and browse software 4 3 # BNL December 2006 5 #6 7 #[exe]8 #command=server9 #daemon=true10 #user=bnl11 #group=webuser12 4 13 5 [server:main] … … 16 8 port = 8001 17 9 #use = egg:PasteScript#flup_fcgi_thread 18 #socket = /tmp/ndg .fastcgi.soc10 #socket = /tmp/ndg_fastcgi.soc 19 11 20 12 -
TI07-MOLES/trunk/PythonCode/wsgi/ndgGateKeeper.py
r1933 r2046 72 72 pass 73 73 74 r=self.wrapTarget(environ,wrapped_start_response) 74 try: 75 # now look at the document and decide whether the user can look at it ... 76 r=self.wrapTarget(environ,wrapped_start_response) 77 # yes they can see it ... 78 r=self.shower.get(xml,inputs['format'],otype=outputType) 79 except ValueError,e: 80 r=e 81 82 # now do the real start response 83 start_response('200 OK', [('Content-Type', ctype)]) 84 print r 75 85 xml=r[0] 76 86 77 # now look at the document and decide whether the user can look at it ...78 87 79 # yes they can see it ...80 r=self.shower.get(xml,inputs['format'],otype=outputType)81 82 # now do the real start response83 start_response('200 OK', [('Content-Type', ctype)])84 88 85 89 return r -
TI07-MOLES/trunk/PythonCode/wsgi/ndgRetrieve.py
r1989 r2046 90 90 if 'uri' not in inputs.keys(): 91 91 r=self.__prompt() 92 raise ValueError,r 92 93 else: 93 94 uri=inputs['uri'].strip() … … 136 137 ctype='text/xml' 137 138 start_response('200 OK', [('Content-Type', ctype)]) 138 139 return [r] 139 140 140 141
Note: See TracChangeset
for help on using the changeset viewer.