From 51876e4ebb89edadd2ba2f2f92619a3bfd512008 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 19 Jan 2007 20:25:26 +0000 Subject: [PATCH] - added logging variable 'object_type' --- PLC/Methods/AddPersonToSite.py | 2 ++ PLC/Methods/AddSite.py | 2 ++ PLC/Methods/AddSiteAddress.py | 2 ++ PLC/Methods/DeletePersonFromSite.py | 2 ++ PLC/Methods/DeleteSite.py | 2 ++ PLC/Methods/UpdateSite.py | 2 ++ 6 files changed, 12 insertions(+) diff --git a/PLC/Methods/AddPersonToSite.py b/PLC/Methods/AddPersonToSite.py index 4cb786f..391a39a 100644 --- a/PLC/Methods/AddPersonToSite.py +++ b/PLC/Methods/AddPersonToSite.py @@ -26,6 +26,8 @@ class AddPersonToSite(Method): returns = Parameter(int, '1 if successful') + object_type = 'Site' + def call(self, auth, person_id_or_email, site_id_or_login_base): # Get account information persons = Persons(self.api, [person_id_or_email]) diff --git a/PLC/Methods/AddSite.py b/PLC/Methods/AddSite.py index 5f4c355..c58f5e5 100644 --- a/PLC/Methods/AddSite.py +++ b/PLC/Methods/AddSite.py @@ -29,6 +29,8 @@ class AddSite(Method): returns = Parameter(int, 'New site_id (> 0) if successful') + object_type = 'Site' + def call(self, auth, site_fields): site_fields = dict(filter(can_update, site_fields.items())) diff --git a/PLC/Methods/AddSiteAddress.py b/PLC/Methods/AddSiteAddress.py index 746cb0e..42fc027 100644 --- a/PLC/Methods/AddSiteAddress.py +++ b/PLC/Methods/AddSiteAddress.py @@ -32,6 +32,8 @@ class AddSiteAddress(Method): returns = Parameter(int, 'New address_id (> 0) if successful') + object_type = 'Site' + def call(self, auth, site_id_or_login_base, address_fields): address_fields = dict(filter(can_update, address_fields.items())) diff --git a/PLC/Methods/DeletePersonFromSite.py b/PLC/Methods/DeletePersonFromSite.py index 84ea0a9..0b7280c 100644 --- a/PLC/Methods/DeletePersonFromSite.py +++ b/PLC/Methods/DeletePersonFromSite.py @@ -25,6 +25,8 @@ class DeletePersonFromSite(Method): ] returns = Parameter(int, '1 if successful') + + object_type = 'Site' def call(self, auth, person_id_or_email, site_id_or_login_base): diff --git a/PLC/Methods/DeleteSite.py b/PLC/Methods/DeleteSite.py index 5a83221..af5dedd 100644 --- a/PLC/Methods/DeleteSite.py +++ b/PLC/Methods/DeleteSite.py @@ -27,6 +27,8 @@ class DeleteSite(Method): returns = Parameter(int, '1 if successful') + object_type = 'Site' + def call(self, auth, site_id_or_login_base): # Get account information diff --git a/PLC/Methods/UpdateSite.py b/PLC/Methods/UpdateSite.py index c9c40b7..bda0c04 100644 --- a/PLC/Methods/UpdateSite.py +++ b/PLC/Methods/UpdateSite.py @@ -33,6 +33,8 @@ class UpdateSite(Method): returns = Parameter(int, '1 if successful') + object_type = 'Site' + def call(self, auth, site_id_or_login_base, site_fields): site_fields = dict(filter(can_update, site_fields.items())) -- 2.43.0