Open sshine opened 7 years ago
Actually, these tools should probably be polished and re-incorporated into the staffeli
tool.
Why not, @oleks and @nqpz?
See comments for previous commit. create-groups.py
should work again for this tutorial. I'll improve further on it in my attempt to make it a part of the staffeli
tool, which is currently my third-priority.
[x] The documentation for contrib/groups/create-groups.py isn't accurate wrt. number of arguments.
[x] check-groups.py should assert that the group.txts it finds are actually plaintext files and not RTF documents or pictures of kittens.
[ ] create-groups.py fails when two individuals both upload a group.txt that put them in the same group:
Either the documentation should be clear about what to when check-groups.py fails in various ways, or the script should handle the situation gracefully, e.g. by detecting that groups (abc123 def456) and (def456 abc123) are the same and only create one group for them.
[ ] It would be neat if the script had a "dry run" parameter that doesn't create groups but fetches the ones that are created and performs the filesystem operations with them. Currently this isn't possible because
canvas.create_group()
(used here) both creates a group on Canvas and returns the group's properties. If there were acanvas.get_groups()
, that'd be neat.