reviewing the tags permission system
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 18 Nov 2010 19:16:19 +0000 (20:16 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 18 Nov 2010 19:16:19 +0000 (20:16 +0100)
commit0c28b6c095054293cc35c75a7a601486a4c249ff
tree04602d2a8bbb3247e7ae4a5dd48b8a031b97361f
parent641a829a3412936f80849d2bb43af54c4480d197
reviewing the tags permission system
tag_types don't have a min_role_id anymore but a set of roles
new methods AddRoleToTagType and DeleteRoleFromTagType to handle that
new file PLC/AuthorizeHelpers.py has helpers to implement authorizations
this is a checkpoint commit - remaining todo:
- slice tags methods are unchanged yet
- accessors and factory still use min_role_id
43 files changed:
PLC/Accessor.py
PLC/Faults.py
PLC/Ilinks.py
PLC/InterfaceTags.py
PLC/Interfaces.py
PLC/Methods/AddIlink.py
PLC/Methods/AddInterface.py
PLC/Methods/AddInterfaceTag.py
PLC/Methods/AddNodeTag.py
PLC/Methods/AddPerson.py
PLC/Methods/AddPersonTag.py
PLC/Methods/AddRoleToPerson.py
PLC/Methods/AddRoleToTagType.py [new file with mode: 0644]
PLC/Methods/AddSiteTag.py
PLC/Methods/AddSliceTag.py
PLC/Methods/AddTagType.py
PLC/Methods/DeleteIlink.py
PLC/Methods/DeleteInterface.py
PLC/Methods/DeleteInterfaceTag.py
PLC/Methods/DeleteNodeTag.py
PLC/Methods/DeletePersonTag.py
PLC/Methods/DeleteRoleFromPerson.py
PLC/Methods/DeleteRoleFromTagType.py [new file with mode: 0644]
PLC/Methods/DeleteSite.py
PLC/Methods/DeleteSiteTag.py
PLC/Methods/DeleteSliceTag.py
PLC/Methods/UpdateIlink.py
PLC/Methods/UpdateInterfaceTag.py
PLC/Methods/UpdateNodeTag.py
PLC/Methods/UpdatePersonTag.py
PLC/Methods/UpdateSiteTag.py
PLC/Methods/UpdateSliceTag.py
PLC/Methods/UpdateTagType.py
PLC/NodeTags.py
PLC/PersonTags.py
PLC/Roles.py
PLC/SiteTags.py
PLC/Sites.py
PLC/SliceTags.py
PLC/TagTypes.py
migrations/104-down-noderole.sql [new file with mode: 0644]
migrations/104-up-noderole.sql [new file with mode: 0644]
planetlab5.sql