[Twisted-Python] Woven and nested database queries

Tommi Virtanen tv at tv.debian.net
Fri Nov 28 07:12:47 MST 2003


Wenderson Teixeira wrote:
> 	I'm new to the list and I'm just starting with Twisted and Woven.
> 	I think the framework is great, but I'm having some problems.
> 	When I try to make two nested <div>, both with independent queries,
> 	I get na error, the solution I've found is to create another model
> 	called "loaddata", which does nothing, except call the queries.
> 	If anyone knows a better way, I'd like to hear, I've searched all
> 	over the Internet, and found nothing that could help.

Your problem is most likely Deferred models of which you need a 
submodel. Woven is buggy.

>                     <div model="a">
>                         <div view="Text"/>
>                         <p>B</p>
>                         <ul model="b" view="List">
>                             <li pattern="listItem" view="Text" />
>                         </ul>

Try <ul model="./b" view="List">, that should work.





More information about the Twisted-Python mailing list