making a new tiddlyweb bag, from the command line, with policy specified

12 Oct

> twanager bag foo
{“policy”: {“read”: [], “create”: [], “manage”: [“bob”], “write”: [],
“owner”: null, “delete”: [“admin”, “bob”]}}

(related)
> curl http://collab.tiddlywiki.org/wiki/bags/common.json
{“policy”: {“read”: [], “create”: [], “manage”: [], “accept”: [], “write”: [], “owner”: null, “delete”: [“R:ADMIN”]}, “desc”: “”}>

(related)
mahemoff__: > twanager bag flops
[19:55] mahemoff__: {“policy”: { “read”: [“meeee”] }}
[19:55] mahemoff__: this makes all the other constraints set to empty lists []
[19:55] mahemoff__: > more store/flops/policy
[19:55] mahemoff__: {“read”: [“meeee”], “create”: [], “manage”: [], “accept”: [], “write”: [], “owner”: null, “delete
[19:55] mahemoff__: “: []}
[19:56] mahemoff__: cdent can i assume that’s a feature not a coincidence…ie can i assume it will stay that way
[19:56] mahemoff__: when writing my scripts
[19:56] cdent: yes. It’s not a merge, it is a replace.
[19:56] mahemoff__: okay hadn’t thought about it that way
[19:57] FND: why do you ask, cdent
[19:57] mahemoff__: anyway it’s very useful. i’ll be taking advantage of it to make my build scripts extra-DRY

Advertisements

One Response to “making a new tiddlyweb bag, from the command line, with policy specified”

  1. Anonymous March 1, 2010 at 5:53 am #

    Very informative and trustworthy blog. Please keep updating with great posts like this one. I have booked marked your site and am about to email it to a few friends of mine that I know would enjoy reading.<a href="http://www.barbiehandbags.com/louis_vuitton_handbag.html&quot; title="louis vuitton handbag">louis vuitton handbag</a>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: