Codebase list sugar-toolkit-gtk3 / 286387b
Save As - return copied datastore object When a datastore object is copied, return the new object to the caller. James Cameron 6 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
469469 ds_object -- DSObject to copy
470470 mount_point -- mount point of the new datastore entry
471471
472 Returns:
473 new_ds_object -- DSObject copied
474
472475 """
473476 new_ds_object = ds_object.copy()
474477 new_ds_object.metadata['mountpoint'] = mount_point
489492
490493 write(new_ds_object)
491494
495 return new_ds_object
496
492497
493498 def get_unique_values(key):
494499 """Retrieve an array of unique values for a field.