Class t.w.w.m.ListModel(Wrapper):

Part of twisted.web.woven.model View Source View In Hierarchy

Known subclasses: twisted.web.woven.model.StringModel

I wrap a Python list and allow it to interact with the Woven models and submodels.
Method dataWillChange 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 __len__ Undocumented
Method __getitem__ Undocumented
Method __setitem__ Undocumented
Method __repr__ Undocumented

Inherited from Wrapper:

Method __init__ Undocumented

Inherited from Model (via Wrapper):

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 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
def dataWillChange(self): (source)
Undocumented
def getSubmodel(self, request=None, name=None): (source)
Get the submodel `name' of this model. If I ever return a Deferred, then I ought to check for cached values (created by setSubmodel) before doing a regular Deferred lookup.
def setSubmodel(self, request=None, name=None, value=None): (source)
Set a submodel on this model. If getSubmodel or lookupSubmodel ever return a Deferred, I ought to set this in a place that lookupSubmodel/getSubmodel know about, so they can use it as a cache.
def __len__(self): (source)
Undocumented
def __getitem__(self, name): (source)
Undocumented
def __setitem__(self, name, value): (source)
Undocumented
def __repr__(self): (source)
Undocumented
API Documentation for twisted, generated by pydoctor.