Exemplo n.º 1
0
    def setUp(self):
        from Products.PluginIndexes.TopicIndex.FilteredSet \
                import PythonFilteredSet

        NodeAdapterTestCase.setUp(self)
        self._obj = PythonFilteredSet('bar', '')
        self._XML = _SET_XML
Exemplo n.º 2
0
    def setUp(self):
        from Products.PluginIndexes.KeywordIndex.KeywordIndex \
                import KeywordIndex

        NodeAdapterTestCase.setUp(self)
        self._obj = KeywordIndex('foo_keyword')
        self._XML = _KEYWORD_XML
Exemplo n.º 3
0
    def setUp(self):
        from Products.PluginIndexes.DateRangeIndex.DateRangeIndex \
                import DateRangeIndex

        NodeAdapterTestCase.setUp(self)
        self._obj = DateRangeIndex('foo_daterange')
        self._XML = _DATERANGE_XML
Exemplo n.º 4
0
    def setUp(self):
        from Products.CMFCore.DirectoryView import DirectoryView

        NodeAdapterTestCase.setUp(self)
        _DVRegistrySetup.setUp(self)
        self._obj = DirectoryView('foo_directoryview').__of__(Folder())
        self._XML = _DIRECTORYVIEW_XML
Exemplo n.º 5
0
    def setUp(self):
        from Products.CMFCore.DirectoryView import DirectoryView

        NodeAdapterTestCase.setUp(self)
        _DVRegistrySetup.setUp(self)
        self._obj = DirectoryView('foo_directoryview').__of__(Folder())
        self._XML = _DIRECTORYVIEW_XML
Exemplo n.º 6
0
    def setUp(self):
        import Products.CMFCore
        from Products.CMFCore.ActionInformation import Action

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.CMFCore)

        self._obj = Action('foo_action')
        self._XML = _ACTION_XML
Exemplo n.º 7
0
    def setUp(self):
        import Products.CMFCore
        from Products.CMFCore.ActionInformation import ActionCategory

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.CMFCore)

        self._obj = ActionCategory('foo_category')
        self._XML = _ACTIONCATEGORY_XML
Exemplo n.º 8
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.DateIndex.DateIndex import DateIndex

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.GenericSetup.PluginIndexes)

        self._obj = DateIndex('foo_date')
        self._XML = _DATE_XML
Exemplo n.º 9
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.TopicIndex.TopicIndex import TopicIndex

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.GenericSetup.PluginIndexes)

        self._obj = TopicIndex('foo_topic')
        self._XML = _TOPIC_XML
Exemplo n.º 10
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.TextIndex.Vocabulary import Vocabulary

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.GenericSetup.PluginIndexes)

        self._obj = Vocabulary('foo_vocabulary')
        self._XML = _VOCABULARY_XML
Exemplo n.º 11
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.PathIndex.PathIndex import PathIndex

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.GenericSetup.PluginIndexes)

        self._obj = PathIndex('foo_path')
        self._XML = _PATH_XML
Exemplo n.º 12
0
    def setUp(self):
        import Products.CMFCore.exportimport
        from Products.CMFCore.CachingPolicyManager import CachingPolicy

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.CMFCore.exportimport)

        self._obj = CachingPolicy('foo_policy', max_age_secs=0)
        self._XML = _CP_XML
Exemplo n.º 13
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.FieldIndex.FieldIndex import FieldIndex

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.GenericSetup.PluginIndexes)

        self._obj = FieldIndex('foo_field')
        self._XML = _FIELD_XML
Exemplo n.º 14
0
    def setUp(self):
        import Products.CMFCore.exportimport
        from Products.CMFCore.CachingPolicyManager import CachingPolicy

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.CMFCore.exportimport)

        self._obj = CachingPolicy('foo_policy', max_age_secs=0)
        self._XML = _CP_XML
Exemplo n.º 15
0
    def setUp(self):
        import Products.GenericSetup.ZCTextIndex
        from Products.ZCTextIndex.ZCTextIndex import PLexicon

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.GenericSetup.ZCTextIndex)

        self._obj = PLexicon('foo_plexicon')
        self._XML = _PLEXICON_XML
Exemplo n.º 16
0
    def setUp(self):
        import Products.CMFCore
        from Products.CMFCore.ActionInformation import ActionCategory

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.CMFCore)

        self._obj = ActionCategory('foo_category')
        self._XML = _ACTIONCATEGORY_XML
