Changes

m
no edit summary
Line 44: Line 44:  
         print "Number of Objects: " + str(num_objects)
 
         print "Number of Objects: " + str(num_objects)
   −
         for i in xrange (0, num_objects, 1):
+
         for i in xrange (num_objects):
 
             print "File Path: " + ds_objects[i].get_file_path()
 
             print "File Path: " + ds_objects[i].get_file_path()
 
             print "Title: " + ds_objects[i].metadata['title']
 
             print "Title: " + ds_objects[i].metadata['title']
Line 77: Line 77:     
         #loop through and delete each datastore object found.  
 
         #loop through and delete each datastore object found.  
         for i in xrange (0, num_objects, 1):
+
         for i in xrange (num_objects):
 
             print 'DELETING ' + ds_objects[i].metadata['title'] + '...'
 
             print 'DELETING ' + ds_objects[i].metadata['title'] + '...'
 
             ds_objects[i].destroy()
 
             ds_objects[i].destroy()
Line 98: Line 98:     
         #loop through list of values and print them out.  
 
         #loop through list of values and print them out.  
         for i in xrange(0, len(unique_val_array), 1):
+
         for x in unique_val_array:
             print str(unique_val_array[i])
+
             print x
 
</pre>
 
</pre>
   Line 122: Line 122:  
         print '------------------------MOUNTS--------------------------------'
 
         print '------------------------MOUNTS--------------------------------'
 
         ds_mounts = datastore.mounts()
 
         ds_mounts = datastore.mounts()
         for i in xrange(0, len(ds_mounts), 1):
+
         for x in ds_mounts:
 
             print '---------MOUNT---------'
 
             print '---------MOUNT---------'
             print 'title: '+ ds_mounts[i]['title']
+
             print 'title: '+ x['title']
             print 'uri: '+ ds_mounts[i]['uri']
+
             print 'uri: '+ x['uri']
             print 'id: ' + ds_mounts[i]['id']
+
             print 'id: ' + x['id']
 
          
 
          
 
</pre>
 
</pre>
6

edits