From: Tony Mack Date: Wed, 20 Feb 2013 18:10:19 +0000 (-0500) Subject: Fix bug X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bd74602accd625735a89e39417a7feeefd52909d;p=plcapi.git Fix bug --- diff --git a/PLC/Methods/GetPersons.py b/PLC/Methods/GetPersons.py index 6725f33a..20427e36 100644 --- a/PLC/Methods/GetPersons.py +++ b/PLC/Methods/GetPersons.py @@ -42,4 +42,4 @@ class GetPersons(Method): #if isinstance(self.caller, Person) and \ # 'admin' not in self.caller['roles']: # persons = filter(self.caller.can_view, persons) - return persons.dicts() + return persons diff --git a/PLC/Methods/GetSites.py b/PLC/Methods/GetSites.py index 138c46e9..2ca1b440 100644 --- a/PLC/Methods/GetSites.py +++ b/PLC/Methods/GetSites.py @@ -29,4 +29,4 @@ class GetSites(Method): def call(self, auth, site_filter = None, return_fields = None): sites = Sites(self.api, site_filter) - return sites.dicts() + return sites