[Twisted-Python] Woven and submodelling through deferreds

Syver Enstad syver-en at online.no
Wed Aug 6 17:42:33 MDT 2003


Glyph Lefkowitz <glyph at twistedmatrix.com> writes:

> On Wednesday, August 6, 2003, at 04:47 AM, Syver Enstad wrote:
> 
> > I found a bug by the way:
> 
> Enter it into the bugtracker, please?
> http://www.twistedmatrix.com/bugs

Done.

Should this work?

In some template:
    <tr>
        <td model="deferredModel/One" view="Text">List item here</td>
        <td model="deferredModel/Two" view="Text">List item here</td>
    </tr>

class MyModel(MethodModel):
    def wmfactory_deferredModel(self, request):
        .....
        return deferred # promises to be a dictionary


As it is now this fails in lookupSubmodel / getSubmodel, because the
DeferredWrapper has not got a submodel named One.



-- 

Vennlig hilsen 

Syver Enstad





More information about the Twisted-Python mailing list