~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/browser/question.py

  • Committer: j.c.sackett
  • Date: 2011-05-19 15:07:29 UTC
  • mto: This revision was merged to the branch mainline in revision 13104.
  • Revision ID: jonathan.sackett@canonical.com-20110519150729-8b1nhilti4hjin0l
Added nofollow,noindex to search page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    is_english_variant,
61
61
    preferred_or_request_languages,
62
62
    )
 
63
from canonical.launchpad.interfaces.launchpad import ILaunchpadCelebrities
63
64
from canonical.launchpad.interfaces.launchpadstatistic import (
64
65
    ILaunchpadStatisticSet,
65
66
    )
 
67
from canonical.launchpad.utilities.personroles import PersonRoles
66
68
from canonical.launchpad.webapp import (
67
69
    ApplicationMenu,
68
70
    canonical_url,
79
81
from canonical.launchpad.webapp.menu import structured
80
82
from canonical.lazr.utils import smartquote
81
83
from lp.answers.browser.questiontarget import SearchQuestionsView
82
 
from lp.answers.enums import (
83
 
    QuestionAction,
84
 
    QuestionSort,
85
 
    QuestionStatus,
86
 
    )
87
84
from lp.answers.interfaces.faq import IFAQ
88
85
from lp.answers.interfaces.faqtarget import IFAQTarget
89
86
from lp.answers.interfaces.question import (
93
90
    IQuestionLinkFAQForm,
94
91
    )
95
92
from lp.answers.interfaces.questioncollection import IQuestionSet
 
93
from lp.answers.enums import (
 
94
    QuestionAction,
 
95
    QuestionSort,
 
96
    QuestionStatus,
 
97
    )
96
98
from lp.answers.interfaces.questiontarget import (
97
99
    IAnswersFrontPageSearchForm,
98
100
    IQuestionTarget,
104
106
    LaunchpadFormView,
105
107
    safe_action,
106
108
    )
107
 
from lp.app.browser.stringformatter import FormattersAPI
108
109
from lp.app.errors import (
109
110
    NotFoundError,
110
111
    UnexpectedFormData,
111
112
    )
112
 
from lp.app.interfaces.launchpad import ILaunchpadCelebrities
113
113
from lp.app.widgets.itemswidgets import LaunchpadRadioWidget
114
114
from lp.app.widgets.launchpadtarget import LaunchpadTargetWidget
115
115
from lp.app.widgets.project import ProjectScopeWidget
116
116
from lp.app.widgets.textwidgets import TokensTextWidget
117
117
from lp.registry.interfaces.projectgroup import IProjectGroup
118
 
from lp.registry.model.personroles import PersonRoles
119
118
from lp.services.propertycache import cachedproperty
120
119
 
121
120
 
832
831
 
833
832
    @property
834
833
    def label(self):
835
 
        return FormattersAPI(self.context.title).obfuscate_email()
 
834
        return self.context.title
836
835
 
837
836
    @property
838
837
    def page_title(self):