Method ParseJobsDetails now returns something. NT
[sfa.git] / sfa / senslab / OARrestapi.py
index c0d4df6..fa7e0f9 100644 (file)
@@ -225,9 +225,10 @@ class OARGETParser:
             
     def ParseTimezone(self) : 
         api_timestamp=self.raw_json['api_timestamp']
+        api_tz=self.raw_json['timezone']
         #readable_time = strftime("%Y-%m-%d %H:%M:%S", gmtime(float(api_timestamp))) 
 
-        return api_timestamp
+        return api_timestamp,api_tz
             
     def ParseJobs(self) :
         self.jobs_list = []
@@ -236,9 +237,10 @@ class OARGETParser:
     def ParseJobsTable(self) : 
         print "ParseJobsTable"
                 
-    def ParseJobsDetails (self): 
-       
+    def ParseJobsDetails (self):
+        # currently, this function is not used a lot, so i have no idea what be usefull to parse, returning the full json. NT
         print >>sys.stderr,"ParseJobsDetails %s " %(self.raw_json)
+        return self.raw_json
         
 
     def ParseJobsIds(self):
@@ -417,4 +419,4 @@ class OARGETParser:
             print>>sys.stderr, "\r\n OARGetParse __init__ : ERROR_REQUEST "    ,request
             
 
-  
\ No newline at end of file
+