~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/doc/hierarchical-menu.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-23 09:54:33 UTC
  • mfrom: (14486.6.4 drop-obsolete-config-items)
  • Revision ID: launchpad@pqm.canonical.com-20111223095433-amgcz7yu4tsxrypz
[r=wgrant][no-qa] Drop various obsolete config definitions that were
        recently dropped from prod.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    >>> class ICooker(Interface):
23
23
    ...     """A cooker."""
24
24
 
25
 
    >>> from lp.services.webapp.interfaces import ICanonicalUrlData
26
 
    >>> from lp.services.webapp.url import urlappend
 
25
    >>> from canonical.launchpad.webapp.interfaces import ICanonicalUrlData
 
26
    >>> from canonical.launchpad.webapp.url import urlappend
27
27
 
28
28
    >>> class BaseContent:
29
29
    ...     implements(ICanonicalUrlData)
84
84
breadcrumbs starting with the breadcrumb closest to the hierarchy root.
85
85
 
86
86
    >>> from lp.app.browser.launchpad import Hierarchy
87
 
    >>> from lp.services.webapp.breadcrumb import Breadcrumb
 
87
    >>> from canonical.launchpad.webapp.breadcrumb import Breadcrumb
88
88
 
89
89
    # Monkey patch Hierarchy.makeBreadcrumbForRequestedPage so that we don't
90
90
    # have to create fake views and other stuff to test breadcrumbs here. The
100
100
    ...     def text(self):
101
101
    ...         return self.context.name.capitalize().replace('-', ' ')
102
102
 
103
 
    >>> from lp.services.webapp.interfaces import IBreadcrumb
 
103
    >>> from canonical.launchpad.webapp.interfaces import IBreadcrumb
104
104
 
105
105
    >>> provideAdapter(TextualBreadcrumb, [ICookbook], IBreadcrumb)
106
106
    >>> provideAdapter(TextualBreadcrumb, [IRecipe], IBreadcrumb)
176
176
text must be overriden in subclasses.
177
177
 
178
178
    >>> from zope.interface.verify import verifyObject
179
 
    >>> from lp.services.webapp.interfaces import IBreadcrumb
 
179
    >>> from canonical.launchpad.webapp.interfaces import IBreadcrumb
180
180
    >>> breadcrumb = Breadcrumb(cookbook)
181
181
    >>> verifyObject(IBreadcrumb, breadcrumb)
182
182
    True