# Copyright (c) 2014, German Neuroinformatics Node (G-Node)
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted under the terms of the BSD License. See
# LICENSE file in the root of the Project.

from __future__ import absolute_import

from nix.core import Source
from nix.util.inject import Inject
from nix.util.proxy_list import ProxyList

from nix.block import SourceProxyList

class SourceMixin(Source):

    class __metaclass__(Inject, Source.__class__):
        pass

    @property
    def sources(self):
        if not hasattr(self, "_sources"):
            setattr(self, "_sources", SourceProxyList(self))
        return self._sources

    def __eq__(self, other):
        if hasattr(other, "id"):
            return self.id == other.id
        else:
            return False

216ad09ec0dec1a565af78b9ce8b579d7c9e00bf
<mask token>


class SourceMixin(Source):


    class __metaclass__(Inject, Source.__class__):
        pass
    <mask token>
    <mask token>

<mask token>


class SourceMixin(Source):


    class __metaclass__(Inject, Source.__class__):
        pass

    @property
    def sources(self):
        if not hasattr(self, '_sources'):
            setattr(self, '_sources', SourceProxyList(self))
        return self._sources
    <mask token>

<mask token>


class SourceMixin(Source):


    class __metaclass__(Inject, Source.__class__):
        pass

    @property
    def sources(self):
        if not hasattr(self, '_sources'):
            setattr(self, '_sources', SourceProxyList(self))
        return self._sources

    def __eq__(self, other):
        if hasattr(other, 'id'):
            return self.id == other.id
        else:
            return False

from __future__ import absolute_import
from nix.core import Source
from nix.util.inject import Inject
from nix.util.proxy_list import ProxyList
from nix.block import SourceProxyList


class SourceMixin(Source):


    class __metaclass__(Inject, Source.__class__):
        pass

    @property
    def sources(self):
        if not hasattr(self, '_sources'):
            setattr(self, '_sources', SourceProxyList(self))
        return self._sources

    def __eq__(self, other):
        if hasattr(other, 'id'):
            return self.id == other.id
        else:
            return False

# Copyright (c) 2014, German Neuroinformatics Node (G-Node)
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted under the terms of the BSD License. See
# LICENSE file in the root of the Project.

from __future__ import absolute_import

from nix.core import Source
from nix.util.inject import Inject
from nix.util.proxy_list import ProxyList

from nix.block import SourceProxyList

class SourceMixin(Source):

    class __metaclass__(Inject, Source.__class__):
        pass

    @property
    def sources(self):
        if not hasattr(self, "_sources"):
            setattr(self, "_sources", SourceProxyList(self))
        return self._sources

    def __eq__(self, other):
        if hasattr(other, "id"):
            return self.id == other.id
        else:
            return False
