Commit Graph

62 Commits

Author SHA1 Message Date
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
Brian Warner
ea3c3e6780 import simplejson directly, and remove our local copies of the component .py files from util/json* 2007-07-10 15:49:32 -07:00
Brian Warner
13e84526a1 webapi: normalized API: use t=upload or t=download when providing localdir= or localfile= 2007-07-10 13:24:10 -07:00
Brian Warner
5264559561 webish: cosmetic: fix missing whitespace in HTML 2007-07-10 10:33:19 -07:00
Brian Warner
0395ad76eb web: indent the JSON to make it easier for humans to read, but slightly larger 2007-07-08 00:23:23 -07:00
Brian Warner
72fc8c5cb8 web: use real JSON instead of the fake stubs
Also include the encoder portion of Bob Ippolito's simplejson-1.7.1 as
allmydata.util.json_encoder . simplejson is distributed under a more liberal
license than Tahoe (looks to be modified BSD), so redistributing it should be ok.
2007-07-08 00:17:11 -07:00
Brian Warner
bd8625076a web: remove t=XML, and other dead code 2007-07-07 22:55:15 -07:00
Brian Warner
159f8bfd50 web: improve test coverage 2007-07-07 22:47:18 -07:00
Brian Warner
135f08a518 web: remove more dead code 2007-07-07 22:20:03 -07:00
Brian Warner
8952114442 webish.py: remove dead code 2007-07-07 22:12:46 -07:00
Brian Warner
62e8528cc6 web: /uri/ must escape slashes, we use bangs for this 2007-07-07 22:06:52 -07:00
Brian Warner
fb40b55bc3 web: replace welcome-page download-URI form with new version 2007-07-07 22:06:22 -07:00
Brian Warner
5b0c9df14c web: survive bogus URIs when displaying sizes 2007-07-07 21:31:18 -07:00
Brian Warner
fe3c002842 web: show the root name of the vdrive 2007-07-07 21:31:02 -07:00
Brian Warner
e5482b5254 web: add a 'return to welcome page' link 2007-07-07 21:30:04 -07:00
Brian Warner
2adb773210 web: add when_done to all POST operations, use it from upload/mkdir/mount/delete forms 2007-07-07 21:17:48 -07:00
Brian Warner
0cb154f402 web: make 'delete' buttons work again 2007-07-07 20:46:30 -07:00
Brian Warner
b3f0293d50 web: change per-directory forms to match new POST scheme 2007-07-07 20:35:47 -07:00
Brian Warner
617a85df67 web: remove debug prints 2007-07-07 20:11:30 -07:00
Brian Warner
464f25e5f2 web: more test work, now all tests pass, POST too, only XMLRPC left to implement 2007-07-07 20:06:58 -07:00
Brian Warner
7d92b8a123 webish.py: add links to JSON/etc representations of directory contents to the listing 2007-07-07 11:31:07 -07:00
Brian Warner
10a5ff3767 webish: fix ?t=manifest, ?t=xml so they don't throw exceptions, prune directory.xhtml 2007-07-07 11:15:31 -07:00
Brian Warner
0cd730a7b3 web: more test work, now all tests either pass or are skipped (POST, XMLRPC, and URI/) 2007-07-07 10:34:05 -07:00
Brian Warner
d501984eba webapi: checkpointing more test progress 2007-07-07 00:16:36 -07:00
Brian Warner
6570253d6b checkpointing new webapi: not all tests pass yet 2007-07-06 19:43:55 -07:00
Brian Warner
c4a8db3eb2 webish: provide a valid Content-Length header on downloads 2007-07-03 15:09:00 -07:00
Brian Warner
622acc690a webish: improve reporting of web download errors that occur early enough
If the error occurs before any data has been sent, we can give a sensible
error message (code 500, stack trace, etc). This will cover most of the error
cases. The ones that aren't covered are when we run out of good peers after
successfully decoding the first segment, either because they go away or
because their shares are corrupt.
2007-07-03 13:47:37 -07:00
Brian Warner
f15bb302a1 webish.py: handle errors during download better. Addresses #65.
Previously, exceptions during a web download caused a hang rather than some
kind of exception or error message. This patch improves the situation by
terminating the HTTP download rather than letting it hang forever. The
behavior still isn't ideal, however, because the error can occur too late to
abort the HTTP request cleanly (i.e. with an error code). In fact, the
Content-Type header and response code have already been set by the time any
download errors have been detected, so the browser is committed to displaying
an image or whatever (thus any error message we put into the stream is
unlikely to be displayed in a meaningful way).
2007-07-03 13:18:14 -07:00
Brian Warner
6427b44b42 webish: make each link in the directory name an href to that directory 2007-06-29 11:17:18 -07:00
Brian Warner
9ecde0d23e webish: fix link to private_vdrive 2007-06-28 19:07:52 -07:00
Brian Warner
b06c74c2a1 Add the 'vdrive' service, for clients to access the public/private root dirs.
These allow client-side code to conveniently retrieve the IDirectoryNode
instances for both the global shared public root directory, and the per-user
private root directory.
2007-06-27 17:11:06 -07:00
Brian Warner
1d86cd161b webish.py: add a web page to display the manifest for any particular directory 2007-06-26 19:55:21 -07:00
Brian Warner
b11fa20191 merge vdrive.py and filetable.py into a single dirnode.py 2007-06-26 17:16:58 -07:00
Brian Warner
b6162681d5 webish: mark read-only directories as such when listing their parent 2007-06-26 12:37:00 -07:00
Brian Warner
fb02488a8e vdrive: switch to URI:DIR and URI:DIR-RO, providing transitive readonlyness 2007-06-25 13:23:51 -07:00
Brian Warner
107207e09d webish: log dirname in mkdir 2007-06-15 02:48:19 -07:00
Brian Warner
a00bde050b webish: when mounting a shared directory, don't automatically move to it 2007-06-15 02:34:24 -07:00
Brian Warner
2066e8ddfc webish: add option to export/import shared directories (always read-write) 2007-06-15 02:31:23 -07:00
Brian Warner
20dcda4ca7 create a personal (non-shared) vdrive, in addition to the global shared one 2007-06-15 01:33:24 -07:00
Brian Warner
51809ce341 webish: enable deletion of directories 2007-06-15 01:32:57 -07:00
Brian Warner
1eba30cd14 webish.py: put the URI in a narrower auto-scrolling box (with CSS) 2007-06-15 01:32:20 -07:00
Brian Warner
82c38d370a make new vdrive work, implement convenience wrapper, passes all tests 2007-06-15 00:37:32 -07:00
Brian Warner
ec77a227be revamp vdrive: nodes with furls. tests still fail. 2007-06-14 20:14:34 -07:00
Brian Warner
48a8c32ed7 webish: display program/library versions on the welcome page 2007-06-11 10:51:11 -07:00
Brian Warner
363ed1264a webish: show vdrive and introducer connectedness separately
Also don't offer a link to the vdrive webpages if we don't have a vdrive.furl
2007-06-09 21:03:57 -07:00
Zooko O'Whielacronx
04b649f971 switch from FieldStorage.value to FieldStorage.file
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!
2007-05-25 16:00:19 -07:00
Zooko O'Whielacronx
3872e94da2 rename all "*PBURL*" to "*FURL*"
This breaks backwards compatibility with Tahoe v0.2 -- the first public release of Tahoe.
2007-05-22 14:08:30 -07:00
Brian Warner
05163ec8e1 change uri-packer-unpacker to deal with dictionaries, not fragile tuples 2007-05-23 11:18:49 -07:00
Zooko O'Whielacronx
9b70d17d4b enable private upload, in which the file is inserted at the grid layer but not at the vdrive layer
This patch is actually by Faried Nawaz, as per ticket #33:

http://allmydata.org/trac/tahoe/ticket/33
2007-05-16 08:40:19 -07:00
Faried Nawaz
2016b846b9 display file size in directory.xhtml 2007-05-04 13:07:32 -07:00