Zooko O'Whielacronx
ef46e16aa9
test: refactor webist.POSTHandler() to have a method for each "?t=" command
...
Input validation and decoding is still done in the body of POSTHandler.renderHTTP().
2008-02-29 13:11:18 -07:00
Brian Warner
301dd3d489
webish status: distinguish active uploads/downloads from recent ones
2008-02-26 15:35:28 -07:00
Brian Warner
2f6fd7d000
webish.py: remove some dead code
2008-02-15 04:02:38 -07:00
Brian Warner
7927495cbe
unicode handling: declare dirnodes to contain unicode child names, update webish to match
2008-02-14 15:45:56 -07:00
Zooko O'Whielacronx
7c6de95bc6
switch from base62 to base32 for storage indices, switch from z-base-32 to rfc 3548 base-32 for everything, separate out base32 encoding from idlib
2008-02-14 19:27:47 -07:00
Brian Warner
124b2160b9
webish.py: fix for #237 : when listing large directories, insert a turn break once every 100 children, to work around non-optimized tail recursion Deferreds
2008-02-12 21:28:52 -07:00
Brian Warner
55d30790bc
webish: flogify the remaining log messages
2008-02-12 19:32:33 -07:00
Brian Warner
94348b7182
webish: censor all caps before logging the HTTP request, to preserve user privacy
2008-02-12 19:31:23 -07:00
Brian Warner
b17b7695a4
webish: add /status page to display current uploads/downloads
2008-02-12 15:40:05 -07:00
Brian Warner
a70fba4ef1
webish: add edge metadata to t=json output, including timestamps
2008-02-11 19:14:10 -07:00
Brian Warner
3d72d00826
webish: display timestamps
2008-02-11 15:13:18 -07:00
Brian Warner
590b020a44
webish: more upload stats: total encode-and-push rate, already-in-grid existence check time
2008-02-06 02:39:01 -07:00
Brian Warner
6e0d3059a3
webish: add when_done= to POST /uri?t=upload . I did not add a 'recent uploads' section to the welcome page, but I think the new upload-results page provides the desired data
2008-02-06 02:38:16 -07:00
Brian Warner
652d50d7e0
UploadResults: add more helper timing stats (ciphertext fetch times)
2008-02-06 02:12:35 -07:00
Brian Warner
124fb5ecdf
add upload-results timing info for helper uploads. This changes the Helper protocol, and introduces a compatibility break
2008-02-06 01:52:25 -07:00
Brian Warner
93d45abb02
add upload timings and rates to the POST /uri?t=upload results page
2008-02-06 00:41:51 -07:00
Brian Warner
1e4504463c
webish: make POST /uri?t=upload deposit you on an 'Upload Results' page
2008-02-05 23:01:37 -07:00
Brian Warner
604d6d54ef
webish.py: refactor /uri handlers, one rend.Page class per operation
2008-02-05 22:38:20 -07:00
Brian Warner
23c2c8d660
webish: add PUT /uri?mutable=true
2008-02-05 22:18:02 -07:00
Brian Warner
e5dc9a8486
webish: add POST /uri?t=upload&mutable=true
2008-02-05 22:10:22 -07:00
Brian Warner
6afe50e2aa
webish: add upload/view-uri forms (not associated with any particular directory) to the welcome page. Document POST /uri?t=upload .
2008-02-05 21:44:40 -07:00
Brian Warner
66f33ee504
upload: return an UploadResults instance (with .uri) instead of just a URI
2008-02-05 21:01:38 -07:00
Brian Warner
2f09b03bcc
webish: add storage-consumed estimate on welcome page
2008-02-05 20:29:39 -07:00
Brian Warner
4b4eba867b
webish: display tahoe import path on the welcome page, to help figure out where the code is coming from
2008-02-05 20:08:49 -07:00
Brian Warner
eb9023ab0e
webish: condense display of nickname a little bit
2008-02-05 18:29:28 -07:00
Brian Warner
96e6c78c7a
webish: show nickname too
2008-02-05 18:26:05 -07:00
Brian Warner
d146ef7e09
webish: add extra introducer data (version, timestamps) to Welcome page
2008-02-05 17:32:27 -07:00
Brian Warner
583cc34d2f
webish: remove 'URI-link' from directory page, now that we only use URI-links
2008-01-29 18:11:09 -07:00
Brian Warner
d9d0920177
webish: link to directory URIs rather than a child path. Addresses #103 .
2008-01-29 18:04:32 -07:00
Brian Warner
4c5518faef
webish: upload+localdir=missing should give an error
2008-01-28 14:48:06 -07:00
Brian Warner
3b41c939f8
webish: oops, unit tests don't have an Uploader, don't rely upon it for helper-status display
2008-01-28 14:03:29 -07:00
Brian Warner
8485ff53fc
display the Helper FURL and our connection status on the welcome page. Closes #285 .
2008-01-28 13:56:22 -07:00
robk-tahoe
6ef4606534
tweak webish to use resource_filename to find css and html files
...
using sibpath to find web template files relative to source code is functional
when running from source environments, but not especially flexible when running
from bundled built environments. the more 'orthodox' mechanism, pkg_resources,
in theory at least, knows how to find resource files in various environments.
this makes the 'web' directory in allmydata into an actual allmydata.web module
(since pkg_resources looks for files relative to a named module, and that module
must be importable) and uses pkg_resources.resource_filename to find the files
therein.
2008-01-22 17:44:58 -07:00
robk-tahoe
9ed5533760
added tweaked sibpath implementation
...
use of twisted.python.util.sibpath to find files relative to modules doesn't
work when those modules are bundled into a library by py2exe. this provides
an alternative implementation (in allmydata.util.sibpath) which checks for
the existence of the file, and if it is not found, attempts to find it relative
to sys.executable instead.
2008-01-10 15:23:41 -07:00
robk-tahoe
3a7c688270
fix webish unit tests by making node.url file optional
2008-01-08 12:36:14 -07:00
robk-tahoe
08c3ee73a2
reinstate creation of node.url files upon startup
...
a recent purge of the start.html code also took away the logic that wrote
'node.url' into the node root. this is required for the tahoe cli tool to
find the node. this puts back a limited fraction of that code, so that the
node writes out a node.url file upon startup.
2008-01-07 18:04:56 -07:00
Zooko O'Whielacronx
5995d11a3c
remove automatic private dir
...
* rename my_private_dir.cap to root_dir.cap
* move it into the private subdir
* change the cmdline argument "--root-uri=[private]" to "--dir-uri=[root]"
2008-01-03 17:02:05 -07:00
Brian Warner
6b81ebfd8e
refactor webish.py slightly, improve the test coverage a bit. One test is marked SKIP pending improvements in webish.py
2007-12-25 03:48:57 -07:00
Brian Warner
0e804da8d9
webish: use get_args() everywhere, put .fields=None in MyRequest
2007-12-25 00:07:04 -07:00
Brian Warner
4ba1af37a6
test_web: more coverage of URIPOSTHandler error cases
2007-12-24 22:49:35 -07:00
Brian Warner
47761bde93
webish: factor out queryargs-or-formargs extraction, make /uri?t=mkdir work and redirect to a valid url
2007-12-24 17:26:52 -07:00
Zooko O'Whielacronx
a85a4d71f7
webish: add button to make directories and unit test of it
...
Unfortunately although it passes the unit tests, it doesn't work, because the unit tests and the implementation use the "encode params into URL" technique but the button uses the "encode params into request body" technique.
2007-12-20 15:31:12 -07:00
Zooko O'Whielacronx
a4bc623fa5
make the wapi/wui [*] support creation of a new directory without there already being an existing directory to link the new one into
...
[*] WebAPI/WebUI
2007-12-20 12:58:17 -07:00
Brian Warner
50bc0d2fb3
the new pyflakes is stricter, complaining about function definitions that overshadow earlier definitions or imports. Fix some of its complaints.
2007-12-18 18:47:28 -07:00
Zooko O'Whielacronx
36e8e4e561
do not put a link from the welcoXme page to the start.html if there is not a private directory
2007-12-17 18:35:59 -07:00
Zooko O'Whielacronx
8c65bdcf9d
put all private state in $BASEDIR/private
...
fixes #219
The only part of #219 that this doesn't include is the part about
logpublisher, which has been moved out of tahoe into foolscap.
2007-12-17 16:39:54 -07:00
Zooko O'Whielacronx
d3f23d4052
we no longer need to replace "/" with "!" in urls
2007-12-14 18:25:50 -07:00
Zooko O'Whielacronx
ae90016845
fix the overwrite button and add unit test for it
2007-12-14 17:52:05 -07:00
Zooko O'Whielacronx
caa69b007e
refactor the feature of getting versions of packages, include the version numbers of more of the packages that we use
2007-12-12 19:37:37 -07:00
Brian Warner
74820cc3de
webish: append save=true to a GET URL to save-to-disk. Closes #222 .
2007-12-11 18:04:44 -07:00