Tracker

Bases: _Handler, ABC

Source code in client/bip/sdk/handlers/tracker.py
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
def __init__(self, *args, **kwargs):
    super().__init__(*args, **kwargs)

    self.sync_enabled = self._plugin.sync_enabled
    self.sync_direction = self._plugin.sync_direction
    self.sync_rules = deepcopy(self._plugin.sync_rules)

    self._connector = self.connect()

    try:
        self._current_user = self.get_current_user()
    except (ValueError, LookupError):
        raise ValueError(
            f"You cannot use the plugin {self.name}. Impossible to match the current Bip user with a {self.product.capitalize()} user."
        )