Archives Sept. 1, 2011
We should now have up to OpenGL 4.2 supported in PyOpenGL bzr head, should someone have a desire to play with it and hardware/drivers capable of running it.
Since there is a 4-year old still-open ticket on this, thought I'd provide a simple recipe for getting a coverage report on your Django project:
pip install coverage
coverage run path/to/django-admin.py test myapp
coverage report -m --include="*myapp*"
coverage erase # clean up afterward/between runs
Sure, it's not --with-coverage, but ...
The choices_for_FOO hook would allow a model to restrict the choices for a given field based on e.g. another field (common requirement where you have row-level authorization and need to restrict choices to the set of records accessible by the auth-row attached to this object). It's currently a patch attached to a 5 ...
Experimented with replacing a few urllib2 calls in a product today with the requests library. Yes, requests really is nice (sat down and read through the code last night). One thing that's not obvious from the docs, to do digest auth, you pass (username, password, 'digest') as the auth parameter. There are a number ...