Use getFromKeyFields instead of getForFields where possible
Lookup by key_name is a lot faster than doing a query, so if possible
the use of getFromKeyFields is preferred over getForFields.
Patch by: Sverre Rabbelier
#!/bin/sh
NOSE_WITH_DOCTEST=t
export NOSE_WITH_DOCTEST
NOSE_DOCTEST_EXTENSION=txt
export NOSE_DOCTEST_EXTENSION
#NOSE_DETAILED_ERRORS=t
#export NOSE_DETAILED_ERRORS
nosetests $*