diff options
author | Magnus Hagander | 2010-09-28 14:12:13 +0000 |
---|---|---|
committer | Magnus Hagander | 2010-09-28 14:12:13 +0000 |
commit | 22f5578c299235a65c561ef2d77231478e9c34a1 (patch) | |
tree | 89b12992845586117a3ce9edcab0e68a3d64b94c /pgweb/profserv/struct.py | |
parent | 8fce64451ecee58d8fdd4450a2b5ff4fedb05dbb (diff) |
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.
Diffstat (limited to 'pgweb/profserv/struct.py')
-rw-r--r-- | pgweb/profserv/struct.py | 6 |
1 files changed, 6 insertions, 0 deletions
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) |