The store is a file-based repository of user sessions. By default,
stores use $HOME/omero/sessions as their repository path.
|
__init__(self,
dir=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
add(self,
host,
name,
id,
props)
Stores a file containing the properties at REPO/host/name/id |
source code
|
|
|
conflicts(self,
host,
name,
id,
new_props,
ignore_nulls=False)
Compares if the passed properties are compatible with with those for
the host, name, id tuple |
source code
|
|
|
remove(self,
host,
name,
uuid)
Removes the given session file from the store |
source code
|
|
|
get(self,
host,
name,
uuid)
Returns the properties stored in the given session file |
source code
|
|
|
|
|
set_current(self,
host,
name=None,
uuid=None)
Sets the current session, user, and host files These are used as
defaults by other methods. |
source code
|
|
|
|
|
last_host(self)
Prints either the last saved host (see get_current()) or
"localhost" |
source code
|
|
|
|
|
count(self,
host=None,
name=None)
Returns the sum of all files visited by walk() |
source code
|
|
|
walk(self,
func,
host=None,
name=None,
sess=None)
Applies func to all host, name, and session path-objects. |
source code
|
|
|
|
|
create(self,
name,
pasw,
props,
new=True)
Creates a new omero.client object, and returns: (cilent, session_id,
timeToIdle, timeToLive) |
source code
|
|
|
clear(self,
host=None,
name=None,
sess=None)
Walks through all sessions and calls killSession. |
source code
|
|
|
host_file(self)
Returns the path-object which stores the last active host |
source code
|
|
|
user_file(self,
host)
Returns the path-object which stores the last active user |
source code
|
|
|
sess_file(self,
host,
user)
Returns the path-object which stores the last active session |
source code
|
|
|
non_dot(self,
d)
Only returns the files (not directories) contained in d that don't
start with a dot |
source code
|
|
|
props(self,
f)
Parses the path-object into properties |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|