Revision c0720b78 snf-cyclades-app/synnefo/api/images.py

b/snf-cyclades-app/synnefo/api/images.py
65 65
    elif request.method == 'POST':
66 66
        return create_image(request)
67 67
    else:
68
        return api.method_not_allowed(request)
68
        return api.api_method_not_allowed(request)
69 69

  
70 70

  
71 71
def image_demux(request, image_id):
......
74 74
    elif request.method == 'DELETE':
75 75
        return delete_image(request, image_id)
76 76
    else:
77
        return api.method_not_allowed(request)
77
        return api.api_method_not_allowed(request)
78 78

  
79 79

  
80 80
def metadata_demux(request, image_id):
......
83 83
    elif request.method == 'POST':
84 84
        return update_metadata(request, image_id)
85 85
    else:
86
        return api.method_not_allowed(request)
86
        return api.api_method_not_allowed(request)
87 87

  
88 88

  
89 89
def metadata_item_demux(request, image_id, key):
......
94 94
    elif request.method == 'DELETE':
95 95
        return delete_metadata_item(request, image_id, key)
96 96
    else:
97
        return api.method_not_allowed(request)
97
        return api.api_method_not_allowed(request)
98 98

  
99 99

  
100 100
def image_to_dict(image, detail=True):

Also available in: Unified diff