git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set voltage before send diseqc command (like DiSEqC spec)
[enigma2.git]
/
lib
/
python
/
Components
/
Converter
/
ClockToText.py
diff --git
a/lib/python/Components/Converter/ClockToText.py
b/lib/python/Components/Converter/ClockToText.py
index 3abfffc507c093412549fc14583b2ebce84aa594..5cc709f223a041db5c02839fe2c5c4253dd2eeb6 100644
(file)
--- a/
lib/python/Components/Converter/ClockToText.py
+++ b/
lib/python/Components/Converter/ClockToText.py
@@
-1,5
+1,6
@@
from Converter import Converter
from time import localtime, strftime
from Converter import Converter
from time import localtime, strftime
+from Components.Element import cached
class ClockToText(Converter, object):
DEFAULT = 0
class ClockToText(Converter, object):
DEFAULT = 0
@@
-10,8
+11,8
@@
class ClockToText(Converter, object):
# add: date, date as string, weekday, ...
# (whatever you need!)
# add: date, date as string, weekday, ...
# (whatever you need!)
- def __init__(self, type
, *args, **kwargs
):
- Converter.__init__(self)
+ def __init__(self, type):
+ Converter.__init__(self
, type
)
if type == "WithSeconds":
self.type = self.WITH_SECONDS
elif type == "InMinutes":
if type == "WithSeconds":
self.type = self.WITH_SECONDS
elif type == "InMinutes":
@@
-21,6
+22,7
@@
class ClockToText(Converter, object):
else:
self.type = self.DEFAULT
else:
self.type = self.DEFAULT
+ @cached
def getText(self):
time = self.source.time
if time is None:
def getText(self):
time = self.source.time
if time is None: