Error in action handling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-timeline-django |
Fix Released
|
Critical
|
Robert Collins |
Bug Description
I tried timeline-django 0.0.1 with django 1.3.3, my branch to test this is up at lp:~lifeless/python-oops-tools/timeline
Doing that introduced an OOPS
AssertionError: post action called without pre action.
File "/home/
app(environ, oops_start_
File "/home/
return app(environ, start_response)
File "/home/
signals.
File "/home/
response = receiver(
File "/home/
self.
File "/home/
raise AssertionError(
Related branches
- James Westby (community): Approve
-
Diff: 473 lines (+177/-121)11 files modified.bzrignore (+3/-0)
NEWS (+23/-0)
README (+66/-46)
setup.py (+3/-2)
timeline_django/__init__.py (+13/-0)
timeline_django/hooks.py (+3/-0)
timeline_django/setup.py (+16/-8)
timeline_django/tests/__init__.py (+1/-1)
timeline_django/tests/test_hooks.py (+2/-6)
timeline_django/tests/test_wsgi.py (+20/-30)
timeline_django/wsgi.py (+27/-28)
Changed in python-timeline-django: | |
status: | New → Fix Released |
importance: | Undecided → Critical |
assignee: | nobody → Robert Collins (lifeless) |
To reproduce, grab lp:python-oops-tools application, config, oops_on_ status= ['500'] , start_timeout= 500) simple_ server import make_server '127.0. 0.1', 8080, application) .serve_ forever( )
make
bin/buildout
bin/django syncdb
edit bin/oopstools.wsgi and make the end be
application = make_app(
soft_
from wsgiref.
make_server(
Apply this patch: oops/models. py' oops/models. py 2012-07-27 04:27:53 +0000 oops/models. py 2012-09-14 10:45:28 +0000
=== modified file 'src/oopstools/
--- src/oopstools/
+++ src/oopstools/
@@ -554,6 +554,7 @@
@readproperty
self. parsed_ oops = _get_oops( self.pathname)
def parsed_oops(self):
+ import time;time.sleep(1)
return self.parsed_oops
And finally run
bin/py bin.oopstools.wsgi
and hit any existing oops. If you don't have one, delete the 404.html template and hit a missing page. That will generate an oops (and you'll need amp2disk running to nab it and load it), then you can visit the oops, the sleep will kick in and the race or whatever it is will show up.