Synchronizer

class connector.unit.synchronizer.DeleteSynchronizer(environment)[source]

Bases: connector.unit.synchronizer.Synchronizer

Synchronizer for deleting a record on the backend

class connector.unit.synchronizer.ExportSynchronizer(environment)[source]

Bases: connector.unit.synchronizer.Synchronizer

Synchronizer for exporting data from OpenERP to a backend

mapper[source]

Return an instance of Mapper for the synchronization.

The instanciation is delayed because some synchronisations do not need such an unit and the unit may not exist.

Return type: connector.unit.mapper.ExportMapper
class connector.unit.synchronizer.ImportSynchronizer(environment)[source]

Bases: connector.unit.synchronizer.Synchronizer

Synchronizer for importing data from a backend to OpenERP

mapper[source]

Return an instance of Mapper for the synchronization.

The instanciation is delayed because some synchronisations do not need such an unit and the unit may not exist.

Return type: connector.unit.mapper.ImportMapper
class connector.unit.synchronizer.Synchronizer(environment)[source]

Bases: connector.connector.ConnectorUnit

Base class for synchronizers

backend_adapter[source]

Return an instance of BackendAdapter for the synchronization.

The instanciation is delayed because some synchronisations do not need such an unit and the unit may not exist.

Return type: connector.unit.backend_adapter.BackendAdapter
binder[source]

Return an instance of Binder for the synchronization.

The instanciation is delayed because some synchronisations do not need such an unit and the unit may not exist.

Return type: connector.unit.binder.Binder
mapper[source]

Return an instance of Mapper for the synchronization.

The instanciation is delayed because some synchronisations do not need such an unit and the unit may not exist.

Return type: connector.unit.mapper.Mapper
run()[source]

Run the synchronization