def get(self, request, podname, version=None, retina=None):
        if not version:
            try:
                pod_info = helpers.get_pod_info(podname)

                version = pod_info['version']
            except Exception, e:
                version = 'error'
Beispiel #2
0
    def get(self, request, podname, version=None, retina=None):
        if not version:
            try:
                pod_info = helpers.get_pod_info(podname)

                version = pod_info['version']
            except Exception, e:
                version = 'error'
Beispiel #3
0
    def get(self, request, podname, version=None, retina=None):
        if not version:
            try:
                pod_info = helpers.get_pod_info(podname)

                version = pod_info['version']
            except Exception:
                version = 'error'

        contents, mimetype = helpers.prepare_shield('version', version)
        return HttpResponse(contents, mimetype=mimetype)
    def get(self, request, podname, retina=None):

        try:
            pod_info = helpers.get_pod_info(podname)

            platforms = pod_info.get('platforms', {'osx': '', 'ios': ''}).keys()

            platforms = '|'.join(platforms)
        except Exception:
            platforms = 'error'

        contents, mimetype = helpers.prepare_shield('platform', platforms)
        return HttpResponse(contents, mimetype=mimetype[0])
Beispiel #5
0
    def get(self, request, podname, retina=None):

        try:
            pod_info = helpers.get_pod_info(podname)

            platforms = pod_info.get('platforms', {'osx': '', 'ios': ''}).keys()

            platforms = '|'.join(platforms)
        except Exception:
            platforms = 'error'

        contents, mimetype = helpers.prepare_shield('platform', platforms)
        return HttpResponse(contents, mimetype=mimetype[0])