@method_decorator(one_perm_required_or_403(pr_resource_add_change,
        (Project, 'slug__exact', 'project_slug')))
    def create(self, request, project_slug, resource_slug=None, api_version=1):
        data = getattr(request, 'data', None)
        if api_version == 2:
            if resource_slug is not None:
                return BAD_REQUEST("POSTing to this url is not allowed.")
            if data is None:
                return BAD_REQUEST(
                    "At least parameters 'slug', 'name', 'i18n_type' "
                    "and 'source_language' must be specified,"
                    " as well as the source strings."
                )
            try:
                res = self._create(request, project_slug, data)
            except BadRequestError, e:
                return BAD_REQUEST(unicode(e))
            except NotFoundError, e:
                return rc.NOT_FOUND
            t = Translation.get_object("create", request)
            res = t.__class__.to_http_for_create(t, res)
            if res.status_code == 200:
                res.status_code = 201
            return res
        else:
            return self._createv1(request, project_slug, resource_slug, data)
Lookup all the AAAA records associated with C{name}.
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/api.py/ResourceHandler.create--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/interfaces.py/IResolver.lookupIPV6Address