Check-in [da8eb157fd]
Overview
| Comment: | adapt for renamed pluginconf properties |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
da8eb157fda03b0750ed4672227b13cb |
| User & Date: | mario on 2022-11-01 23:28:46 |
| Other Links: | manifest | tags |
Context
|
2022-12-28
| ||
| 21:25 | Add record_helper.sh from axelhahn check-in: 8df40a36ed user: mario tags: trunk | |
|
2022-11-01
| ||
| 23:28 | adapt for renamed pluginconf properties check-in: da8eb157fd user: mario tags: trunk | |
| 23:28 | pluginconf 0.8 check-in: 379c7b875f user: mario tags: trunk | |
Changes
Modified channels/pluginmanager2.py from [b1adf3eb9a] to [0249f93e2e].
| ︙ | ︙ | |||
130 131 132 133 134 135 136 |
# Clean up placeholders in vbox
_ = [self.vbox.remove(c) for c in self.vbox.get_children()[3:]]
# Attach available downloads after checking dependencies
# e.g. newpl["depends"] = "streamtuner2 < 2.2.0, config >= 2.5"
import pluginconf.depends
| | > > | | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# Clean up placeholders in vbox
_ = [self.vbox.remove(c) for c in self.vbox.get_children()[3:]]
# Attach available downloads after checking dependencies
# e.g. newpl["depends"] = "streamtuner2 < 2.2.0, config >= 2.5"
import pluginconf.depends
dep = pluginconf.depends.Check()
dep.system_deps = False
dep.api = ["python", "streamtuner2"]
#dep.log.debug = log.DEBUG_DEPENDS
for newpl in meta:
if dep.valid(newpl) and dep.depends(newpl):
self.add_plugin(newpl)
else:
log.DEBUG("plugin fails dependencies:", newpl)
# Readd some filler labels
_ = [self.add_(uikit.label("")) for i in range(1,3)]
|
| ︙ | ︙ |
Modified config.py from [6e00d5e847] to [1a733ccd87].
| ︙ | ︙ | |||
411 412 413 414 415 416 417 |
# populate global conf instance
conf = ConfigDict()
log.PROC("ConfigDict() initialized")
# tie in pluginconf.*
| | | | 411 412 413 414 415 416 417 418 419 420 421 |
# populate global conf instance
conf = ConfigDict()
log.PROC("ConfigDict() initialized")
# tie in pluginconf.*
#pluginconf.log.error = log.ERR (don't really have to override it, just leave it uncolored)
pluginconf.data_root = "config"
pluginconf.plugin_base = ["channels", "plugins"]#, conf.share+"/channels", conf.dir+"/plugins"]
|
Modified dev/lsplug.py from [3d16a9cbc5] to [0d5d54e42e].
1 2 3 4 5 6 7 | # encoding: UTF-8 # description: list available plugins for wiki import os, re from config import * from base64 import b64decode import pluginconf | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # encoding: UTF-8 # description: list available plugins for wiki import os, re from config import * from base64 import b64decode import pluginconf pluginconf.data_root = "config" pluginconf.plugin_base = ["channels", "contrib"]#, conf.share+"/channels", conf.dir+"/plugins"] txt_p = """ ### Channels | Title | Ver | Type | Category | Subdir | Priority | Feat. | Description | | ----- | --- | ---- | -------- | ------ | -------- | ----- | ----------- | |
| ︙ | ︙ |