Great! Will give the queued task a go. Not quite sure how to send the feedback over my SOAP pipeline though. But I'll come up with something.
Thanks and cheers! Am Donnerstag, 20. Oktober 2016 19:44:12 UTC+2 schrieb Dave S: > > > > On Thursday, October 20, 2016 at 7:38:16 AM UTC-7, Oliver Holmes wrote: >> >> I am using Web2Py on a RaspberryPI as a SOAP service provider and a very >> rudimentary configuration is possible through some views. User interaction >> is via a client application and users are mostly unaware that there is some >> server running in one of their shelves. I have just recently implemented a >> procedure to update a server via the client. It stores the current >> web2py-app then exports the db as csv, updates any files that need >> updating, clears all tables and reimports the csv. This works fine, but may >> result in timeout messages on the client side, as tests have shown. >> Besides, for the user there is no way of knowing how far the procedure has >> gone, and how much longer the wait will be. Is there a possibility to give >> feedback to the client? Any kind of message would be great just numeric to >> fill a progress indicator or even text to display progress messages? >> >> Regards, >> Oliver Holmes >> > > > Here's what I would do: run the update as a queued task. Have a > "progress" table in the db; it only needs to be 1 row. [Alternate idea; > store progress in a file in the filesystem; I don't think you can update > the session from the Scheduler environment, BICBW]. The page that starts > the update goes to a status page which displays the current progress value > and has refresh set to 10 seconds or such, or it has a javascript loop that > fires an AJAX request off and sleeps for 10 seconds. > > There have been some progress bars discussed here, and that should be > searchable in the forum archives, but I think stupid.css (used in the > current Welcome app) has that built-in; check out Massiomo's examples at > <URL:https://github.com/mdipierro/stupid.css>. (about halfway down on the > examples page) > > /dps > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

