예제 #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)