incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Van Steenburgh" <vansteenbu...@users.sf.net>
Subject [allura:tickets] #6391 Provide default `sitemap` in base Application class
Date Tue, 25 Jun 2013 14:36:04 GMT
- Description has changed:

Diff:

~~~~

--- old
+++ new
@@ -0,0 +1,11 @@
+From IRC:
+
+tvansteenburgh
+I would like to add this to the Application base class:
+
+    @property
+    def sitemap(self):
+        return [SitemapEntry(self.config.options.mount_label, '.')]
+
+There's no reason for Application to not implement this default.
+Otherwise, subclasses need to provide `sitemap` just to get the tool to show up in the nav.

~~~~

- **status**: in-progress --> code-review



---

** [tickets:#6391] Provide default `sitemap` in base Application class**

**Status:** code-review
**Created:** Tue Jun 25, 2013 01:55 PM UTC by Tim Van Steenburgh
**Last Updated:** Tue Jun 25, 2013 01:55 PM UTC
**Owner:** Tim Van Steenburgh

>From IRC:

tvansteenburgh
I would like to add this to the Application base class:

    @property
    def sitemap(self):
        return [SitemapEntry(self.config.options.mount_label, '.')]

There's no reason for Application to not implement this default.
Otherwise, subclasses need to provide `sitemap` just to get the tool to show up in the nav.


---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message