have ResolveSlices return 'expires' too
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 27 Jun 2013 13:06:57 +0000 (15:06 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 27 Jun 2013 13:06:57 +0000 (15:06 +0200)
PLC/Methods/ResolveSlices.py

index 8e0d959..6eec238 100644 (file)
@@ -7,8 +7,8 @@ from PLC.Slices import Slice, Slices
 class ResolveSlices(Method):
     """
     This method is similar to GetSlices, except that (1) the returned
-    columns are restricted to 'name' and 'slice_id', and (2) it
-    returns expired slices too. This method is designed to help
+    columns are restricted to 'name', 'slice_id' and 'expires', and
+    (2) it returns expired slices too. This method is designed to help
     third-party software solve slice names from their slice_id
     (e.g. PlanetFlow Central). For this reason it is accessible with
     anonymous authentication (among others).
@@ -19,6 +19,7 @@ class ResolveSlices(Method):
     applicable_fields = {
         'slice_id' : Slice.fields['slice_id'],
         'name' : Slice.fields['name'],
+        'expires': Slice.fields['expires'],
         }
 
     accepts = [