Пример #1
0
    def get_endpoints(self):
        endpoints = []
        for verb, verb_iface in VERBS.items():
            for name, adapter in self.get_endpoints_for_verb(verb_iface):
                endpoints.append({'name': name,
                                  'adapter': adapter,
                                  'verb': verb})

        return endpoints
Пример #2
0
    def get_endpoints(self):
        endpoints = []
        for verb, verb_iface in VERBS.items():
            for name, adapter in self.get_endpoints_for_verb(verb_iface):
                endpoints.append({
                    'name': name,
                    'adapter': adapter,
                    'verb': verb
                })

        return endpoints
Пример #3
0
 def mark_request(self, request):
     for verb, iface in VERBS.items():
         if request.get('REQUEST_METHOD') == verb:
             alsoProvides(request, iface)
Пример #4
0
 def mark_request(self, request):
     for verb, iface in VERBS.items():
         if request.get('REQUEST_METHOD') == verb:
             alsoProvides(request, iface)