projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
763cfc7
)
switch from FieldStorage.value to FieldStorage.file
author
Zooko O'Whielacronx
<zooko@zooko.com>
Fri, 25 May 2007 23:00:19 +0000
(16:00 -0700)
committer
Zooko O'Whielacronx
<zooko@zooko.com>
Fri, 25 May 2007 23:00:19 +0000
(16:00 -0700)
Unfortunately this doesn't make the O(n) memory usage go away. It might reduce the constants -- I'm not sure. I look forward to enhancement #54 -- memory usage tests!
src/allmydata/webish.py
patch
|
blob
|
history
diff --git
a/src/allmydata/webish.py
b/src/allmydata/webish.py
index f03b01736d5749c64c1b6fca3e5865cc64e1f23d..794a6b766ba7594216c18b54d126b60a24b91b59 100644
(file)
--- a/
src/allmydata/webish.py
+++ b/
src/allmydata/webish.py
@@
-197,7
+197,7
@@
class Directory(rend.Page):
log.msg("starting webish upload")
uploader = get_uploader_service(ctx)
- d = uploader.upload(upload.
Data(contents.valu
e))
+ d = uploader.upload(upload.
FileHandle(contents.fil
e))
name = contents.filename
if privateupload:
d.addCallback(lambda vid: self.uploadprivate(name, vid))