xoslib second prototype
diff --git a/planetstack/core/xoslib/objects/slices.py b/planetstack/core/xoslib/objects/slices.py
index 139597f..04a04f2 100644
--- a/planetstack/core/xoslib/objects/slices.py
+++ b/planetstack/core/xoslib/objects/slices.py
@@ -1,2 +1,21 @@
+from core.models import Slice
+from xosbase import XOSBase
+from django.forms.models import model_to_dict
+
+class XOSSlices(XOSBase):
+ name = "slices"
+
+ def __init__(self):
+ super(XOSSlices, self).__init__()
+
+ def get(self):
+ allSlices = list(Slice.objects.all())
+
+ result = []
+ for slice in allSlices:
+ d = model_to_dict(slice)
+ result.append(self.ensure_serializable(d))
+
+ return result