Package omero :: Package gateway :: Module utils :: Class ServiceOptsDict
[hide private]
[frames] | no frames]

Class ServiceOptsDict

source code


Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, *args, **kwargs) source code
new empty dictionary

__init__(self, data=None, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__repr__(self)
repr(x)
source code
 
__setitem__(self, key, item)
Set key to value as string.
source code
 
__getitem__(self, key)
Return the value for key if key is in the dictionary.
source code
 
__delitem__(self, key)
Remove dict[key] from dict.
source code
a shallow copy of D
copy(self)
Returns a copy of this object.
source code
None
clear(self)
Remove all items from the dictionary.
source code
D[k] if k in D, else d
get(self, key, default=None)
Return the value for key if key is in the dictionary, else default.
source code
 
set(self, key, value)
Set key to value as string.
source code
 
getOmeroGroup(self) source code
 
setOmeroGroup(self, value=None) source code
 
getOmeroUser(self) source code
 
setOmeroUser(self, value=None) source code
 
getOmeroShare(self) source code
 
setOmeroShare(self, value=None) source code
 
_testItem(self, item) source code

Inherited from dict: __cmp__, __contains__, __eq__, __ge__, __getattribute__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __sizeof__, fromkeys, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, *args, **kwargs)

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__init__(self, data=None, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__setitem__(self, key, item)
(Index assignment operator)

source code 

Set key to value as string.

Overrides: dict.__setitem__

__getitem__(self, key)
(Indexing operator)

source code 

Return the value for key if key is in the dictionary. Raises a KeyError if key is not in the map.

Overrides: dict.__getitem__

__delitem__(self, key)
(Index deletion operator)

source code 

Remove dict[key] from dict. Raises a KeyError if key is not in the map.

Overrides: dict.__delitem__

copy(self)

source code 

Returns a copy of this object.

Returns: a shallow copy of D
Overrides: dict.copy

clear(self)

source code 

Remove all items from the dictionary.

Returns: None
Overrides: dict.clear

get(self, key, default=None)

source code 

Return the value for key if key is in the dictionary, else default. If default is not given, it defaults to None, so that this method never raises a KeyError.

Returns: D[k] if k in D, else d
Overrides: dict.get