def get_locale_with_proxy(proxy):
from .locale.objects import Locale<EOL>if proxy is not None:<EOL><INDENT>locale = proxy.get_locale()<EOL>if locale is not None:<EOL><INDENT>return locale<EOL><DEDENT><DEDENT>return Locale()<EOL>
Given a Proxy, returns the Locale

    This assumes that instantiating a dlkit.mongo.locale.objects.Locale
    without constructor arguments wlll return the default Locale.