From 22f5578c299235a65c561ef2d77231478e9c34a1 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 28 Sep 2010 16:12:13 +0200 Subject: Add support for generating sitemap. Each module now contains a struct.py file that will return all the URLs that it can generate (yes, this is a small break of the abstraction of url.py, but we've broken that elsewhere as well), and also which search-engine-weight (0.1-1.0) that this URL should be given. --- pgweb/profserv/struct.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 pgweb/profserv/struct.py (limited to 'pgweb/profserv/struct.py') diff --git a/pgweb/profserv/struct.py b/pgweb/profserv/struct.py new file mode 100644 index 00000000..e3192d2d --- /dev/null +++ b/pgweb/profserv/struct.py @@ -0,0 +1,6 @@ +from views import regions + +def get_struct(): + for key, name in regions: + yield ('support/professional_support/%s/' % key, None) + yield ('support/professional_hosting/%s/' % key, None) -- cgit v1.2.3