Exemplo n.º 17
0
    def setUp(self):
        import Products.CMFCore
        from Products.CMFCore.ActionInformation import Action

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.CMFCore)

        self._obj = Action('foo_action')
        self._XML = _ACTION_XML
Exemplo n.º 18
0
    def setUp(self):
        import Products.GenericSetup.ZCTextIndex
        from Products.ZCTextIndex.ZCTextIndex import PLexicon

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.GenericSetup.ZCTextIndex)

        self._obj = PLexicon('foo_plexicon')
        self._XML = _PLEXICON_XML
Exemplo n.º 19
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.PathIndex.PathIndex import PathIndex

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml',
                         Products.GenericSetup.PluginIndexes)

        self._obj = PathIndex('foo_path')
        self._XML = _PATH_XML
Exemplo n.º 20
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.FieldIndex.FieldIndex import FieldIndex

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml',
                         Products.GenericSetup.PluginIndexes)

        self._obj = FieldIndex('foo_field')
        self._XML = _FIELD_XML
Exemplo n.º 21
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.TopicIndex.FilteredSet \
                import PythonFilteredSet

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.GenericSetup.PluginIndexes)

        self._obj = PythonFilteredSet('bar', '')
        self._XML = _SET_XML
Exemplo n.º 22
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.KeywordIndex.KeywordIndex \
                import KeywordIndex

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.GenericSetup.PluginIndexes)

        self._obj = KeywordIndex('foo_keyword')
        self._XML = _KEYWORD_XML
Exemplo n.º 23
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.TextIndex.Vocabulary import Vocabulary

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml',
                         Products.GenericSetup.PluginIndexes)

        self._obj = Vocabulary('foo_vocabulary')
        self._XML = _VOCABULARY_XML
Exemplo n.º 24
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.TopicIndex.TopicIndex import TopicIndex

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml',
                         Products.GenericSetup.PluginIndexes)

        self._obj = TopicIndex('foo_topic')
        self._XML = _TOPIC_XML
Exemplo n.º 25
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.DateIndex.DateIndex import DateIndex

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml',
                         Products.GenericSetup.PluginIndexes)

        self._obj = DateIndex('foo_date')
        self._XML = _DATE_XML
Exemplo n.º 26
0
    def setUp(self):
        import Products.CMFCore.exportimport
        from Products.CMFCore.DirectoryView import DirectoryView

        NodeAdapterTestCase.setUp(self)
        _DVRegistrySetup.setUp(self)
        zcml.load_config('configure.zcml', Products.CMFCore.exportimport)

        self._obj = DirectoryView('foo_directoryview').__of__(Folder())
        self._XML = _DIRECTORYVIEW_XML
Exemplo n.º 27
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.KeywordIndex.KeywordIndex \
                import KeywordIndex

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml',
                         Products.GenericSetup.PluginIndexes)

        self._obj = KeywordIndex('foo_keyword')
        self._XML = _KEYWORD_XML
Exemplo n.º 28
0
    def setUp(self):
        import Products.GenericSetup.PluginIndexes
        from Products.PluginIndexes.TopicIndex.FilteredSet \
                import PythonFilteredSet

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml',
                         Products.GenericSetup.PluginIndexes)

        self._obj = PythonFilteredSet('bar', '')
        self._XML = _SET_XML
Exemplo n.º 29
0
    def setUp(self):
        from Products.ZCTextIndex.ZCTextIndex import PLexicon
        from Products.ZCTextIndex.ZCTextIndex import ZCTextIndex

        NodeAdapterTestCase.setUp(self)
        catalog = DummyCatalog()
        catalog.foo_plexicon = PLexicon('foo_plexicon')
        extra = _extra()
        extra.lexicon_id = 'foo_plexicon'
        extra.index_type = 'Okapi BM25 Rank'
        self._obj = ZCTextIndex('foo_zctext', extra=extra,
                                caller=catalog).__of__(catalog)
        self._XML = _ZCTEXT_XML
