Container of ConditionalAttributes for a stateful object.
Groups: |
|
---|
Methods
change_temporarily([enable_ca, disable_ca, ...]) | Temporarily enable/disable needed ca for computation | ||
clear(() -> None. Remove all items from D.) | |||
copy(*args, **kwargs) | Create a copy of a collection. | ||
disable(key) | Disable conditional attribute defined by key id | ||
enable(key[, value, missingok]) | Enable conditional attribute given in key | ||
fromkeys(...) | v defaults to None. | ||
get((k[,d]) -> D[k] if k in D, ...) | |||
has_key((k) -> True if D has a key k, else False) | |||
is_active(key) | Returns True if state key is known and is enabled | ||
is_enabled(key) | Returns True if state key is enabled | ||
is_set([key]) | If item (or any in the present or listed) was set | ||
items(() -> list of D’s (key, value) pairs, ...) | |||
iteritems(() -> an iterator over the (key, ...) | |||
iterkeys(() -> an iterator over the keys of D) | |||
itervalues(...) | |||
keys(() -> list of D’s keys) | |||
pop((k[,d]) -> v, ...) | If key is not found, d is returned if given, otherwise KeyError is raised | ||
popitem(() -> (k, v), ...) | 2-tuple; but raise KeyError if D is empty. | ||
reset([key]) | Reset the conditional attribute defined by key | ||
reset_changed_temporarily() | Reset to previousely stored set of enabled ca | ||
setdefault((k[,d]) -> D.get(k,d), ...) | |||
update(source[, copyvalues, memo]) |
|
||
values(() -> list of D’s values) | |||
viewitems(...) | |||
viewkeys(...) | |||
viewvalues(...) | |||
which_set() | Return list of keys which were set |
Initialize the conditional attributes of a derived class
Parameters: | items : dict
name : str
|
---|
Methods
change_temporarily([enable_ca, disable_ca, ...]) | Temporarily enable/disable needed ca for computation | ||
clear(() -> None. Remove all items from D.) | |||
copy(*args, **kwargs) | Create a copy of a collection. | ||
disable(key) | Disable conditional attribute defined by key id | ||
enable(key[, value, missingok]) | Enable conditional attribute given in key | ||
fromkeys(...) | v defaults to None. | ||
get((k[,d]) -> D[k] if k in D, ...) | |||
has_key((k) -> True if D has a key k, else False) | |||
is_active(key) | Returns True if state key is known and is enabled | ||
is_enabled(key) | Returns True if state key is enabled | ||
is_set([key]) | If item (or any in the present or listed) was set | ||
items(() -> list of D’s (key, value) pairs, ...) | |||
iteritems(() -> an iterator over the (key, ...) | |||
iterkeys(() -> an iterator over the keys of D) | |||
itervalues(...) | |||
keys(() -> list of D’s keys) | |||
pop((k[,d]) -> v, ...) | If key is not found, d is returned if given, otherwise KeyError is raised | ||
popitem(() -> (k, v), ...) | 2-tuple; but raise KeyError if D is empty. | ||
reset([key]) | Reset the conditional attribute defined by key | ||
reset_changed_temporarily() | Reset to previousely stored set of enabled ca | ||
setdefault((k[,d]) -> D.get(k,d), ...) | |||
update(source[, copyvalues, memo]) |
|
||
values(() -> list of D’s values) | |||
viewitems(...) | |||
viewkeys(...) | |||
viewvalues(...) | |||
which_set() | Return list of keys which were set |
Temporarily enable/disable needed ca for computation
Enable or disable ca which are enabled in other and listed in enable _ca. Use reset_enabled_temporarily to reset to previous state of enabled.
other can be a ClassWithCollections object or ConditionalAttributesCollection
Disable conditional attribute defined by key id
Enable conditional attribute given in key
Return list of enabled ca
Parameters: | nondefault : bool
invert : bool
|
---|
Returns True if state key is known and is enabled
Returns True if state key is enabled
Reset to previousely stored set of enabled ca