aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeServer.py
diff options
context:
space:
mode:
authorDr Scofield2009-01-26 21:35:38 +0000
committerDr Scofield2009-01-26 21:35:38 +0000
commit92b6d1efbb193da12ffbb8d7e021dffd44dbf8ba (patch)
treee9ab657cf220776f90abf53640b802aa5c0cd2d8 /OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeServer.py
parent~ fixing bugs in ConciergeServer.py test code (diff)
downloadopensim-SC-92b6d1efbb193da12ffbb8d7e021dffd44dbf8ba.zip
opensim-SC-92b6d1efbb193da12ffbb8d7e021dffd44dbf8ba.tar.gz
opensim-SC-92b6d1efbb193da12ffbb8d7e021dffd44dbf8ba.tar.bz2
opensim-SC-92b6d1efbb193da12ffbb8d7e021dffd44dbf8ba.tar.xz
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeServer.py')
-rwxr-xr-xOpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeServer.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeServer.py b/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeServer.py
index 4a1a2b0..e5b1fd2 100755
--- a/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeServer.py
+++ b/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeServer.py
@@ -61,12 +61,12 @@ class ConciergeHandler(BaseHTTPServer.BaseHTTPRequestHandler):
61 61
62 self.logResponse(200) 62 self.logResponse(200)
63 63
64 def dumpXml(self, xml): 64 def dumpXml(xml):
65 logging.debug('[ConciergeHandler] %s', xml.tag) 65 logging.debug('[ConciergeHandler] %s', xml.tag)
66 for attr in xml.attrib: 66 for attr in xml.attrib:
67 logging.debug('[ConciergeHandler] %s [%s] %s', xml.tag, attr, xml.attrib[attr]) 67 logging.debug('[ConciergeHandler] %s [%s] %s', xml.tag, attr, xml.attrib[attr])
68 for kid in xml.getchildren(): 68 for kid in xml.getchildren:
69 self.dumpXml(kid) 69 dumpXml(kid)
70 70
71 def do_POST(self): 71 def do_POST(self):
72 self.logRequest() 72 self.logRequest()
@@ -80,8 +80,8 @@ class ConciergeHandler(BaseHTTPServer.BaseHTTPRequestHandler):
80 80
81 logging.debug('[ConciergeHandler] POST: content: %s', content) 81 logging.debug('[ConciergeHandler] POST: content: %s', content)
82 try: 82 try:
83 postXml = ET.fromstring(content) 83 postXml = ET.parse(content)
84 self.dumpXml(postXml) 84 dumpXml(postXml)
85 except xml.parsers.expat.ExpatError, xmlError: 85 except xml.parsers.expat.ExpatError, xmlError:
86 logging.error('[ConciergeHandler] POST illformed:%s', xmlError) 86 logging.error('[ConciergeHandler] POST illformed:%s', xmlError)
87 self.send_response(500) 87 self.send_response(500)