On Thursday 17 Oct 2002 10:04 pm, VanL wrote:
Yes, the time is spent in the pseudocode loop, not in the dtml. Sorry that wasn't clearer. However, the dtml waits for the loop to completely finish processing before it will display the result page. One of the things that I am curious about is a method to display the results as they become available. (As I noted in the original message, REQUEST.RESPONSE.write doesn't seem to be working for me in my current setup.
That makes sense if you are only calling RESPONSE.write once the pseudocode loop has finished. I think you need: for x in catalog.search(myquery): ob = myFunction(getObject(x)) RESPONSE.write(formatting_function(ob)) if you dont want to always display the whole list: for x in catalog.search(myquery)[start:end]: ob = myFunction(getObject(x)) RESPONSE.write(formatting_function(ob))