import re


class Presenters(object):

    def __init__(self):
        return None

    def present(self, value, question_content):
        if "type" in question_content:
            field_type = question_content["type"]
        else:
            return value

        if hasattr(self, "_" + field_type):
            return getattr(self, "_" + field_type)(value)
        else:
            return value

    def _service_id(self, value):
        if re.findall("[a-zA-Z]", value):
            return [value]
        else:
            return re.findall("....", str(value))

    def _upload(self, value):
        return {
            "url": value or "",
            "filename": value.split("/")[-1] or ""
        }

import re


class Presenters(object):

    def __init__(self):
        return None

    def present(self, value, question_content):
        if "type" in question_content:
            field_type = question_content["type"]
        else:
            return value

        if hasattr(self, "_" + field_type):
            return getattr(self, "_" + field_type)(value)
        else:
            return value

    def _service_id(self, value):
        if re.findall("[a-zA-Z]", str(value)):
            return [value]
        else:
            return re.findall("....", str(value))

    def _upload(self, value):
        return {
            "url": value or "",
            "filename": value.split("/")[-1] or ""
        }

Fix the thing that @quis broke.
Fix the thing that @quis broke.
