<filename>joueur/delta_mergeable.py<gh_stars>1-10
class DeltaMergeable():
    """a game or game object that needs to be delta merged"""

    def __init__(self):
        pass

    def _run_on_server(self, function_name, **kwargs):
        import joueur.client # avoid circular imports (sphinx won't build docs otherwise)
        return joueur.client.run_on_server(self, function_name, kwargs)

    def __contains__(self, key):
        return hasattr(self, key)

    def __getitem__(self, key):
        return getattr(self, key)

<filename>joueur/delta_mergeable.py<gh_stars>1-10
class DeltaMergeable():
    """a game or game object that needs to be delta merged"""

    def __init__(self):
        pass

    def _run_on_server(self, function_name, **kwargs):
        import joueur.client # avoid circular imports (sphinx won't build docs otherwise)
        return joueur.client.run_on_server(self, function_name, kwargs)

    def __contains__(self, key):
        return hasattr(self, key)

    def __getitem__(self, key):
        return getattr(self, key)

a game or game object that needs to be delta merged # avoid circular imports (sphinx won't build docs otherwise)