diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-10-02 23:55:37 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-10-02 23:55:37 +0000 |
| commit | 6eeefece35e4269e02fdb7abab4f79d8e7b8f98b (patch) | |
| tree | 70f4afcee82f3097e9e52a987ede8914a542b098 /lib/python/Components/RecordingConfig.py | |
| parent | cedcadfd77539c39e928a6d5cc4fcd8d1cf48ac8 (diff) | |
| download | enigma2-6eeefece35e4269e02fdb7abab4f79d8e7b8f98b.tar.gz enigma2-6eeefece35e4269e02fdb7abab4f79d8e7b8f98b.zip | |
config rewrite. some extensions still need to be updated.
Diffstat (limited to 'lib/python/Components/RecordingConfig.py')
| -rw-r--r-- | lib/python/Components/RecordingConfig.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/python/Components/RecordingConfig.py b/lib/python/Components/RecordingConfig.py index ea037a61..03719860 100644 --- a/lib/python/Components/RecordingConfig.py +++ b/lib/python/Components/RecordingConfig.py @@ -1,10 +1,9 @@ -from config import * +from config import ConfigInteger, ConfigYesNo, ConfigSubsection, config import os -from enigma import * def InitRecordingConfig(): config.recording = ConfigSubsection(); # actually this is "recordings always have priority". "Yes" does mean: don't ask. The RecordTimer will ask when value is 0. - config.recording.asktozap = configElement("config.recording.asktozap", configSelection, 1, (("no", _("no")), ("yes", _("yes"))) ) - config.recording.margin_before = configElement("config.recording.margin_before", configSequence, [0], configsequencearg.get("INTEGER", (0, 30))) - config.recording.margin_after = configElement("config.recording.margin_after", configSequence, [0], configsequencearg.get("INTEGER", (0, 30))) + config.recording.asktozap = ConfigYesNo(default=True) + config.recording.margin_before = ConfigInteger(default=0, limits=(0,30)) + config.recording.margin_after = ConfigInteger(default=0, limits=(0,30)) |
