class documentation
class NameFilterContext(DataContext): (source)
This context will only take variables that match a list of names. The name of the variable is compared to a list of names. If it matches one of them, it is allowed into the context. If it doesn't, it isn't allowed in the context.
Method | allows |
Return False if the name is not in our list of accepted names. |
Class Variable | names |
Undocumented |
Method | _names |
Undocumented |
Inherited from DataContext
:
Method | __contains__ |
Undocumented |
Method | __delitem__ |
Undocumented |
Method | __eq__ |
Don't allow objects of different classes to be equal. |
Method | __getitem__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Method | __ne__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __setitem__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | checkpoint |
Make a shallow copy of the context. |
Method | keys |
Returns the list of keys available in the context. |
Class Variable | name |
Undocumented |
Class Variable | subcontext |
Undocumented |
Inherited from ListenableMixin
(via DataContext
):
Method | deferred |
Context manager that sets defer_events to False |
Instance Variable | defer |
Undocumented |
Method | _add |
Defer this event. |
Method | _defer |
Undocumented |
Method | _defer |
Undocumented |
Method | _fire |
Fire an ItemsModifiedEvent. |
Class Variable | _deferred |
Undocumented |
Inherited from PersistableMixin
(via DataContext
):
Static Method | load |
Unpickle the context from a file |
Method | save |
Pickle the data context out to a file |