create the disabled_registration site tag that allows to remove a specific site from...
authorparmentelat <thierry.parmentelat@inria.fr>
Thu, 22 Mar 2018 13:32:56 +0000 (14:32 +0100)
committerparmentelat <thierry.parmentelat@inria.fr>
Thu, 22 Mar 2018 13:32:56 +0000 (14:32 +0100)
PLC/Accessors/Accessors_standard.py

index 55ff66e..8ee3e91 100644 (file)
@@ -113,3 +113,9 @@ define_accessors(current_module, Interface, "Backdoor", "backdoor",
 define_accessors(current_module, [Person,Slice,Site] , "SfaCreated", "sfa_created",
                  "person/slice/site/sfa", "Tag objects created through SFA interfaces",
                  set_roles=all_roles, expose_in_api=True)
+
+# set any value to this tag to prevent a site from showing up
+# in the person registration form
+define_accessors(current_module, Site, "DisabledRegistration", "disabled_registration",
+                 "site", "Sites that have a non-void value are excluded from the drop-down list on the registration form",
+                 set_roles=admin_roles, expose_in_api=True)