diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-01-27 01:24:35 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-01-27 01:24:35 +0000 |
| commit | 9259571f8bce01374060c198e990b1650b5e257e (patch) | |
| tree | 7ce3eb7138d3d5237c0b287fa1ebc1819ce52d6f /repoze/bfg/interfaces.py | |
| parent | 01132b859acb3850eb6d9de6a1d8c2d005165fe3 (diff) | |
| download | pyramid-9259571f8bce01374060c198e990b1650b5e257e.tar.gz pyramid-9259571f8bce01374060c198e990b1650b5e257e.tar.bz2 pyramid-9259571f8bce01374060c198e990b1650b5e257e.zip | |
- There is an indirection in ``repoze.bfg.url.model_url`` now that
consults a utility to generate the base model url (without extra
elements or a query string). Eventually this will service virtual
hosting; for now it's undocumented and should not be hooked.
Diffstat (limited to 'repoze/bfg/interfaces.py')
| -rw-r--r-- | repoze/bfg/interfaces.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 42c6d2a11..7d4286ca3 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -201,3 +201,8 @@ class IUnauthorizedAppFactory(Interface): ``message`` key in the WSGI environ provides information pertaining to the reason for the unauthorized.""" +class IURLGenerator(Interface): + """ A utility which provides virtual hosting services + """ + def model_url(model, request): + """ Return a URL that points to the model """ |
