We've hacked a way to move datasets between groups using the command line, but Jason Swedlow mentioned it would be worth asking if there was a better way to do this. Currently I've done it via command line as below. The grand idea behind this is moving a dataset from a private group to a public one so that we can display it to the public re the public user.
Manda @ Griffith
- Code: Select all
def chgrpCol(dsId,publicGroup,session):
theAdminofGroup=cleanQuery(session)
publicGroup=cleanQuery(publicGroup)
dsId=cleanQuery(dsId)
chgrpline=string.join([omerohomedir,"/bin/omero -s localhost -k ",session," chgrp '",publicGroup,"' /Dataset:",dsId ],"")
a=subprocess.call([chgrpline],shell=True)
logger.info(string.join(["CHGRPCOL - The collection ",str(dsId)," has been moved to the group ",str( publicGroup) , " using the line -",str(chgrpline),"- with results",str(a)],""))
return string.join(["CHGRPCOL - The collection ",str(dsId)," has been moved to the group ", str(publicGroup)],"")