ooiservices/app/uframe/assetController.py
def _normalize(to_translate, translate_to=u' '):
    """
    Some of the strings from uframe contain special,
    non ascii characters, these need to be removed.
    This method is primarily used to normalize the Lat/Lon
    values so it can be later converted to decimal degrees.
    """
    try:
        ascii = ''.join([i if ord(i) < 128 else ' ' for i in to_translate])
        scrub = u'\'\"'
        translate_table = dict((ord(char), translate_to) for char in scrub)
        normalized = _normalize_whitespace(ascii.translate(translate_table))
        return normalized
    except Exception as e:
        return "%s" % e

    Some of the strings from uframe contain special,
    non ascii characters, these need to be removed.
    This method is primarily used to normalize the Lat/Lon
    values so it can be later converted to decimal degrees.
    
Some of the strings from uframe contain special,
non ascii characters, these need to be removed.
This method is primarily used to normalize the Lat/Lon
values so it can be later converted to decimal degrees.
Some of the strings from uframe contain special non ascii characters these need to be removed . This method is primarily used to normalize the Lat / Lon values so it can be later converted to decimal degrees .
def _normalize(to_translate, translate_to=u' '):
    try:
        ascii = ''.join([i if ord(i) < 128 else ' ' for i in to_translate])
        scrub = u'\'\"'
        translate_table = dict((ord(char), translate_to) for char in scrub)
        normalized = _normalize_whitespace(ascii.translate(translate_table))
        return normalized
    except Exception as e:
        return "%s" % e
def _normalize ( to_translate , translate_to = u' ' ) : try : ascii = '' . join ( [ i if ord ( i ) < 128 else ' ' for i in to_translate ] ) scrub = u'\'\"' translate_table = dict ( ( ord ( char ) , translate_to ) for char in scrub ) normalized = _normalize_whitespace ( ascii . translate ( translate_table ) ) return normalized except Exception as e : return "%s" % e
Some of the strings from uframe contain special,
non ascii characters, these need to be removed.
Some of the strings from uframe contain special non ascii characters these need to be removed .
"""
    Some of the strings from uframe contain special,
    non ascii characters, these need to be removed.
    This method is primarily used to normalize the Lat/Lon
    values so it can be later converted to decimal degrees.
    """
to_translate
translate_to