Exemplo n.º 30
0
    def setUp(self):
        from Products.ZCTextIndex.ZCTextIndex import PLexicon
        from Products.ZCTextIndex.ZCTextIndex import ZCTextIndex

        NodeAdapterTestCase.setUp(self)
        catalog = DummyCatalog()
        catalog.foo_plexicon = PLexicon('foo_plexicon')
        extra = _extra()
        extra.lexicon_id = 'foo_plexicon'
        extra.index_type='Okapi BM25 Rank'
        self._obj = ZCTextIndex('foo_zctext', extra=extra,
                                caller=catalog).__of__(catalog)
        self._XML = _ZCTEXT_XML
Exemplo n.º 31
0
    def setUp(self):
        from Products.ZCTextIndex.ZCTextIndex import PLexicon

        NodeAdapterTestCase.setUp(self)
        self._obj = PLexicon('foo_plexicon')
        self._XML = _PLEXICON_XML
Exemplo n.º 32
0
    def setUp(self):
        from Products.PluginIndexes.TextIndex.TextIndex import TextIndex

        NodeAdapterTestCase.setUp(self)
        self._obj = TextIndex('foo_text')
        self._XML = _TEXT_XML
Exemplo n.º 33
0
    def setUp(self):
        from Products.CMFCore.ActionInformation import ActionCategory

        NodeAdapterTestCase.setUp(self)
        self._obj = ActionCategory('foo_category')
        self._XML = _ACTIONCATEGORY_XML
Exemplo n.º 34
0
    def setUp(self):
        from Products.PluginIndexes.PathIndex.PathIndex import PathIndex

        NodeAdapterTestCase.setUp(self)
        self._obj = PathIndex('foo_path')
        self._XML = _PATH_XML
Exemplo n.º 35
0
    def setUp(self):
        from Products.ZCTextIndex.ZCTextIndex import PLexicon

        NodeAdapterTestCase.setUp(self)
        self._obj = PLexicon('foo_plexicon')
        self._XML = _PLEXICON_XML
Exemplo n.º 36
0
    def setUp(self):
        from Products.PluginIndexes.TopicIndex.TopicIndex import TopicIndex

        NodeAdapterTestCase.setUp(self)
        self._obj = TopicIndex('foo_topic')
        self._XML = _TOPIC_XML
Exemplo n.º 37
0
    def setUp(self):
        from Products.CMFCore.CachingPolicyManager import CachingPolicy

        NodeAdapterTestCase.setUp(self)
        self._obj = CachingPolicy('foo_policy', max_age_secs=0)
        self._XML = _CP_XML
Exemplo n.º 38
0
 def setUp(self):
     from alm.solrindex.index import SolrIndex
     NodeAdapterTestCase.setUp(self)
     self._obj = SolrIndex('Solr', _SOLR_URI)
     self._XML = _SOLRINDEX_XML
Exemplo n.º 39
0
    def setUp(self):
        from Products.CMFCore.CachingPolicyManager import CachingPolicy

        NodeAdapterTestCase.setUp(self)
        self._obj = CachingPolicy('foo_policy', max_age_secs=0)
        self._XML = _CP_XML
Exemplo n.º 40
0
    def setUp(self):
        from Products.PluginIndexes.TextIndex.Vocabulary import Vocabulary

        NodeAdapterTestCase.setUp(self)
        self._obj = Vocabulary('foo_vocabulary')
        self._XML = _VOCABULARY_XML
Exemplo n.º 41
0
    def setUp(self):
        from Products.CMFCore.ActionInformation import Action

        NodeAdapterTestCase.setUp(self)
        self._obj = Action('foo_action')
        self._XML = _ACTION_XML
Exemplo n.º 42
0
    def setUp(self):
        from Products.PluginIndexes.FieldIndex.FieldIndex import FieldIndex

        NodeAdapterTestCase.setUp(self)
        self._obj = FieldIndex('foo_field')
        self._XML = _FIELD_XML
Exemplo n.º 43
0
    def setUp(self):
        from Products.CMFCore.ActionInformation import ActionCategory

        NodeAdapterTestCase.setUp(self)
        self._obj = ActionCategory('foo_category')
        self._XML = _ACTIONCATEGORY_XML
Exemplo n.º 44
0
 def tearDown(self):
     _DVRegistrySetup.tearDown(self)
     NodeAdapterTestCase.tearDown(self)
Exemplo n.º 45
0
    def setUp(self):
        from Products.CMFCore.ActionInformation import Action

        NodeAdapterTestCase.setUp(self)
        self._obj = Action('foo_action')
        self._XML = _ACTION_XML