[Twisted-web] Woven Input Problem cont.

twisted-web@twistedmatrix.com twisted-web@twistedmatrix.com
Tue, 16 Dec 2003 9:35:27 +0200


> 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.


1. Thank you for your answer, where do i need to cache the data of setData()?
2. If i want to use getData() to retrieve data from a remote server, present it on an input field and then change it and submit
using setData() am i expected to encounter the same problem? how can i avoid it?
dp