From f7ddb15c75cc235ee0592ac4f03005f8ce62a7d1 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 22 Nov 2010 23:25:01 +0100 Subject: [PATCH 1/1] default for get_roles in the accessors factory is all_roles --- PLC/Accessors/Accessors_sliverauth.py | 3 +++ PLC/Accessors/Accessors_standard.py | 5 ++--- PLC/Accessors/Accessors_wireless.py | 5 ++--- PLC/Accessors/Factory.py | 7 +++---- PLC/Methods/GetIlinks.py | 4 ---- PLC/Methods/GetSiteTags.py | 4 ---- 6 files changed, 10 insertions(+), 18 deletions(-) diff --git a/PLC/Accessors/Accessors_sliverauth.py b/PLC/Accessors/Accessors_sliverauth.py index 921645b0..088560e4 100644 --- a/PLC/Accessors/Accessors_sliverauth.py +++ b/PLC/Accessors/Accessors_sliverauth.py @@ -1,3 +1,6 @@ +# +# Thierry Parmentelat - INRIA +# from PLC.Nodes import Node from PLC.Interfaces import Interface from PLC.Slices import Slice diff --git a/PLC/Accessors/Accessors_standard.py b/PLC/Accessors/Accessors_standard.py index f97bfd45..f368a2cc 100644 --- a/PLC/Accessors/Accessors_standard.py +++ b/PLC/Accessors/Accessors_standard.py @@ -1,7 +1,6 @@ +# # Thierry Parmentelat - INRIA -# $Id$ -# $URL$ - +# from PLC.Nodes import Node from PLC.Interfaces import Interface from PLC.Slices import Slice diff --git a/PLC/Accessors/Accessors_wireless.py b/PLC/Accessors/Accessors_wireless.py index 5af6e292..12b5bd9f 100644 --- a/PLC/Accessors/Accessors_wireless.py +++ b/PLC/Accessors/Accessors_wireless.py @@ -1,7 +1,6 @@ +# # Thierry Parmentelat - INRIA -# $Id$ -# $URL$ - +# from PLC.Nodes import Node from PLC.Interfaces import Interface from PLC.Slices import Slice diff --git a/PLC/Accessors/Factory.py b/PLC/Accessors/Factory.py index ad79a997..ebe67204 100644 --- a/PLC/Accessors/Factory.py +++ b/PLC/Accessors/Factory.py @@ -1,7 +1,6 @@ +# # Thierry Parmentelat - INRIA -# $Id$ -# $URL$ - +# from types import NoneType from PLC.Faults import * @@ -72,7 +71,7 @@ tech_roles = [ 'admin', 'pi', 'tech' ] def define_accessors (module, objclass, methodsuffix, tagname, category, description, - get_roles=['admin'], set_roles=['admin'], + get_roles=all_roles, admin_roles, expose_in_api = False): if objclass not in taggable_classes: diff --git a/PLC/Methods/GetIlinks.py b/PLC/Methods/GetIlinks.py index 93a208ad..9fc051d0 100644 --- a/PLC/Methods/GetIlinks.py +++ b/PLC/Methods/GetIlinks.py @@ -1,10 +1,6 @@ -# $Id$ -# $URL$ # # Thierry Parmentelat - INRIA # -# $Revision: 9423 $ -# from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed diff --git a/PLC/Methods/GetSiteTags.py b/PLC/Methods/GetSiteTags.py index 83b208c3..03a857b5 100644 --- a/PLC/Methods/GetSiteTags.py +++ b/PLC/Methods/GetSiteTags.py @@ -1,10 +1,6 @@ -# $Id: GetSiteTags.py 14587 2009-07-19 13:18:50Z thierry $ -# $URL: http://svn.planet-lab.org/svn/PLCAPI/tags/PLCAPI-4.3-27/PLC/Methods/GetSiteTags.py $ # # Thierry Parmentelat - INRIA # -# $Revision: 14587 $ -# from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed -- 2.45.2