Commit b3bc87c6 authored by Karel Koci's avatar Karel Koci 🤘

userlists: drop some stupid api liberty that was causing problem in Foris

parent 04730b4a
......@@ -6,13 +6,7 @@ and for that there should be following fields:
* __title__: This is suppose to be a title for given user list.
* __description__: This is long text describing content of given user list.
* __visible__: This should be set to `yes` or `no` to say if given user list
should be visible or not. If set to `no` then __title__ and __description__ are
not required.
### Verification
Part of this is also verification script. It just reads `definitions.json` and
checks if it has correct format. Just run `` in same directory as
`definitions.json` is.
should be visible or not.
### Translations
To generate translations you can use `` script. It expect you to run it
#!/usr/bin/env python
import json, os, sys
def main():
with open(os.path.abspath(os.path.dirname(sys.argv[0])) + '/definitions.json', 'r') as file:
content = json.load(file)
for name, list in content.items():
if list['visible']:
assert 'title' in list
assert 'description' in list
assert not list['visible']
if __name__ == '__main__':
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment