~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/validators/tests/validation.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-22 04:23:31 UTC
  • mfrom: (14564.4.2 megalint-7)
  • Revision ID: launchpad@pqm.canonical.com-20111222042331-ldeo5z018n8bq6x1
[r=jtv][no-qa] Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
= Launchpad field validators =
 
1
Launchpad field validators
 
2
==========================
2
3
 
3
4
    >>> from zope.security.proxy import removeSecurityProxy
4
5
    >>> from zope.component import getUtility
12
13
    >>> firefox = removeSecurityProxy(firefox)
13
14
    >>> firefox.bug_supervisor = no_priv
14
15
 
15
 
== can_be_nominated_for_series ==
 
16
can_be_nominated_for_series
 
17
---------------------------
16
18
 
17
19
This validator is used to check if the bug in the launchbag can be
18
20
nominated for the given series.
79
81
    >>> can_be_nominated_for_series([firefox.series[1]])
80
82
    True
81
83
 
82
 
== PersonNameField ==
 
84
PersonNameField
 
85
---------------
83
86
 
84
87
The PersonNameField class, which is only used for extra validation on a
85
88
person's/team's name.