Copy open context manager example from Pyramid 1.5 scaffold.