Ejemplo n.º 1
0
    def on_start(self):
        super(DatasetManagementService, self).on_start()

        using_eoi_services = self.CFG.get_safe('eoi.meta.use_eoi_services',
                                               False)
        if using_eoi_services:
            self.resource_parser = ResourceParser()
        else:
            self.resource_parser = None
Ejemplo n.º 2
0
    def on_initial_bootstrap(self, process, config, **kwargs):
        """
        EOI BootstrapPlugin

        Resets the geoserver datastore... 
        Performs inital parsing of the eoi datasources
        """
        using_eoi_services = config.get_safe('eoi.meta.use_eoi_services',
                                             False)
        if using_eoi_services:
            try:
                r = ResourceParser()
                r.reset()
            except Exception:
                log.error("Error resetting EOI Services")
        else:
            log.info("EOI Services are not enabled")