1 from Components.Converter.Converter import Converter
2 from Components.Element import cached
4 class MenuEntryCompare(Converter, object):
5 def __init__(self, type):
6 Converter.__init__(self, type)
10 self.downstream_elements.changed((self.CHANGED_ALL, 0))
15 cur = self.source.current
16 if cur and len(cur) > 2:
18 return EntryID and id and id == EntryID
21 boolean = property(getBool)
23 def changed(self, what):
24 if what[0] == self.CHANGED_DEFAULT:
25 self.source.onSelectionChanged.append(self.selChanged)
26 Converter.changed(self, what)