~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/convert-person-to-team.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-09 09:23:38 UTC
  • mfrom: (14333.2.13 history-model)
  • Revision ID: launchpad@pqm.canonical.com-20111209092338-se7u5l0skqzaes1v
[r=jcsackett][bug=295214, 894836,
 898200] Keep sort button ob bug listing pages in sync with the
 displayed data

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python -S
2
2
#
3
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
3
# Copyright 2009 Canonical Ltd.  This software is licensed under the
4
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
5
 
6
6
"""Script to convert a person into a team.
13
13
 
14
14
from zope.component import getUtility
15
15
 
 
16
from lp.services.scripts.base import (
 
17
    LaunchpadScript, LaunchpadScriptFailure)
 
18
from canonical.launchpad.interfaces.account import AccountStatus
16
19
from lp.registry.interfaces.person import IPersonSet
17
 
from lp.services.identity.interfaces.account import AccountStatus
18
 
from lp.services.scripts.base import (
19
 
    LaunchpadScript,
20
 
    LaunchpadScriptFailure,
21
 
    )
22
20
 
23
21
 
24
22
class ConvertPersonToTeamScript(LaunchpadScript):
52
50
if __name__ == '__main__':
53
51
    script = ConvertPersonToTeamScript('convert-person-to-team')
54
52
    script.lock_and_run()
 
53