? .DS_Store ? _trial_temp ? banishcache.diff ? bugfixes.patch ? javascriptcleanup.path Index: model.py =================================================================== RCS file: /cvs/Twisted/twisted/web/woven/model.py,v retrieving revision 1.51 diff -u -r1.51 model.py --- model.py 6 Oct 2003 15:10:17 -0000 1.51 +++ model.py 7 Oct 2003 21:10:57 -0000 @@ -37,12 +37,21 @@ return adapted -class Model: +class Model(object): """ A Model which keeps track of views which are looking at it in order to notify them when the model changes. """ __implements__ = interfaces.IModel + + def _dummyGet(self): + print "returning empty dict" + return {} + + def _dummySet(self, new): + print "set submodel to", new + + submodels = property(_dummyGet, _dummySet) def __init__(self, *args, **kwargs): if len(args):