Hey Kev,
I was going to do some code that touched the backend so I decided to merge your stuff in before I started. Success :) it is in master now. A few things:
- JASON: there are new views, so delete your ti db before running this new code so they are created
- the tests all pass, but one of them throws an exception before it passes. I tried to look at it, but couldn't easily figure out the problem.
test_14_backend (test.unit_tests.test_backend.TestBackend) ... Exception in thread Thread-15:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 522, in __bootstrap_inner
self.run()
File "/Users/hpiwowar/Documents/Projects/tiv2/total-impact-core/totalimpact/backend.py", line 150, in run
item = self.dequeue()
File "/Users/hpiwowar/Documents/Projects/tiv2/total-impact-core/totalimpact/backend.py", line 97, in dequeue
item = self.queue.dequeue()
File "/Users/hpiwowar/Documents/Projects/tiv2/total-impact-core/totalimpact/queue.py", line 207, in dequeue
default_settings.PROVIDERS)
File "/Users/hpiwowar/Documents/Projects/tiv2/total-impact-core/totalimpact/models.py", line 152, in get
raise LookupError
LookupError
passed
I think that's it. For some reason the merge didn't make the threads show the branches merge nicely in my git gui... but the code is in there and it works!
It is faster I think. It is still slower than I'd guess when we call it from the webapp though. Might be because I'm printing out lots of debug, might be because we are doing lots of api calls, not sure yet.
Heather