finetuned and nicer
[plcapi.git] / PLC / Accessors / Accessors_standard.py
1 # Thierry Parmentelat - INRIA
2 # $Id$
3
4 from PLC.Nodes import Node
5 from PLC.Interfaces import Interface
6 from PLC.Slices import Slice
7 from PLC.Ilinks import Ilink
8
9 from PLC.Accessors.Factory import define_accessors, all_roles
10
11 import sys
12 current_module = sys.modules[__name__]
13
14 # example : node architecture 
15 define_accessors(current_module, Node, "Arch", 'arch',  'node/config', 'architecture name', 
16                  tag_min_role_id=40,
17                  get_roles=all_roles,
18                  set_roles=['admin', 'pi', 'tech'] )
19