Setting tag plcapi-5.4-2
[plcapi.git] / PLC / Methods / ResolveSlices.py
index 17a1290..6eec238 100644 (file)
@@ -1,5 +1,3 @@
-# $Id: ResolveSlices.py 12217 2009-02-24 17:28:54Z thierry $
-
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
 from PLC.Filter import Filter
@@ -9,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).
@@ -18,9 +16,10 @@ class ResolveSlices(Method):
 
     roles = ['admin', 'pi', 'user', 'tech', 'anonymous' ]
 
-    applicable_fields = { 
+    applicable_fields = {
         'slice_id' : Slice.fields['slice_id'],
         'name' : Slice.fields['name'],
+        'expires': Slice.fields['expires'],
         }
 
     accepts = [