Skip to content

Instantly share code, notes, and snippets.

@ximenesuk
ximenesuk / makeUsers.py
Created October 31, 2012 10:24
Create a set of numbered users and groups for testing
from omero.gateway import BlitzGateway
import omero
from omero.rtypes import rstring
from omero_model_ProjectI import ProjectI
from omero_model_DatasetI import DatasetI
from omero_model_ProjectDatasetLinkI import ProjectDatasetLinkI
from omero_model_ExperimenterI import ExperimenterI
from omero_model_ExperimenterGroupI import ExperimenterGroupI
from omero_model_PermissionsI import PermissionsI
from omero_model_TagAnnotationI import TagAnnotationI
@ximenesuk
ximenesuk / dbPrepForMovies.py
Last active October 6, 2015 19:17
Create a set of realistic users, groups, projects, datasets and tags for movie making.
from omero.gateway import BlitzGateway
import omero
from omero.rtypes import rstring
from omero_model_ProjectI import ProjectI
from omero_model_DatasetI import DatasetI
from omero_model_ProjectDatasetLinkI import ProjectDatasetLinkI
from omero_model_ExperimenterI import ExperimenterI
from omero_model_ExperimenterGroupI import ExperimenterGroupI
from omero_model_PermissionsI import PermissionsI
from omero_model_TagAnnotationI import TagAnnotationI
@ximenesuk
ximenesuk / massUsersAndGroups.py
Created June 27, 2012 09:50
Script to add large numbers of Groups & Users
from omero.gateway import BlitzGateway
import omero
from omero.rtypes import rstring
from omero_model_ExperimenterI import ExperimenterI
from omero_model_ExperimenterGroupI import ExperimenterGroupI
from omero_model_PermissionsI import PermissionsI
####################################################
# Remember to set the correct host before running! #
####################################################