Commit cf92ed49 by cloud

idashb

parent b49b026a
......@@ -241,7 +241,7 @@ class VmDetailView(CheckedDetailView):
'new_name': self.__set_name,
'new_description': self.__set_description,
'new_tag': self.__add_tag,
'deploy_local': self.__deploy_local,
'deploy_locall': self.donothing,
'to_remove': self.__remove_tag,
'port': self.__add_port,
'new_network_vlan': self.__new_network,
......@@ -250,6 +250,9 @@ class VmDetailView(CheckedDetailView):
if request.POST.get(k) is not None:
return v(request)
def donothing(self, request):
pass
def __deploy_local(self, request):
self.object = self.get_object()
if not self.object.has_level(request.user, 'owner'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment