- support updating 'enabled' field
authorTony Mack <tmack@cs.princeton.edu>
Thu, 1 Feb 2007 22:00:45 +0000 (22:00 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 1 Feb 2007 22:00:45 +0000 (22:00 +0000)
PLC/Methods/AddSite.py
PLC/Methods/UpdateSite.py

index c58f5e5..a37a7f0 100644 (file)
@@ -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):
     """
index bda0c04..c2dfefc 100644 (file)
@@ -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):
     """