diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-06-02 16:36:37 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-06-02 16:36:37 +0000 |
| commit | e6592741ebf5ce940ecf5cbbbab7c42211df6a26 (patch) | |
| tree | a47bfb3a970fa9989e7de65918785f03147566b3 /repoze/bfg/location.py | |
| parent | fcd16e26db10fb99f88a8e7afa36653350488b39 (diff) | |
| download | pyramid-e6592741ebf5ce940ecf5cbbbab7c42211df6a26.tar.gz pyramid-e6592741ebf5ce940ecf5cbbbab7c42211df6a26.tar.bz2 pyramid-e6592741ebf5ce940ecf5cbbbab7c42211df6a26.zip | |
- The ``repoze.bfg.location.locate`` API was removed: it didn't do
enough to be very helpful and had a misleading name.
Diffstat (limited to 'repoze/bfg/location.py')
| -rw-r--r-- | repoze/bfg/location.py | 10 |
1 files changed, 0 insertions, 10 deletions
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 |
