MiddleKit.Core.ModelUser | index /usr/local/share/webware/MiddleKit/Core/ModelUser.py

Modules

``

sys |  |  |

Classes

``

ModelUser

class ModelUser

``

Methods defined here:

__init__(self)

installMixIns(self, verbose=0)

installMixInsForModule(self, module, verbose=0)

model(self)

modelWasSet(self)
  `Invoked by setModel() or readModelFileNamed() as a hook for taking action on this event. Invokes installMixIns().`

modulesForClass(self, pyClass, modules=None)
  `Returns a list of modules for pyClass, going up the
  chain of ancestor classes, stopping short before
  ModelUser. Utility method for installMixIns.`

readModelFileNamed(self, filename, modelClass=None, **keywords)

setModel(self, model)

setting(self, name, default=<class MiscUtils.NoDefault at 0x832da1c>)
  `Returns the given setting which is actually just taken from
  the model.`

warning(self, msg)
  `Invoked by self for any kind of appropriate warning
  that doesn't warrant an exception being
  thrown. Preferably, this should be invoked from a
  method that is invoked when the "bad event"
  occurs. This allows subclasses to override that method
  and potentially customize the behavior, including
  providing more debugging information.
  This implementation writes the msg to stdout.`