Ignore:
Timestamp:
20/08/07 10:36:32 (12 years ago)
Author:
lawrence
Message:

Trackback bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/trackback.py

    r2799 r2829  
    1111        # need to receive a trackback, and mail someone ... 
    1212         
    13         incoming=request.environ['querystring'] 
     13        incoming=request.params 
    1414        keys=incoming.keys() 
    15         payload='<trackback><uri>%s</uri>' 
     15        payload='<trackback><uri>%s</uri>'%uri 
    1616         
    1717        #make sure we have both url and title 
     
    1919            err='Incomplete trackback, need both url and title at the every least' 
    2020        for key in keys: 
    21             payload.append('<%s>%s</%s>'%(key,incoming[key],key)) 
     21            payload+='<%s>%s</%s>'%(key,incoming[key],key) 
    2222         
    2323        #now get server and trackback recipient. 
     
    4747            else: 
    4848                c.err=1 
    49                 c.message=message 
     49                c.message='Unable to forward trackback to designated recipient [%s]'%message 
    5050         
    51         return render_response(trackback) 
     51        r=render_response('trackback',format='xml') 
     52        r.headers['content-type'] = 'text/xml' 
     53        return r 
Note: See TracChangeset for help on using the changeset viewer.