X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Fmanagers%2Fdriver.py;h=6b2681ca89828f5bab7d0f82643f4142d4f1e243;hp=17358cfc17286d1f3ca9b476606ea3b9b0254ea2;hb=d4fdf5099eff793459ad956b6a40ff85003cecc0;hpb=16030c42f1bc92fa646dbca4cb7aff975f0e3cd1 diff --git a/sfa/managers/driver.py b/sfa/managers/driver.py index 17358cfc..6b2681ca 100644 --- a/sfa/managers/driver.py +++ b/sfa/managers/driver.py @@ -13,12 +13,9 @@ class Driver: ########## registry oriented ######################################## - # redefine this if you want to check again records - # when running GetCredential - # This is to reflect the 'enabled' user field in planetlab testbeds - # expected retcod boolean - def is_enabled (self, record) : - return True + # NOTE: the is_enabled method is deprecated + # it was only making things confusing, as the (PL) import mechanism would + # ignore not enabled users anyway.. # the following is used in Resolve (registry) when run in full mode # after looking up the sfa db, we wish to be able to display @@ -61,6 +58,15 @@ class Driver: def update (self, old_sfa_record, new_sfa_record, hrn, new_key): return True + # callack for register/update + # this allows to capture changes in the relations between objects + # the ids below are the ones found in the 'pointer' field + # this can get typically called with + # 'slice' 'user' 'researcher' slice_id user_ids + # 'authority' 'user' 'pi' authority_id user_ids + def update_relation (self, subject_type, target_type, relation_name, subject_id, link_ids): + pass + ######################################## ########## aggregate oriented ########################################