Dear Ian
I just tried this on windows with waitforit rev 6599 (as well as ver 0.2
from pypi) and I'm getting a unterminated string error at line 52:
(sorry I've not tested this on my linux box I will later and let you
know if I get the same error)
dummy={"
Jose
> -------- Original Message --------
> Subject: Re: [Paste] ANN: WaitForIt
> From: Ian Bicking <[EMAIL PROTECTED]>
> Date: Sun, May 27, 2007 10:46 am
> To: [EMAIL PROTECTED]
> Cc: Python Paste Project <[email protected]>
>
> [EMAIL PROTECTED] wrote:
> > This looks very cool Ian, but I think I must be doing something wrong.
> > I tried the testapp and it worked just as expected, so then I tried to
> > use waitforit with pylons, so I made a new pylons app and added this to
> > my test.ini file:
> >
> > [app:main]
> > use = config:development.ini
> > filter-with = slow
> >
> > [filter:slow]
> > use=egg:waitforit
> > time_limit=2
> > poll_time=1
> >
> > When I run the app with this controller:
> >
> > class MainController(BaseController):
> >
> >
> > def long(self):
> > progress = request.environ.get('waitforit.progress', {})
> > start = time.time()
> > total = 10
> > count = 1
> > while time.time()-start <= total:
> > progress['message'] = 'hi joe you are at count %s' % count
> > count += 1
> > time.sleep(1)
> > return 'I was started at %s and it is now %s' % (start,
> > time.time())
> >
> > and run main/long after about 2 seconds i get:
> > Please wait...
> >
> > The page you have requested is taking a while to generate...
> >
> > There is no pending request with the id None
> >
> > And then nothing happends. After about 10 sec if I reload the page
> > myself I get the the correct page. Am I doing something worng?
>
> Are you using 0.1? I had a bug in my logic and how I was using cookies.
> If you made more than one request via the browser, and they both timed
> out, cookies would be overridden and it wouldn't work. In the trunk I
> switched to tracking via the query string, which should work better.
>
> I still have to check Accept as well, as that will help avoid problems
> with images and whatnot where you can't send an HTML wait page.
>
>
> --
> Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
> | Write code, do good | http://topp.openplans.org/careers
_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users