~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/webapp/menu.py

  • Committer: Curtis Hovey
  • Date: 2011-12-24 17:49:30 UTC
  • mto: This revision was merged to the branch mainline in revision 14602.
  • Revision ID: curtis.hovey@canonical.com-20111224174930-xk1d5cvhyxq46ctf
Moved webapp to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    removeSecurityProxy,
40
40
    )
41
41
 
42
 
from canonical.launchpad.webapp.interfaces import (
 
42
from lp.services.webapp.interfaces import (
43
43
    IApplicationMenu,
44
44
    IContextMenu,
45
45
    IFacetLink,
50
50
    INavigationMenu,
51
51
    IStructuredString,
52
52
    )
53
 
from canonical.launchpad.webapp.publisher import (
 
53
from lp.services.webapp.publisher import (
54
54
    canonical_url,
55
55
    get_current_browser_request,
56
56
    LaunchpadView,
57
57
    UserAttributeCache,
58
58
    )
59
 
from canonical.launchpad.webapp.vhosts import allvhosts
 
59
from lp.services.webapp.vhosts import allvhosts
60
60
 
61
61
 
62
62
class structured:
228
228
# Marker object that means 'all links are to be enabled'.
229
229
ALL_LINKS = object()
230
230
 
231
 
MENU_ANNOTATION_KEY = 'canonical.launchpad.webapp.menu.links'
 
231
MENU_ANNOTATION_KEY = 'lp.services.webapp.menu.links'
232
232
 
233
233
 
234
234
class MenuBase(UserAttributeCache):
530
530
 
531
531
        # This is imported here to forestall an import-time config read that
532
532
        # wreaks havoc.
533
 
        from canonical.launchpad.webapp.authorization import check_permission
 
533
        from lp.services.webapp.authorization import check_permission
534
534
 
535
535
        def enable_if_allowed(self):
536
536
            link = func(self)