From de3dbf467250b4cca3b1677009d5380f0f629b0e Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 19 Oct 2006 21:36:31 +0000 Subject: [PATCH] - updated valid_object_types, valid_event_types --- PLC/Methods/GetSites.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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()] -- 2.43.0