def type(self): type = self._getEvent().eventType # This is a list of unicode strings, typically. # We want just one string, so we take the first one. if type: return cmfutils.cookString(type[0]) return ''
def portletName(self): """Returns a sanitized name for the portlet for use in templates.""" return cookString(self.Title())