Brian Warner
81a9904455
CHK: remove the storage index from the URI, deriving it from the key instead
2007-07-21 18:23:15 -07:00
Brian Warner
2bc3c163b6
uri.py: get keys and index from the URI instance
2007-07-21 17:45:00 -07:00
Brian Warner
9cac3261a7
docs/uri.txt: document current URI formats
2007-07-21 17:29:01 -07:00
Brian Warner
1d9a58977f
uri: implement URI-processing classes, IFileURI/IDirnodeURI, use internally
2007-07-21 15:40:36 -07:00
Brian Warner
32fcf0b405
dirnode.build_manifest(): tolerate cycles in the directory graph
2007-07-21 15:40:13 -07:00
Brian Warner
e3a57fca98
upload: finish refactoring, all unit tests pass now
2007-07-19 22:53:29 -07:00
Brian Warner
9af506900b
upload: refactor to enable streaming upload. not all tests pass yet
2007-07-19 18:21:44 -07:00
Brian Warner
a7f04616bf
webish: improve test coverage further
2007-07-17 12:28:29 -07:00
Brian Warner
3197e1d39b
webish: improve test coverage of WebDownloadTarget
2007-07-17 12:16:45 -07:00
Brian Warner
2aff1ccd44
Makefile/check-memory: put all stats in ./memstats.out
2007-07-17 10:41:41 -07:00
Brian Warner
d927d371b7
check_memory.py: test POST-based uploads as well as from-disk ones
2007-07-16 20:17:51 -07:00
Brian Warner
4db205b8b3
vdrive.py: log a note when we successfully retrieve the global root directory
2007-07-16 20:17:06 -07:00
Brian Warner
0826b1bd34
introducer.py: minor rearrangement of methods
2007-07-16 19:47:42 -07:00
Brian Warner
0269a6229b
check_memory.py: fix benign-but-noisy vdrive.furl handling bug
2007-07-16 19:34:52 -07:00
Brian Warner
0fd5dcacf6
check_memory: update it, write stats to a file, disable 50MB test for now
2007-07-16 18:08:55 -07:00
Brian Warner
1aa22b9abd
client.py: add a 'debug_no_storage' option to throw out all share data
2007-07-16 18:07:03 -07:00
Brian Warner
e91288d9ed
client.py: write control.furl in the right place
2007-07-16 18:06:27 -07:00
robk-org
920fed7f2a
added unit test to webish's rename function
...
added unit tests to test various permutations of the rename function, and
some sanity checks on the rename-form function.
also added a guard to prevent '/' in from_/to_name in rename calls.
2007-07-16 17:05:01 -07:00
Brian Warner
9be3da03f6
runner.py: make 'allmydata-tahoe --version' emit version numbers of everything
2007-07-16 14:58:36 -07:00
Brian Warner
20c980d02b
reduce MAX_SEGMENT_SIZE from 2MB to 1MB, to compensate for the large blocks that 3-of-10 produces
2007-07-16 13:48:34 -07:00
Brian Warner
e2e3b19a37
misc/storage-overhead.py: tool to estimate storage-space overhead per filesize
2007-07-16 13:43:31 -07:00
Brian Warner
56dcb814a8
webish: test error cases more thoroughly by looking inside the response text
2007-07-16 12:01:19 -07:00
Brian Warner
3f294d5597
webish: oops, handle POST without localfile= too
2007-07-16 12:00:54 -07:00
Brian Warner
f207f4a199
webish.py: disallow slashes in POSTed filenames. Closes #75 .
2007-07-16 11:53:12 -07:00
Brian Warner
7bc031a81d
webish.Directory: add a 'text/plain' link for files, to download as plaintext.
...
This is useful to view (e.g.) .py files that would otherwise be served as
some weird text/x-python that browsers will just want to save to disk.
2007-07-13 23:45:35 -07:00
Brian Warner
225fbfee57
storage.py: add a test for the next_power_of_k fix I made a few hours ago, basically do an upload with a non-power-of-two number of segments
2007-07-13 22:24:06 -07:00
Brian Warner
6e1ad64c9d
webish.py: test that _get_or_create_directories fix I made a few hours ago
2007-07-13 22:19:16 -07:00
Brian Warner
016e17446a
simplejson: lower our minimum-required-version of setuptools to 0.6a9, since that seems to work, and it's the version that comes with dapper
2007-07-13 19:47:56 -07:00
Brian Warner
a290205ade
webish: handle PUTs to direct children of the root
2007-07-13 19:31:52 -07:00
Brian Warner
8a39ee9034
storage.py: turn some assertions into preconditions
2007-07-13 19:30:48 -07:00
Brian Warner
9fc687cdfc
storage.py: handle num_segments != power-of-two without an assertion
2007-07-13 19:30:21 -07:00
Brian Warner
5c08be170e
interfaces: increase ShareSize now that our default k is smaller (hence blocks are bigger)
2007-07-13 19:29:31 -07:00
Brian Warner
c6f52e379a
rename storageserver.py to just storage.py, since it has both server and client sides now
2007-07-13 17:25:45 -07:00
Brian Warner
0468448b85
welcome.xhtml: add a link to allmydata.org
2007-07-13 17:15:44 -07:00
Brian Warner
d206843625
encode.py: minor typo
2007-07-13 17:00:06 -07:00
Brian Warner
4d868e6649
fix dump-uri-extension
2007-07-13 16:58:08 -07:00
Brian Warner
35117d77a0
storageserver.ReadBucketProxy: break out _parse_offsets, for debug tools
2007-07-13 16:52:17 -07:00
Brian Warner
7589a8ee82
storage: we must truncate short segments. Now most tests pass (except uri_extension)
2007-07-13 16:38:25 -07:00
Brian Warner
1f8e407d9c
more #85 work, system test still fails
2007-07-13 15:09:01 -07:00
Brian Warner
cd8648d39b
storage: use one file per share instead of 7 ( #85 ). work-in-progress, tests still fail
2007-07-13 14:04:49 -07:00
Brian Warner
6ff94541a8
control.py: make get_memory_usage() callable from elsewhere
2007-07-08 19:07:54 -07:00
robk-org
d65d02fa58
add a 'rename' button to the webish dir view
...
alongside the 'del' button is now presented a 'rename' button, which takes
the user to a new page, the 't=rename-form' page, which asks ther user for
the new name of the child and ultimately submits a POST request to the dir
for 't=rename' to perform the actual rename i.e. an attach followed by a
delete of children.
2007-07-12 16:53:54 -07:00
robk-org
15c3055176
fix bug in arg handling around 'delete' button in directory view
...
the code composing the form providing the 'delete' button in a dir
view was broken in that it tried to put some of the arguments into
the url query, rather than as the form's post args. worse, nevow
was kind enough to escape the querystring making it invalid.
2007-07-12 16:46:54 -07:00
robk-org
908cc0e481
fix a typo in webapi.txt
2007-07-12 16:45:51 -07:00
robk-org
cacc9ac7b1
include the filename on URI-link urls for files
...
this is likely to induce browsers to do more useful things with the result
than they would when given neither content-type nor filename. (i.e. they
can guess that a .jpg file is an image, even with a bogus content type)
2007-07-11 15:26:47 -07:00
robk-org
8b2c5dcd15
added notes on pywin32 version support to README
2007-06-13 13:09:36 -07:00
Brian Warner
798b714bef
webish.DirnodeWalkerMixin: comment out the code that demonstrates what we
...
would do if we could just use generators, since we don't use it.
2007-07-12 23:28:09 -07:00
Brian Warner
032dfc5e58
misc/figleaf.excludes: exclude simplejson too, since we don't run their tests
2007-07-12 16:26:25 -07:00
Brian Warner
b0c65ed232
note that setting k=1 is equivalent to replication
2007-07-12 16:22:12 -07:00
Brian Warner
ba7e14a870
fix several methods to handle LIT URIs correctly, rather than assuming that all filenodes are CHK URIs
2007-07-12 16:17:49 -07:00