[Twisted-Python] Woven using wrong model adapter

Donovan Preston dp at twistedmatrix.com
Tue May 27 11:33:26 EDT 2003

On Tuesday, May 27, 2003, at 12:54 AM, Christopher Armstrong wrote:

> On 2003.05.27 01:56, Donovan Preston wrote:
>> On Monday, May 26, 2003, at 10:02 PM, Kevin Turner wrote:
>>> Am I violating some unwritten contract here which says "a model 
>>> factory
>>> must always return models with the same interface"?
>> A model factory must always return an object with the same identity
>> within one request.
> With such a restriction, it seems there's no reason to *call* the model
> factory multiple times per request. Shouldn't this be prevented?

Correct. The wmfactory method isn't called more than once per request. 
It's getSubmodel that has this restriction, sorry.


More information about the Twisted-Python mailing list