示例#1
0
 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 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 ''
示例#3
0
 def portletName(self):
     """Returns a sanitized name for the portlet for use in templates."""
     return cookString(self.Title())