X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetSites.py;fp=PLC%2FMethods%2FGetSites.py;h=1a1b902ca878aa6346dc6fa690c7a0a394a0b5f0;hb=de3dbf467250b4cca3b1677009d5380f0f629b0e;hp=cb9847a90e322aa51d1633c945e243b949687b97;hpb=050b92a13fee09756f31d658df22d1e5197fa71f;p=plcapi.git diff --git a/PLC/Methods/GetSites.py b/PLC/Methods/GetSites.py index cb9847a..1a1b902 100644 --- a/PLC/Methods/GetSites.py +++ b/PLC/Methods/GetSites.py @@ -11,9 +11,6 @@ class GetSites(Method): site_id_list is specified, only the specified sites will be queried. - If return_fields is specified, only the specified fields will be - returned, if set. Otherwise, the default set of fields returned is: - """ roles = ['admin', 'pi', 'user', 'tech'] @@ -28,6 +25,7 @@ class GetSites(Method): event_type = 'Get' object_type = 'Site' + object_ids = [] def __init__(self, *args, **kwds): Method.__init__(self, *args, **kwds) @@ -38,6 +36,9 @@ class GetSites(Method): # Get site information sites = Sites(self.api, site_id_or_login_base_list) + + # get id of objects affected by this call + self.object_ids = sites.keys() # turn each site into a real dict. sites = [dict(site) for site in sites.values()]