source: products/SimpleBlog/trunk/skins/SimpleBlog/sbtrackbackResponse.py @ 1

Last change on this file since 1 was 1, checked in by myroslav, 18 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 511 bytes
Line 
1## Script (Python) "trackbackResponse"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=code, msg
8##title=Generate a trackback response
9##
10
11context.REQUEST.RESPONSE.setHeader('Content-Type','text/xml')
12
13resp = '<?xml version="1.0" encoding="iso-8859-1"?>\n'
14resp += '<response>\n'
15resp += '<error>' + str(code) + '</error>\n'
16
17if msg != '':
18    resp += '<message>' + msg + '</message>\n'
19
20resp += '</response>\n'
21
22return resp
Note: See TracBrowser for help on using the repository browser.