1 from Components.Converter.Converter import Converter
3 class EventName(Converter, object):
6 EXTENDED_DESCRIPTION = 2
8 def __init__(self, type):
9 Converter.__init__(self, type)
10 if type == "Description":
11 self.type = self.SHORT_DESCRIPTION
12 elif type == "ExtendedDescription":
13 self.type = self.EXTENDED_DESCRIPTION
18 if self.cache is None:
19 self.cache = self.__getText()
23 event = self.source.event
27 if self.type == self.NAME:
28 return event.getEventName()
29 elif self.type == self.SHORT_DESCRIPTION:
30 return event.getShortDescription()
31 elif self.type == self.EXTENDED_DESCRIPTION:
32 return event.getExtendedDescription()
34 text = property(getText)