django-navigation / navigation /

# -*- coding: utf-8 -*-
class Crumb(object):
    """ A navigation node.

    .. attribute:: url

        this breadcrumb's URL.

    .. attribute:: title

        this breadcrumb's title, as determined by the first successful
        :term:`crumb resolver`.

    .. attribute:: is_current

        `True` if this breadcrumb's URL corresponds to the current request

    .. attribute:: is_active

        `True` if current request path begins with this breadcrumb's URL.

    .. attribute:: is_dummy

        `True` if this breadcrumb is a stub, i.e. its URL could not be resolved
        by a :term:`crumb resolver`.

    def __init__(self, url, title, is_current=False, is_active=False,
        self.url        = url
        self.title      = title
        self.is_current = is_current
        self.is_active  = is_active
        self.is_dummy   = is_dummy

    def __unicode__(self):
        return unicode(self.title)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.