gem/oq-engine — pull request #1405 by micheles (2014-04-06 09:01:40+00:00)
Title: Made the hazard curve getter consistent with the others

Now also the hazard curve getter makes use of the assets_gen method used for the ground motion getter.
The tests pass: https://ci.openquake.org/job/zdevel_oq-engine/355/

This is a preliminary refactoring; the final goal is to move the assets -> site association query from the workers
to the controller and to solve the issue reported in https://bugs.launchpad.net/oq-engine/+bug/1288663