Skip to content
Snippets Groups Projects
Commit e3c8a08f authored by Stefano Borini's avatar Stefano Borini
Browse files

Fixed remaining conflicts

parent cc3d0dd8
No related branches found
No related tags found
1 merge request!79Deliver notification info
...@@ -3,22 +3,11 @@ from envisage.plugin import Plugin ...@@ -3,22 +3,11 @@ from envisage.plugin import Plugin
from traits.api import List from traits.api import List
from force_bdss.ids import ExtensionPointID from force_bdss.ids import ExtensionPointID
<<<<<<< HEAD:force_bdss/bundle_registry_plugin.py from force_bdss.notifier.i_notifier_factory import INotifierFactory
from force_bdss.notification_listeners.i_notification_listener_bundle import \
INotificationListenerBundle
from .data_sources.i_data_source_bundle import (
IDataSourceBundle)
from .kpi.i_kpi_calculator_bundle import IKPICalculatorBundle
from .mco.i_mco_bundle import (
IMCOBundle
=======
from .data_sources.i_data_source_factory import ( from .data_sources.i_data_source_factory import (
IDataSourceFactory) IDataSourceFactory)
from .kpi.i_kpi_calculator_factory import IKPICalculatorFactory from .kpi.i_kpi_calculator_factory import IKPICalculatorFactory
from .mco.i_mco_factory import ( from .mco.i_mco_factory import IMCOFactory
IMCOFactory
>>>>>>> master:force_bdss/factory_registry_plugin.py
)
FACTORY_REGISTRY_PLUGIN_ID = "force.bdss.plugins.factory_registry" FACTORY_REGISTRY_PLUGIN_ID = "force.bdss.plugins.factory_registry"
...@@ -53,20 +42,14 @@ class FactoryRegistryPlugin(Plugin): ...@@ -53,20 +42,14 @@ class FactoryRegistryPlugin(Plugin):
List(IKPICalculatorFactory), List(IKPICalculatorFactory),
id=ExtensionPointID.KPI_CALCULATOR_FACTORIES) id=ExtensionPointID.KPI_CALCULATOR_FACTORIES)
<<<<<<< HEAD:force_bdss/bundle_registry_plugin.py notifier_factories = ExtensionPoint(
notification_listener_bundles = ExtensionPoint( List(INotifierFactory),
List(INotificationListenerBundle), id=ExtensionPointID.NOTIFIER_FACTORY
id=ExtensionPointID.NOTIFICATION_LISTENER_BUNDLE
) )
def data_source_bundle_by_id(self, id):
"""Finds a given data source bundle by means of its id.
The ID is as obtained by the function bundle_id() in the
=======
def data_source_factory_by_id(self, id): def data_source_factory_by_id(self, id):
"""Finds a given data source factory by means of its id. """Finds a given data source factory by means of its id.
The ID is as obtained by the function factory_id() in the The ID is as obtained by the function factory_id() in the
>>>>>>> master:force_bdss/factory_registry_plugin.py
plugin api. plugin api.
Parameters Parameters
...@@ -158,7 +141,7 @@ class FactoryRegistryPlugin(Plugin): ...@@ -158,7 +141,7 @@ class FactoryRegistryPlugin(Plugin):
raise KeyError("Requested MCO parameter {}:{} but don't know" raise KeyError("Requested MCO parameter {}:{} but don't know"
" how to find it.".format(mco_id, parameter_id)) " how to find it.".format(mco_id, parameter_id))
def notification_listener_bundle_by_id(self, id): def notifier_factory_by_id(self, id):
"""Finds a given notification listener by means of its id. """Finds a given notification listener by means of its id.
The ID is as obtained by the function bundle_id() in the The ID is as obtained by the function bundle_id() in the
plugin api. plugin api.
...@@ -172,10 +155,10 @@ class FactoryRegistryPlugin(Plugin): ...@@ -172,10 +155,10 @@ class FactoryRegistryPlugin(Plugin):
------ ------
KeyError: if the entry is not found. KeyError: if the entry is not found.
""" """
for nl in self.notification_listener_bundles: for nl in self.notifier_factories:
if nl.id == id: if nl.id == id:
return nl return nl
raise KeyError( raise KeyError(
"Requested notification listener {} but don't know how " "Requested notifier_factory {} but don't know how "
"to find it.".format(id)) "to find it.".format(id))
...@@ -13,17 +13,13 @@ class BaseMCO(ABCHasStrictTraits): ...@@ -13,17 +13,13 @@ class BaseMCO(ABCHasStrictTraits):
#: A reference to the factory #: A reference to the factory
factory = Instance(IMCOFactory) factory = Instance(IMCOFactory)
<<<<<<< HEAD
started = Event() started = Event()
finished = Event() finished = Event()
progress = Event() progress = Event()
def __init__(self, bundle, *args, **kwargs):
=======
def __init__(self, factory, *args, **kwargs): def __init__(self, factory, *args, **kwargs):
>>>>>>> master
"""Initializes the MCO. """Initializes the MCO.
Parameters Parameters
......
...@@ -2,11 +2,11 @@ from traits.api import Interface, String, Instance ...@@ -2,11 +2,11 @@ from traits.api import Interface, String, Instance
from envisage.plugin import Plugin from envisage.plugin import Plugin
class INotificationListenerBundle(Interface): class INotifierFactory(Interface):
"""Envisage required interface for the BaseNotificationListenerBundle. """Envisage required interface for the BaseNotifierFactory.
You should not need to use this directly. You should not need to use this directly.
Refer to the BaseNotificationListenerBundle for documentation. Refer to the BaseNotifier for documentation.
""" """
id = String() id = String()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment