renamed SFA_AM_API_VERSION to SFA_AGGREGATE_API_VERSION
[sfa.git] / sfa / server / sfaapi.py
index b0e9330..845ccff 100644 (file)
@@ -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)