'Utility method for unjellying one object into another.
This automates the handling of backreferences.'

def unjellyInto(self, obj, loc, ao):

    o = self.unjellyAO(ao)
    obj[loc] = o
    if isinstance(o, crefutil.NotKnown):
        o.addDependant(obj, loc)
    return o
