Removed custom timeslot used for senslab Rspec.
authorSandrine Avakian <sandrine.avakian@inria.fr>
Thu, 2 Aug 2012 13:05:58 +0000 (15:05 +0200)
committerSandrine Avakian <sandrine.avakian@inria.fr>
Thu, 2 Aug 2012 13:05:58 +0000 (15:05 +0200)
sfa/rspecs/elements/timeslot.py [deleted file]
sfa/rspecs/elements/versions/slabv1Timeslot.py [deleted file]
sfa/rspecs/versions/slabv1.py

diff --git a/sfa/rspecs/elements/timeslot.py b/sfa/rspecs/elements/timeslot.py
deleted file mode 100644 (file)
index 81b17b6..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-###########################################################################
-#    Copyright (C) 2012 by                                       
-#    <savakian@sfa2.grenoble.senslab.info>                                                             
-#
-# Copyright: See COPYING file that comes with this distribution
-#
-###########################################################################
-from sfa.rspecs.elements.element import Element
-
-class Timeslot(Element):
-    
-    fields = [
-        'date',
-        'start_time',
-        'timezone',
-        'duration'
-    ]        
diff --git a/sfa/rspecs/elements/versions/slabv1Timeslot.py b/sfa/rspecs/elements/versions/slabv1Timeslot.py
deleted file mode 100644 (file)
index 6f6b802..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-from sfa.rspecs.elements.element import Element
-from sfa.rspecs.elements.timeslot import Timeslot
-import sys
-
-class Slabv1Timeslot :
-    @staticmethod 
-    def get_slice_timeslot(xml, filter={}):
-        timeslot = None
-        print>>sys.stderr, "\r\n \r\n \t\t \t SLABV1TIMESLOT.pY >>>>>>>>>>>>>>>>>>>>>>>>>>>>> \t  get_slice_timeslot  "
-        xpath = '//default:timeslot | //timeslot' 
-        timeslot_elems = xml.xpath(xpath)  
-        print>>sys.stderr, "\r\n \r\n \t\t \t SLABV1TIMESLOT.pY >>>>>>>>>>>>>>>>>>>>>>>>>>>>> \t  get_slice_timeslot    timeslot_elems %s"%(timeslot_elems)
-        
-        for timeslot_elem in timeslot_elems:  
-            timeslot = Timeslot(timeslot_elem.attrib, timeslot_elem) 
-            print>>sys.stderr, "\r\n \r\n \t\t \t SLABV1TIMESLOT.pY >>>>>>>>>>>>>>>>>>>>>>>>>>>>> \t  get_slice_timeslot   timeslot  %s"%(timeslot)
-
-        return timeslot
\ No newline at end of file
index bba4484..32872ac 100644 (file)
@@ -6,7 +6,7 @@ import sys
 from sfa.rspecs.elements.versions.slabv1Lease import Slabv1Lease
 from sfa.rspecs.elements.versions.slabv1Node import Slabv1Node
 from sfa.rspecs.elements.versions.slabv1Sliver import Slabv1Sliver
-from sfa.rspecs.elements.versions.slabv1Timeslot import Slabv1Timeslot
+
 
 from sfa.rspecs.elements.versions.sfav1Lease import SFAv1Lease