#
# Thierry Parmentelat - INRIA
#
# Accessors_site.py is the place where you can define your own local tag accessors
# this will not be overwritten through rpm upgrades
#
# Now that Sites are taggable too, the name may be confusing, think of is as
# Accessors_local.py
#
# methods denotes the set of methods (names) that get inserted into the API
# it is updated by define_accessors

methods=[]

from PLC.Nodes import Node
from PLC.Interfaces import Interface
from PLC.Slices import Slice
from PLC.Sites import Site
from PLC.Persons import Person
#from PLC.Ilinks import Ilink

from PLC.Accessors.Factory import define_accessors, all_roles, tech_roles

import sys
current_module = sys.modules[__name__]

#### example : attach vlan ids on interfaces
# The third argument expose_in_api is a boolean flag that tells whether this tag may be handled
#   through the Add/Get/Update methods as a native field
#
#define_accessors(current_module, Interface, "Vlan", "vlan",
#                  "interface/general", "tag for setting VLAN id",
#                  get_roles=all_roles, set_roles=tech_roles)

@@ -633,16 +633,30 @@
 l_roles,
+ person_roles,
  tech_ro

tweak Accessors_site template to mentino person_roles