gem/oq-engine — pull request #1063 by matley (2013-02-25 16:20:57+00:00)
Title: 1132708 and 1132731

Addresses https://bugs.launchpad.net/openquake/+bug/1132708 and https://bugs.launchpad.net/openquake/+bug/1132731

For a clean diff, https://github.com/gem/oq-engine/pull/1057 should land first