renamed SFA_AM_API_VERSION to SFA_AGGREGATE_API_VERSION
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 22 Nov 2011 20:50:03 +0000 (15:50 -0500)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 22 Nov 2011 20:50:03 +0000 (15:50 -0500)
config/default_config.xml
sfa/server/sfaapi.py

index 6d052fc..0edfd48 100644 (file)
@@ -33,7 +33,7 @@ Thierry Parmentelat
           <description>The human readable name for this interface.</description>
         </variable>
 
-        <variable id="am_api_version" type="string">
+        <variable id="aggregate_api_version" type="string">
           <name>Aggregate Manager API Version</name>
           <value>1</value>
           <description>The Aggregate API version</description>
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)