Revision c0720b78

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):
b/snf-cyclades-app/synnefo/api/networks.py
69 69
    elif request.method == 'POST':
70 70
        return create_network(request)
71 71
    else:
72
        return api.method_not_allowed(request)
72
        return api.api_method_not_allowed(request)
73 73

  
74 74

  
75 75
def network_demux(request, network_id):
......
80 80
    elif request.method == 'DELETE':
81 81
        return delete_network(request, network_id)
82 82
    else:
83
        return api.method_not_allowed(request)
83
        return api.api_method_not_allowed(request)
84 84

  
85 85

  
86 86
def network_to_dict(network, user_id, detail=True):
b/snf-cyclades-app/synnefo/api/servers.py
78 78
    elif request.method == 'POST':
79 79
        return create_server(request)
80 80
    else:
81
        return api.method_not_allowed(request)
81
        return api.api_method_not_allowed(request)
82 82

  
83 83

  
84 84
def server_demux(request, server_id):
......
89 89
    elif request.method == 'DELETE':
90 90
        return delete_server(request, server_id)
91 91
    else:
92
        return api.method_not_allowed(request)
92
        return api.api_method_not_allowed(request)
93 93

  
94 94

  
95 95
def metadata_demux(request, server_id):
......
98 98
    elif request.method == 'POST':
99 99
        return update_metadata(request, server_id)
100 100
    else:
101
        return api.method_not_allowed(request)
101
        return api.api_method_not_allowed(request)
102 102

  
103 103

  
104 104
def metadata_item_demux(request, server_id, key):
......
109 109
    elif request.method == 'DELETE':
110 110
        return delete_metadata_item(request, server_id, key)
111 111
    else:
112
        return api.method_not_allowed(request)
112
        return api.api_method_not_allowed(request)
113 113

  
114 114

  
115 115
def nic_to_dict(nic):

Also available in: Unified diff