From: Thierry Parmentelat Date: Mon, 22 Nov 2010 22:25:01 +0000 (+0100) Subject: default for get_roles in the accessors factory is all_roles X-Git-Tag: plcapi-5.0-19~44 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f7ddb15c75cc235ee0592ac4f03005f8ce62a7d1;p=plcapi.git default for get_roles in the accessors factory is all_roles --- diff --git a/PLC/Accessors/Accessors_sliverauth.py b/PLC/Accessors/Accessors_sliverauth.py index 921645b..088560e 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 f97bfd4..f368a2c 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 5af6e29..12b5bd9 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 ad79a99..ebe6720 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 93a208a..9fc051d 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 83b208c..03a857b 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