from pylons.controllers.util import abort
"""
Returns object, or raises a 404 Not Found is object is not in db.
- Uses elixir-specific `get_by()` convenience function (see elixir source:
+ Uses elixir-specific `get_by()` convenience function (see elixir source:
http://elixir.ematia.de/trac/browser/elixir/trunk/elixir/entity.py#L1082)
Example: user = get_object_or_404(model.User, id = 1)
"""