From 750ce41f217cd7b638ad5b69fcb9df1b49841b58 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 17 Sep 2009 19:58:01 +0000 Subject: - Add a ``repoze.bfg.url.static_url`` API which is capable of generating URLs to static resources defined by the ```` ZCML directive. See the "Views" narrative chapter's section titled "Generating Static Resource URLs" for more information. --- repoze/bfg/urldispatch.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'repoze/bfg/urldispatch.py') diff --git a/repoze/bfg/urldispatch.py b/repoze/bfg/urldispatch.py index 747faace7..dfb7c9979 100644 --- a/repoze/bfg/urldispatch.py +++ b/repoze/bfg/urldispatch.py @@ -29,6 +29,9 @@ class RoutesRootFactory(object): def has_routes(self): return bool(self.routelist) + def get_routes(self): + return self.routelist + def connect(self, path, name, factory=None): route = Route(path, name, factory) self.routelist.append(route) -- cgit v1.2.3