def __call__(self, context):
     self.hlite = getHliteTool()
     terms = []
     for group in self.hlite.getGroupsFor(context):
         terms.append(SimpleVocabulary.createTerm(group, group.id,
                                                  group.title))
     return SimpleVocabulary(terms)
 def __init__(self, *args, **kwargs):
     super(uwAddGroupForm, self).__init__(*args, **kwargs)
     self.hlite = getHliteTool()
 def __init__(self, *args):
     form.EditForm.__init__(self, *args)
     self.hlite = getHliteTool()
     self.highlights = IHighlightDataStorage(self.context)
     self.group_obj = None
 def hlite_tool(self):
     print __file__, self.__class__.__name__, 'hlite_tool'
     return getHliteTool()
def getDefaultGroup(context):
    hlite = getHliteTool()
    return hlite.getGroupsFor(context)[0]