From e6592741ebf5ce940ecf5cbbbab7c42211df6a26 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 2 Jun 2009 16:36:37 +0000 Subject: - The ``repoze.bfg.location.locate`` API was removed: it didn't do enough to be very helpful and had a misleading name. --- repoze/bfg/location.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'repoze/bfg/location.py') diff --git a/repoze/bfg/location.py b/repoze/bfg/location.py index 7e9d622c2..adb01d129 100644 --- a/repoze/bfg/location.py +++ b/repoze/bfg/location.py @@ -32,16 +32,6 @@ def inside(model1, model2): return False -def locate(model, parent, name=None): - """ - Directly set ``model`` 's ``__parent__`` attribute to the - ``parent`` object (also a model), and its ``__name__`` to the - supplied ``name`` argument, and return the model. - """ - model.__parent__ = parent - model.__name__ = name - return model - def lineage(model): """ Return a generator representing the model lineage. The generator -- cgit v1.2.3