From: Tony Mack Date: Tue, 22 Nov 2011 20:50:03 +0000 (-0500) Subject: renamed SFA_AM_API_VERSION to SFA_AGGREGATE_API_VERSION X-Git-Tag: sfa-2.0-0~5^2~2 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=ac8ec612da42acae82de032057c39068f87c5409 renamed SFA_AM_API_VERSION to SFA_AGGREGATE_API_VERSION --- diff --git a/config/default_config.xml b/config/default_config.xml index 6d052fc9..0edfd488 100644 --- a/config/default_config.xml +++ b/config/default_config.xml @@ -33,7 +33,7 @@ Thierry Parmentelat The human readable name for this interface. - + Aggregate Manager API Version 1 The Aggregate API version diff --git a/sfa/server/sfaapi.py b/sfa/server/sfaapi.py index b0e93307..845ccffe 100644 --- a/sfa/server/sfaapi.py +++ b/sfa/server/sfaapi.py @@ -245,8 +245,8 @@ class SfaApi (XmlrpcApi): response """ if self.interface.lower() == 'aggregate': - if hasattr(self.config, 'SFA_AM_API_VERSION') and \ - self.config.SFA_AM_API_VERSION == "2": + if hasattr(self.config, 'SFA_AGGREGATE_API_VERSION') and \ + self.config.SFA_AGGREGATE_API_VERSION == "2": result = self.prepare_response_v2_am(result) return XmlrpcApi.prepare_response(self, result, method)