[vreg] object_by_id should not have been deprecated. Fix facets.
it was *designed* to be able to force an object retreival when selection
is potentially not possible.
For instance using select instead of object_by_id in get_facet totally
breaks the implementation since in get_facet we've not context result
set, and we ends up with a NoSelectableObject exception.
from logilab.common.deprecation import class_renamed, class_moved
from cubicweb.server import hook
SystemHook = class_renamed('SystemHook', hook.Hook)
PropagateSubjectRelationHook = class_renamed('PropagateSubjectRelationHook',
hook.PropagateSubjectRelationHook)
PropagateSubjectRelationAddHook = class_renamed('PropagateSubjectRelationAddHook',
hook.PropagateSubjectRelationAddHook)
PropagateSubjectRelationDelHook = class_renamed('PropagateSubjectRelationDelHook',
hook.PropagateSubjectRelationDelHook)
Hook = class_moved(hook.Hook)