From 9259571f8bce01374060c198e990b1650b5e257e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 27 Jan 2009 01:24:35 +0000 Subject: - 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. --- repoze/bfg/interfaces.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'repoze/bfg/interfaces.py') 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 """ -- cgit v1.2.3