<type 'exceptions.KeyError'>: 'file'

/Library/Python/2.6/site-packages/Twisted-10.2.0-py2.6-macosx-10.6-universal.egg/twisted/internet/defer.py, line 133 in maybeDeferred
131
    """
132
    try:
133
        result = f(*args, **kw)
134
    except:
Locals
args(PageContext(tag=<allmydata.web.directory.DirectoryNodeHandler object at 0x1007cc450>, remembrances={'nevow.inevow.ICurrentSegments': ('uri', 'URI:DIR2:xxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', ''), 'nevow.inevow.IRemainingSegments': ()}),)
kw{}
f<bound method DirectoryNodeHandler.renderHTTP of <allmydata.web.directory.DirectoryNodeHandler object at 0x1007cc450>>
/Users/owhielaclient/tahoe-lafs/src/allmydata/web/common.py, line 302 in renderHTTP
300
            from twisted.web.server import UnsupportedMethod
301
            raise UnsupportedMethod(getattr(self, 'allowedMethods', ()))
302
        return m(ctx)
303
Locals
m<bound method DirectoryNodeHandler.render_POST of <allmydata.web.directory.DirectoryNodeHandler object at 0x1007cc450>>
self<allmydata.web.directory.DirectoryNodeHandler object at 0x1007cc450>
ctxPageContext(tag=<allmydata.web.directory.DirectoryNodeHandler object at 0x1007cc450>, remembrances={'nevow.inevow.ICurrentSegments': ('uri', 'URI:DIR2:xxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', ''), 'nevow.inevow.IRemainingSegments': ()})
Globals
server<module 'twisted.web.server' from '/Library/Python/2.6/site-packages/Twisted-10.2.0-py2.6-macosx-10.6-universal.egg/twisted/web/server.pyc'>
/Users/owhielaclient/tahoe-lafs/src/allmydata/web/directory.py, line 202 in render_POST
200
            d = self._POST_mkdir_p(req)
201
        elif t == "upload":
202
            d = self._POST_upload(ctx) # this one needs the context
203
        elif t == "uri":
Locals
self<allmydata.web.directory.DirectoryNodeHandler object at 0x1007cc450>
req<POST /uri/URI%3ADIR2%3Axxxxxxxxxxxxxxxxxxxxxxxxxx%3Axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ HTTP/1.1>
ctxPageContext(tag=<allmydata.web.directory.DirectoryNodeHandler object at 0x1007cc450>, remembrances={'nevow.inevow.ICurrentSegments': ('uri', 'URI:DIR2:xxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', ''), 'nevow.inevow.IRemainingSegments': ()})
t'upload'
/Users/owhielaclient/tahoe-lafs/src/allmydata/web/directory.py, line 307 in _POST_upload
305
        req = IRequest(ctx)
306
        charset = get_arg(req, "_charset", "utf-8")
307
        contents = req.fields["file"]
308
        assert contents.filename is None or isinstance(contents.filename, str)
Locals
charset'utf-8'
ctxPageContext(tag=<allmydata.web.directory.DirectoryNodeHandler object at 0x1007cc450>, remembrances={'nevow.inevow.ICurrentSegments': ('uri', 'URI:DIR2:xxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', ''), 'nevow.inevow.IRemainingSegments': ()})
req<POST /uri/URI%3ADIR2%3Axxxxxxxxxxxxxxxxxxxxxxxxxx%3Axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ HTTP/1.1>
Globals
get_arg<function get_arg at 0x1033ed6e0>
IRequest<InterfaceClass nevow.inevow.IRequest>
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/cgi.py, line 520 in __getitem__
518
            if item.name == key: found.append(item)
519
        if not found:
520
            raise KeyError, key
521
        if len(found) == 1:
Locals
itemFieldStorage('when_done', None, '.')
key'file'
found[]

<type 'exceptions.KeyError'>: 'file'