From: Tony Mack Date: Thu, 1 Feb 2007 22:00:45 +0000 (+0000) Subject: - support updating 'enabled' field X-Git-Tag: pycurl-7_13_1~23 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2e7b23eea75847d91f079372191b9fcc822d7d8e;p=plcapi.git - support updating 'enabled' field --- diff --git a/PLC/Methods/AddSite.py b/PLC/Methods/AddSite.py index c58f5e56..a37a7f06 100644 --- a/PLC/Methods/AddSite.py +++ b/PLC/Methods/AddSite.py @@ -7,7 +7,7 @@ from PLC.Auth import Auth can_update = lambda (field, value): field in \ ['name', 'abbreviated_name', 'login_base', 'is_public', 'latitude', 'longitude', 'url', - 'max_slices', 'max_slivers'] + 'max_slices', 'max_slivers', 'enabled'] class AddSite(Method): """ diff --git a/PLC/Methods/UpdateSite.py b/PLC/Methods/UpdateSite.py index bda0c042..c2dfefc5 100644 --- a/PLC/Methods/UpdateSite.py +++ b/PLC/Methods/UpdateSite.py @@ -7,7 +7,7 @@ from PLC.Auth import Auth can_update = lambda (field, value): field in \ ['name', 'abbreviated_name', 'login_base', 'is_public', 'latitude', 'longitude', 'url', - 'max_slices', 'max_slivers'] + 'max_slices', 'max_slivers', 'enabled'] class UpdateSite(Method): """