Ignore:
Timestamp:
02/02/07 16:28:09 (13 years ago)
Author:
lawrence
Message:

Sundry modifications associated with the deployment on glue, and better
options for viewing and downloading the underlying xml records (not yet
complete)

File:
1 edited

Legend:

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

    r1934 r2097  
    7070        ''' Let's prepend and postpend some stuff''' 
    7171        if ('type','xml') in parse_querystring(environ): 
    72             response=['''<?xml version="1.0" encoding="utf-8"?>'''] 
     72            response='''<?xml version="1.0" encoding="utf-8"?>''' 
    7373            footer=0 
    7474        else: 
    7575            footer=1 
    76             response=[self.pageStart,self.header] 
     76            response=self.pageStart+self.header 
    7777        if environ['SCRIPT_NAME']=='/discovery': 
    7878            insert=self.disclaimer 
     
    8080            insert=self.discovery+self.disclaimer 
    8181        self.footer='''<div id="Footer">%s</div></div></body></html>'''%insert 
    82         for i in self.wrapTarget(environ,start_response): response.append(i) 
    83         if footer: response.append(self.footer) 
    84         return response 
     82        for i in self.wrapTarget(environ,start_response): response+=i 
     83        if footer: response+=self.footer 
     84        #currently need to coerce response into a string for flup ... 
     85        return [str(response)] 
    8586         
    8687         
Note: See TracChangeset for help on using the changeset viewer.