Пример #1
0
 def __init__(self, id):
     Content.__init__(self, id)
     Query.__init__(self)
     self.shownFields = PersistentMapping()
     self.shownResultsFields = PersistentMapping()
     # by default we only show fulltext search
     # and a couple of resultfields
     self.shownFields['fulltext'] = True
     self.shownResultsFields['link'] = True
     self.shownResultsFields['ranking'] = True
     self.shownResultsFields['resultcount'] = True
     self.shownResultsFields['icon'] = True
     self.shownResultsFields['date'] = True
     self.shownResultsFields['textsnippet'] = True
     self.shownResultsFields['thumbnail'] = True
     self.shownResultsFields['breadcrumbs'] = True
Пример #2
0
 def __init__(self, id):
     Content.__init__(self, id)
     Query.__init__(self)
     self.shownFields = PersistentMapping()
     self.shownResultsFields = PersistentMapping()
     # by default we only show fulltext search
     # and a couple of resultfields
     self.shownFields['fulltext'] = True
     self.shownResultsFields['link'] = True
     self.shownResultsFields['ranking'] = True
     self.shownResultsFields['resultcount'] = True
     self.shownResultsFields['icon'] = True
     self.shownResultsFields['date'] = True
     self.shownResultsFields['textsnippet'] = True
     self.shownResultsFields['thumbnail'] = True
     self.shownResultsFields['breadcrumbs'] = True
Пример #3
0
 def __init__(self, *args, **kwargs):
     Content.__init__(self, *args, **kwargs)
     self.__target_id = None