<div class="gmail_quote">On Wed, Jul 8, 2009 at 4:59 PM, Daniel Yang <span dir="ltr">&lt;<a href="mailto:daniel.yang.zhenyu@gmail.com">daniel.yang.zhenyu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi people,</div><div><br></div><div>I am using storm orm(<span style="font-family: &#39;Lucida Grande&#39;; font-size: 12px;">twisted-integration<span style="font-family: arial; font-size: small;">) with Nevow.</span></span></div>

<div>There is a question that confuses me a lot:</div><div>(since storm orm(<span style="font-family: &#39;Lucida Grande&#39;; font-size: 12px;">twisted-integration<span style="font-family: arial; font-size: small;">) does db io in a <span style="font-family: verdana,arial,&#39;Bitstream Vera Sans&#39;,helvetica,sans-serif; font-size: 13px;">asynchronous way).</span></span></span></div>

<div>In a render function, before my data returns, what should I return for the render function?</div><div><br></div><div>does Nevow has something like server.NOT_DONE_YET?</div><div>or there is a &quot;deferred&quot; way to do this?</div>

<div></div></blockquote><div><br>Hi, <br><br>You can simply use a deferred in any render function as you would expect. Nevow deals with this for you.<br><br>def render_foo(self, ctx, data):<br></div></div>