[Twisted-web] Woven Input Problem cont.

Donovan Preston twisted-web@twistedmatrix.com
Mon, 15 Dec 2003 18:24:45 -0500


On Dec 15, 2003, at 8:14 AM, <orya@bgumail.bgu.ac.il> wrote:

> sorry,
>
> rest of scenario:
> <span model="foo" view ="Widget">
>   <span  model="0" view ="Text"></span>
> </span>
>
> where foo returns an instance of "0" and "0" has a getData() method, 
> which returns data from remote http server (returning a Deffered)
>
> all this leads to inf. loop of the getData()
> how do i get out of it??????????

You need to cache the value passed to setData so that a call to getData 
immediately after it returns that same value.

dp