'Parse a value from a piece of text'

@staticmethod
def _parse_value(text, fieldname):

    parts = text.split((':%s:' % fieldname), 1)
    parts = parts[1].split(':', 1)
    result = parts[0]
    return result
