Created
May 24, 2011 14:42
-
-
Save djfroofy/988833 to your computer and use it in GitHub Desktop.
Traceback after trying PUT in txyoga
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web.Server Traceback (most recent call last): | |
<type 'exceptions.AttributeError'>: Request instance has no attribute 'body' | |
/Users/dsmathers/Envs/scrubbed/lib/python2.6/site-packages/Twisted-11.0.0_r31757-py2.6-macosx-10.6-universal.egg/twisted/web/server.py, line 126 in process | |
124 self.postpath = map(unquote, string.split(self.path[1:], '/')) | |
125 try: | |
126 resrc = self.site.getResourceFor(self) | |
127 self.render(resrc) | |
/Users/dsmathers/Envs/scrubbed/lib/python2.6/site-packages/Twisted-11.0.0_r31757-py2.6-macosx-10.6-universal.egg/twisted/web/server.py, line 542 in getResourceFor | |
540 # servers and disconnected sites. | |
541 request.sitepath = copy.copy(request.prepath) | |
542 return resource.getChildForRequest(self.resource, request) | |
543 | |
/Users/dsmathers/Envs/scrubbed/lib/python2.6/site-packages/Twisted-11.0.0_r31757-py2.6-macosx-10.6-universal.egg/twisted/web/resource.py, line 65 in getChildForRequest | |
63 pathElement = request.postpath.pop(0) | |
64 request.prepath.append(pathElement) | |
65 resource = resource.getChildWithDefault(pathElement, request) | |
66 return resource | |
/Users/dsmathers/Envs/scrubbed/lib/python2.6/site-packages/Twisted-11.0.0_r31757-py2.6-macosx-10.6-universal.egg/twisted/web/resource.py, line 169 in getChildWithDefault | |
167 if path in self.children: | |
168 return self.children[path] | |
169 return self.getChild(path, request) | |
170 | |
/Users/dsmathers/Envs/scrubbed/lib/python2.6/site-packages/txyoga/resource.py, line 151 in getChild | |
149 except KeyError: | |
150 if request.method == "PUT" and not request.postpath: | |
151 return self._createElement(path, request) | |
152 | |
/Users/dsmathers/Envs/scrubbed/lib/python2.6/site-packages/txyoga/resource.py, line 170 in _createElement | |
168 try: | |
169 decoder, contentType = self._getDecoder(request) | |
170 state = decoder(request.body) | |
171 | |
<type 'exceptions.AttributeError'>: Request instance has no attribute 'body' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment