omero.gateway.scripts package¶
Submodules¶
omero.gateway.scripts.dbhelpers module¶
-
exception
omero.gateway.scripts.dbhelpers.
BadGroupPermissionsException
¶ Bases:
exceptions.Exception
-
class
omero.gateway.scripts.dbhelpers.
DatasetEntry
(name, project, description=None, callback=None)¶ Bases:
omero.gateway.scripts.dbhelpers.ObjectEntry
-
create
()¶
-
description_check
(d)¶
-
get
(client, forceproj=None)¶
-
-
class
omero.gateway.scripts.dbhelpers.
ImageEntry
(name, filename, dataset, callback=None)¶ Bases:
omero.gateway.scripts.dbhelpers.ObjectEntry
-
_createWithoutPixels
(client, dataset)¶
-
create
()¶
-
get
(client, forceds=None)¶
-
-
class
omero.gateway.scripts.dbhelpers.
ObjectEntry
¶ Bases:
object
-
class
omero.gateway.scripts.dbhelpers.
ProjectEntry
(name, owner, create_group=False, group_perms=None)¶ Bases:
omero.gateway.scripts.dbhelpers.ObjectEntry
-
create
(client=None)¶
-
get
(client=None, fromCreate=False)¶
-
-
class
omero.gateway.scripts.dbhelpers.
UserEntry
(name, passwd, firstname='', middlename='', lastname='', email='', ldap=False, groupname=None, groupperms=None, groupowner=False, admin=False)¶ Bases:
object
-
static
_getOrCreateGroup
(client, groupname, ldap=False, groupperms=None)¶
-
static
addGroupToUser
(client, groupname, groupperms=None)¶
-
static
assert_group_perms
(client, group, groupperms)¶ If expected permissions have been set, then this will change group permissions to those requested if not already equal. If groupperms are None, then nothing will be checked.
-
changePassword
(client, password, rootpass)¶
-
static
check_group_perms
(client, group, groupperms)¶ If expected permissions have been set, then this will enforce equality. If groupperms are None, then nothing will be checked.
-
create
(client, password)¶
-
fullname
()¶
-
login
(groupname=None)¶
-
static
setGroupForSession
(client, groupname, groupperms=None)¶
-
static
-
omero.gateway.scripts.dbhelpers.
assertCommentAnnotation
(object, ns, value)¶
-
omero.gateway.scripts.dbhelpers.
bootstrap
(onlyUsers=False, skipImages=True)¶
-
omero.gateway.scripts.dbhelpers.
cleanup
()¶
-
omero.gateway.scripts.dbhelpers.
getDataset
(client, alias, forceproj=None)¶
-
omero.gateway.scripts.dbhelpers.
getImage
(client, alias, forceds=None, autocreate=False)¶
-
omero.gateway.scripts.dbhelpers.
getProject
(client, alias)¶
-
omero.gateway.scripts.dbhelpers.
login
(alias, pw=None, groupname=None)¶
-
omero.gateway.scripts.dbhelpers.
loginAsPublic
()¶
-
omero.gateway.scripts.dbhelpers.
loginAsRoot
()¶
-
omero.gateway.scripts.dbhelpers.
refreshConfig
()¶
omero.gateway.scripts.testdb_create module¶
Library for gateway tests
Copyright 2009 Glencoe Software, Inc. All rights reserved. Use is subject to license terms supplied in LICENSE.txt
-
class
omero.gateway.scripts.testdb_create.
TestDBHelper
¶ Bases:
object
-
createPDTree
(project=None, dataset=None)¶ Create/link a Project and/or Dataset (link them if both are specified) Existing objects can be parsed as an omero.model object(s) or blitz Wrapper objects. Otherwise new objects will be created with name str(project) or str(dataset). If project OR dataset is specified, the ProjectWrapper or DatasetWrapper is returned. If both project and dataset are specified, they will be linked and the PD-link is returned as a BlitzObjectWrapper.
- @param project: omero.model.ProjectDatasetLinkI
- OR omero.gateway.ProjectWrapper or name (string)
- @param dataset: omero.model.DatasetI
- OR omero.gateway.DatasetWrapper or name (string)
-
createTestFile
(parentpath, filename, content)¶ Creates an OriginalFile with the supplied content
@param parentpath: Parent directory of the file @param filename: Filename @param content: String containing the content of the file @return: OriginalFileWrapper
-
createTestImage
(imageName='testImage', dataset=None, sizeX=16, sizeY=16, sizeZ=1, sizeC=1, sizeT=1)¶ Creates a test image of the required dimensions, where each pixel value is set to the average value of x & y. If dataset (obj or name) is specified, will be linked to image. If project (obj or name) is specified, will be created/linked to dataset (if dataset not None)
- @param dataset: omero.model.DatasetI
- OR DatasetWrapper OR dataset ID
-
doConnect
()¶
-
doDisconnect
()¶
-
doLogin
(user=None, groupname=None)¶
-
get32FloatTestImage
(dataset=None, autocreate=False)¶
-
getBadTestImage
(dataset=None, autocreate=False)¶
-
getBigTestImage
(dataset=None, autocreate=False)¶
-
getTestDataset
(project=None)¶
-
getTestDataset2
(project=None)¶
-
getTestImage
(dataset=None, autocreate=False)¶
-
getTestImage2
(dataset=None)¶
-
getTestProject
()¶
-
getTestProject2
()¶
-
getTinyTestImage
(dataset=None, autocreate=False)¶
-
getTinyTestImage2
(dataset=None, autocreate=False)¶
-
getTinyTestImage3
(dataset=None, autocreate=False)¶
-
loginAsAdmin
()¶
-
loginAsAuthor
()¶
-
loginAsPublic
()¶
-
loginAsUser
()¶
-
prepTestDB
(onlyUsers=False, skipImages=True)¶
-
setUp
(skipTestDB=False, skipTestImages=True)¶
-
tearDown
()¶
-
waitOnCmd
(client, handle)¶
-