[cap-talk] announcing tiddly_on_tahoe v1.0
David-Sarah Hopwood
david.hopwood at industrial-designers.co.uk
Tue Dec 16 19:01:03 EST 2008
Zooko O'Whielacronx wrote:
> P.S. A bit of JavaScript to produce the access control explanation text:
>
> if (document.location.toString().match(new RegExp(HTTPLEAD +
> TAHOE_IMMUTABLE_CAP_RE_STR))) {
> wikify("This is an immutable view of this page. Using this URL will
> always show this version of this page, even if a newer version has been
> uploaded.", place);
> } else if (document.location.toString().match(new RegExp(HTTPLEAD +
> TAHOE_NONWRITABLE_THING_CAP_RE_STR))) {
> wikify("This is a read-only view of this page. If you share this URL with
> someone, they will be able to see the most recent version of this page, but
> not to change the page.", place);
> } else if (document.location.toString().match(new RegExp(HTTPLEAD +
> TAHOE_WRITABLE_THING_CAP_RE_STR))) {
> getReadonlyURLToThisPage(function (readonlyCap) {
> wikify("This is a writable view of this page. If you share this URL
> with someone, they will be able to change this page. Click here for a
> [[read-only view of this page|" + readonlyCap + "]].", place);
> });
> } else {
> wikify("You are not accessing this page through the Tahoe-LAFS secure,
> distributed filesystem.", place);
> }
Doesn't there need to be a user interface for getting an immutable view
from a read-only or writable one?
--
David-Sarah Hopwood
More information about the cap-talk
mailing list