--- a/ForgeClassic/sfx/mailman.py
+++ b/ForgeClassic/sfx/mailman.py
@@ -5,7 +5,7 @@
from tg.decorators import with_trailing_slash, without_trailing_slash
from pylons import c
-from allura.app import DefaultAdminController
+from allura.app import DefaultAdminController, SitemapEntry
from allura.lib import helpers as h
from . import widgets
@@ -65,6 +65,14 @@
def _lookup(self, name, *remainder):
return ListAdmin(SM.List(name)), remainder
+ @property
+ @h.exceptionless([], log)
+ def sitemap(self):
+ result = []
+ for lst in SM.List.find():
+ result.append(SitemapEntry(lst.name, lst.info_url))
+ return result
+
class ListAdmin(object):
def __init__(self, mailing_list):