Example #1
0
 def build_store(self):
     """ Instantiate and configure a store.
     """
     metagenerator = UserMetaGenerator(
         self._cw, source=self.source,
         meta_skipped=("container_parent", "container_etype"))
     return stores.NoHookRQLObjectStore(self._cw, metagenerator)
Example #2
0
 def store_impl(self, cnx):
     source = cnx.create_entity('CWSource',
                                type=u'datafeed',
                                name=u'test',
                                url=u'test')
     cnx.commit()
     metagen = stores.MetadataGenerator(cnx,
                                        source=cnx.repo.source_by_eid(
                                            source.eid))
     return stores.NoHookRQLObjectStore(cnx, metagen)
Example #3
0
 def build_store(self):
     """Instantiate and configure a store"""
     metagenerator = UserMetaGenerator(self._cw, source=self.source)
     return stores.NoHookRQLObjectStore(self._cw, metagenerator)