# Path: solace/utils/lazystring.py
# def is_lazy_string(obj):
#     """Checks if the given object is a lazy string."""
#     return isinstance(obj, _LazyString)


from datetime import datetime
from babel import Locale
from solace.utils.lazystring import is_lazy_string
        from solace.i18n import is_lazy_string
# -*- coding: utf-8 -*-
"""
    solace.utils.remoting
    ~~~~~~~~~~~~~~~~~~~~~

    This module implements a baseclass for remote objects.  These
    objects can be exposed via JSON on the URL and are also used
    by libsolace's direct connection.

    It also provides basic helpers for the API.

    :copyright: (c) 2010 by the Solace Team, see AUTHORS for more details.
    :license: BSD, see LICENSE for more details.
"""


def remote_export_primitive(obj):
    """Remote exports a primitive."""
    if isinstance(obj, RemoteObject):
        return obj.remote_export()

# Path: solace/utils/lazystring.py
# def is_lazy_string(obj):
#     """Checks if the given object is a lazy string."""
#     return isinstance(obj, _LazyString)


# Path: solace/utils/remoting.py
from datetime import datetime
from babel import Locale
from solace.utils.lazystring import is_lazy_string
        from solace.i18n import is_lazy_string

# -*- coding: utf-8 -*-
"""
    solace.utils.remoting
    ~~~~~~~~~~~~~~~~~~~~~

    This module implements a baseclass for remote objects.  These
    objects can be exposed via JSON on the URL and are also used
    by libsolace's direct connection.

    It also provides basic helpers for the API.

    :copyright: (c) 2010 by the Solace Team, see AUTHORS for more details.
    :license: BSD, see LICENSE for more details.
"""


def remote_export_primitive(obj):
    """Remote exports a primitive."""
    if isinstance(obj, RemoteObject):
        return obj.remote_export()

    if is_lazy_string(obj):