Skip to content
Snippets Groups Projects
Commit 4c077e79 authored by Martin Lees's avatar Martin Lees Committed by Howo
Browse files

updated community flow.txt, fixes a bunch of comments / missing newlines

parent 53e9a054
No related branches found
No related tags found
1 merge request!531Community type 2 and 3 + update community type op
This commit is part of merge request !531. Comments created here will be created in the context of that merge request.
......@@ -105,7 +105,7 @@ def read_key_dict(obj, key):
return obj[key]
def read_key_integer(op, key):
"""Reads a key from dict, ensuring valid bool if present."""
"""Reads a key from dict, ensuring valid integer if present."""
if key in op:
assert isinstance(op[key], int), 'must be int: %s' % key
return op[key]
......@@ -234,7 +234,7 @@ class Community:
# TODO: check `nsfw` tag requirement #267
# TODO: (1.5) check that beneficiaries are valid
return role >= Role.guest # or at least not muted
return role >= Role.guest # At least not muted
class CommunityOp:
......
......@@ -369,6 +369,9 @@ account_create_operation( `ismember` )
account_create_operation( `notmembermuted` )
account_create_operation( `isoldmember` )
account_create_operation( `hive-199999` )
account_create_operation( `hive-111119` )
account_create_operation( `hive-211119` )
account_create_operation( `hive-311119` )
***block 5000012***
custom_json_operation("ismember" -> "[\"subscribe\", {\"community\": \"hive-199999\"}]")
custom_json_operation("isoldmember" -> "[\"subscribe\", {\"community\": \"hive-199999\"}]")
......@@ -379,4 +382,37 @@ custom_json_operation("[\"setRole\", {\"community\": \"hive-199999\", \"account\
custom_json_operation("[\"setRole\", {\"community\": \"hive-199999\", \"account\": \"notmembermuted\", \"role\": \"muted\"}]")
custom_json_operation("[\"setRole\", {\"community\": \"hive-199999\", \"account\": \"isoldmember\", \"role\": \"mod\"}]")
custom_json_operation("isoldmember" -> "[\"unsubscribe\", {\"community\": \"hive-199999\"}]")
custom_json_operation("[\"setRole\", {\"community\": \"hive-199999\", \"account\": \"isoldmember\", \"role\": \"member\"}]")
\ No newline at end of file
custom_json_operation("[\"setRole\", {\"community\": \"hive-199999\", \"account\": \"isoldmember\", \"role\": \"member\"}]")
custom_json_operation("ismember" -> "[\"subscribe\", {\"community\": \"hive-111119\"}]")
custom_json_operation("ismember" -> "[\"subscribe\", {\"community\": \"hive-211119\"}]")
custom_json_operation("ismember" -> "[\"subscribe\", {\"community\": \"hive-311119\"}]")
custom_json_operation("[\"setRole\", {\"community\": \"hive-111119\", \"account\": \"ismember\", \"role\": \"member\"}]")
custom_json_operation("[\"setRole\", {\"community\": \"hive-211119\", \"account\": \"ismember\", \"role\": \"member\"}]")
custom_json_operation("[\"setRole\", {\"community\": \"hive-311119\", \"account\": \"ismember\", \"role\": \"member\"}]")
comment_operation( `hive-111119`, `ismember`,`ismember-hive-111119`)
comment_operation( `hive-111119`, `notmember`,`notmember-hive-111119`)
comment_operation( `ismember-hive-111119`, `ismember`,`re-ismember-hive-111119`)
comment_operation( `re-ismember-hive-111119`, `ismember`,`re-re-ismember-hive-111119`)
comment_operation( `ismember-hive-111119`, `notmember`,`re-2-ismember-hive-111119`)
comment_operation( `hive-211119`, `ismember`,`ismember-hive-211119`)
comment_operation( `hive-211119`, `notmember`,`notmember-hive-211119`)
comment_operation( `ismember-hive-211119`, `ismember`,`re-ismember-hive-211119`)
comment_operation( `re-ismember-hive-211119`, `ismember`,`re-re-ismember-hive-211119`)
comment_operation( `ismember-hive-211119`, `notmember`,`re-2-ismember-hive-211119`)
comment_operation( `hive-211119`, `ismember`,`ismember-hive-211119`)
comment_operation( `hive-211119`, `notmember`,`notmember-hive-211119`)
comment_operation( `ismember-hive-211119`, `ismember`,`re-ismember-hive-211119`)
comment_operation( `re-ismember-hive-211119`, `ismember`,`re-re-ismember-hive-211119`)
comment_operation( `ismember-hive-211119`, `notmember`,`re-2-ismember-hive-211119`)
comment_operation( `hive-311119`, `ismember`,`ismember-hive-311119`)
comment_operation( `hive-311119`, `notmember`,`notmember-hive-311119`)
comment_operation( `ismember-hive-311119`, `ismember`,`re-ismember-hive-311119`)
comment_operation( `re-ismember-hive-311119`, `ismember`,`re-re-ismember-hive-311119`)
comment_operation( `ismember-hive-311119`, `notmember`,`re-2-ismember-hive-311119`)
custom_json_operation("[\"setRole\", {\"community\": \"hive-111119\", \"account\": \"ismember\", \"role\": \"mod\"}]")
custom_json_operation("[\"updateProps\",{\"community\":\"hive-111119\",\"props\":{\"type_id\": 3}}]")
comment_operation( `hive-111119`, `ismember`,`ismember-hive-111119-changed-type-3`)
comment_operation( `hive-111119`, `notmember`,`notmember-hive-111119-changed-type-3`)
comment_operation( `ismember-hive-111119-changed-type-3`, `ismember`,`re-ismember-hive-111119-changed-type-3`)
comment_operation( `re-ismember-hive-111119-changed-type-3`, `ismember`,`re-re-ismember-hive-111119-changed-type-3`)
comment_operation( `ismember-hive-111119-changed-type-3`, `notmember`,`re-2-ismember-hive-111119-changed-type-3`)
......@@ -8,4 +8,4 @@ custom_json_operation("[\"setLastRead\", {\"date\": null}]")
custom_json_operation("[\"setLastRead\"]")
custom_json_operation("[\"setLastRead\", {\"date\": \"2015-02-26T14:21:43\"}]")
custom_json_operation("[\"setLastRead\", {\"date\": \"1968-02-26T14:21:43\"}]")
custom_json_operation("[\"setLastRead\", {}]")
\ No newline at end of file
custom_json_operation("[\"setLastRead\", {}]")
......@@ -7,4 +7,4 @@ transfer_operation( `gtg`, `null`, `0.02 HBD`, `@alice/firstpost______20` )
***block 4020001***
transfer_operation( `gtg`, `null`, `0.02 HBD`, `@alice/firstpost______20` )
comment_operation( ``, `alice`,`firstpost______20`)
transfer_operation( `gtg`, `null`, `0.02 HBD`, `@alice/firstpost______20` )
\ No newline at end of file
transfer_operation( `gtg`, `null`, `0.02 HBD`, `@alice/firstpost______20` )
......@@ -28,4 +28,4 @@
],
"title": "@hive-111119",
"type_id": 3
}
\ No newline at end of file
}
......@@ -23,4 +23,4 @@
],
"title": "@hive-211119",
"type_id": 2
}
\ No newline at end of file
}
......@@ -23,4 +23,4 @@
],
"title": "@hive-311119",
"type_id": 3
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment