Skip to content
Snippets Groups Projects

Expand lists

Merged Karel Koci requested to merge expand-lists into master
All threads resolved!
Compare and Show latest version
1 file
+ 4
4
Preferences
Compare changes
+ 4
4
@@ -40,7 +40,7 @@ def pkglists(lang=None):
another dictionary with following content:
"enabled": This is boolean value containing info if pkglist is enabled.
"hidden": This is boolean value specifying if pkglist is visible.
"supported": This is boolean value specifying if pkglist is supported.
"official": This is boolean value specifying if pkglist is supported.
"title": This is title text describing pkglist (human readable name).
"message": This is human readable description of given pkglist.
"url": Optional URL to documentation. This can be None if not provided.
@@ -60,9 +60,9 @@ def pkglists(lang=None):
"enabled": False,
"title": trans.gettext(lst['title']),
"message": trans.gettext(lst['description']),
"hidden": not lst['visible'] if "visible" in lst else False,
"supported": lst['supported'] if 'supported' in lst else False,
"url": lst['url'] if 'url' in lst else None
"hidden": not lst.get('visible', True),
"official": lst.get('official', False),
"url": lst.get('url'),
}
with Uci() as uci: