get/set accessors should now work, e.g.:
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 19 Aug 2008 18:03:55 +0000 (18:03 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 19 Aug 2008 18:03:55 +0000 (18:03 +0000)
commit196d474841ff8cbfed8ddff43f01ffb7933a15d8
treeb70383988ceef4af9b5f42dff34eb8e6ef2f2de2
parent646b1a34b3e00a78426780e2e677d85e3e1b8924
get/set accessors should now work, e.g.:
SetNodeArch(hostname,'x86_64')
GetNodeArch(node_id)
==
The set of accessors is split into 2 python files:
(*) Accessors/Accessors_standard.py
where the tags used by the core software should be defined
(*) Accessors/Accessors_site.py
where local admins can add custom accessors (see .in for an example)
this is not overwritten by upgrades of myplc-native (for chroot ?)
==
I have only defined G/SetNodeArch for now
The template for site accessors shows how to define G/SetInterfaceVlan
PLC/Accessors/Accessors_site.py.in [moved from PLC/Accessors/Shortcuts_site.py.in with 91% similarity]
PLC/Accessors/Accessors_standard.py [moved from PLC/Accessors/Shortcuts_standard.py with 100% similarity]
PLC/Accessors/Factory.py
PLC/TagTypes.py