summaryrefslogtreecommitdiff
path: root/repoze/bfg/interfaces.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-01-27 01:24:35 +0000
committerChris McDonough <chrism@agendaless.com>2009-01-27 01:24:35 +0000
commit9259571f8bce01374060c198e990b1650b5e257e (patch)
tree7ce3eb7138d3d5237c0b287fa1ebc1819ce52d6f /repoze/bfg/interfaces.py
parent01132b859acb3850eb6d9de6a1d8c2d005165fe3 (diff)
downloadpyramid-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.py5
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 """