Diff
Differences From Artifact [3382badfa2]:
- File channels/__init__.py — part of check-in [07d2a291cd] at 2015-04-01 17:39:44 on branch trunk — Add conf.get_data() alias, which automatically fetches resource relative to config module (that is, works on the global path, or within pyzip archive). Move module_list() from channels. into config, as it combines plugins and config management anyway. (user: mario, size: 20932) [annotate] [blame] [check-ins using]
To Artifact [2254b1cf48]:
- File channels/__init__.py — part of check-in [a05da9d33d] at 2015-04-02 15:28:34 on branch trunk — Changed plugin config: options default registration to use full .meta[] now instead of just config[] list. Thus plugins can be enabled/disabled right away based on priority: field. (On first startup all channels will show up however.) (user: mario, size: 20922) [annotate] [blame] [check-ins using]
| ︙ | |||
113 114 115 116 117 118 119 | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | - + |
self.gtk_cat = None
self.module = self.__class__.__name__
self.meta = plugin_meta(src = inspect.getcomments(inspect.getmodule(self)))
self.config = self.meta.get("config", [])
self.title = self.meta.get("title", self.module)
# add default options values to config.conf.* dict
|
| ︙ |