~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/browser/potemplate.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-05 01:16:46 UTC
  • mfrom: (14628.1.2 js-client-link)
  • Revision ID: launchpad@pqm.canonical.com-20120105011646-dlhd7oqm9pui6yk1
[r=benji][bug=911973] Set lp_original_uri properly for objects
        returned by named_get and named_post that have a self_link.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2012 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2010 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
# pylint: disable-msg=F0401
4
4
 
43
43
from zope.security.proxy import removeSecurityProxy
44
44
 
45
45
from lp import _
46
 
from lp.app.browser.launchpadform import (
47
 
    action,
48
 
    LaunchpadEditFormView,
49
 
    ReturnToReferrerMixin,
50
 
    )
 
46
from lp.app.browser.launchpadform import ReturnToReferrerMixin
51
47
from lp.app.browser.tales import DateTimeFormatterAPI
52
48
from lp.app.enums import (
53
49
    service_uses_launchpad,
66
62
from lp.registry.model.sourcepackagename import SourcePackageName
67
63
from lp.services.helpers import is_tar_filename
68
64
from lp.services.webapp import (
 
65
    action,
69
66
    canonical_url,
70
67
    enabled_with_permission,
71
68
    GetitemNavigation,
 
69
    LaunchpadEditFormView,
 
70
    LaunchpadView,
72
71
    Link,
73
72
    Navigation,
74
73
    NavigationMenu,
81
80
    ILaunchBag,
82
81
    )
83
82
from lp.services.webapp.menu import structured
84
 
from lp.services.webapp.publisher import LaunchpadView
85
83
from lp.services.worlddata.interfaces.language import ILanguageSet
86
84
from lp.translations.browser.poexportrequest import BaseExportView
87
85
from lp.translations.browser.translations import TranslationsMixin