~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/flag-expired-memberships.py

  • Committer: Curtis Hovey
  • Date: 2011-12-18 15:13:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14547.
  • Revision ID: curtis.hovey@canonical.com-20111218151307-sdm2gzobt5tplbe0
Moved badges to lp.app.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
import _pythonpath
11
11
 
12
 
from datetime import (
13
 
    datetime,
14
 
    timedelta,
15
 
    )
16
 
 
17
12
import pytz
 
13
from datetime import datetime, timedelta
 
14
 
18
15
from zope.component import getUtility
19
16
 
 
17
from canonical.config import config
20
18
from lp.app.interfaces.launchpad import ILaunchpadCelebrities
21
19
from lp.registry.interfaces.teammembership import (
22
20
    DAYS_BEFORE_EXPIRATION_WARNING_IS_SENT,
23
21
    ITeamMembershipSet,
24
22
    )
25
 
from lp.services.config import config
26
23
from lp.services.scripts.base import (
27
 
    LaunchpadCronScript,
28
 
    LaunchpadScriptFailure,
29
 
    )
 
24
    LaunchpadCronScript, LaunchpadScriptFailure)
30
25
 
31
26
 
32
27
class ExpireMemberships(LaunchpadCronScript):