Part of twisted.web.woven.model View Source View In Hierarchy
Known subclasses: twisted.web.woven.model.AttributeModel, twisted.web.woven.model.MethodModel, twisted.web.woven.model.Wrapper
Implements interfaces: twisted.web.woven.interfaces.IModelMethod | __init__ | Undocumented |
Method | __getstate__ | Undocumented |
Method | invalidateCache | Invalidate the cache for this object, so the next time |
Method | initialize | Hook for subclasses to initialize themselves without having to |
Method | addView | Add a view for the model to keep track of. |
Method | addSubview | Undocumented |
Method | removeView | Remove a view that the model no longer should keep track of. |
Method | setGetter | Undocumented |
Method | setSetter | Undocumented |
Method | notify | Notify all views that something was changed on me. |
Method | lookupSubmodel | Look up a full submodel name. I will split on `/' and call |
Method | submodelCheck | Check if a submodel name is allowed. Subclass me to implement a |
Method | submodelFactory | Undocumented |
Method | getSubmodel | Get the submodel `name' of this model. If I ever return a |
Method | setSubmodel | Set a submodel on this model. If getSubmodel or lookupSubmodel |
Method | dataWillChange | Undocumented |
Method | getData | Return the raw data contained by this Model object, if it is a |
Method | setData | Set the raw data referenced by this Model object, if it is a |
Look up a full submodel name. I will split on `/' and call getSubmodel
on each element in the 'path'.
Override me if you don't want 'traversing'-style lookup, but would rather like to look up a model based on the entire model name specified.
If you override me to return Deferreds, make sure I look up values in
a cache (created by setSubmodel
)
before doing a regular Deferred lookup.
setSubmodel
)
before doing a regular Deferred lookup.