Revision 5fb55fba api/handlers.py

b/api/handlers.py
6 6
from django.http import HttpResponse
7 7
from piston.handler import BaseHandler, AnonymousBaseHandler
8 8
from synnefo.api.faults import fault, noContent, accepted, created, notModified
9
from synnefo.api.helpers import instance_to_server, paginator
9
from synnefo.api.helpers import instance_to_server, paginator, authenticate
10 10
from synnefo.util.rapi import GanetiRapiClient, GanetiApiError
11 11
from synnefo.util.rapi import CertificateError
12 12
from synnefo.db.models import *
......
91 91
    """
92 92
    allowed_methods = ('GET', 'POST', 'PUT', 'DELETE')
93 93

  
94
    #@authenticate
94 95
    def read(self, request, id=None):
95 96
        from time import sleep
96 97
        sleep(0.5)

Also available in: Unified diff