~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2012-01-01 03:14:54 UTC
  • mto: This revision was merged to the branch mainline in revision 14614.
  • Revision ID: william.grant@canonical.com-20120101031454-xhdgl26b1yiqpar9
cronscripts

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
 
12
17
import pytz
13
 
from datetime import datetime, timedelta
14
 
 
15
18
from zope.component import getUtility
16
19
 
17
 
from lp.services.config import config
18
20
from lp.app.interfaces.launchpad import ILaunchpadCelebrities
19
21
from lp.registry.interfaces.teammembership import (
20
22
    DAYS_BEFORE_EXPIRATION_WARNING_IS_SENT,
21
23
    ITeamMembershipSet,
22
24
    )
 
25
from lp.services.config import config
23
26
from lp.services.scripts.base import (
24
 
    LaunchpadCronScript, LaunchpadScriptFailure)
 
27
    LaunchpadCronScript,
 
28
    LaunchpadScriptFailure,
 
29
    )
25
30
 
26
31
 
27
32
class ExpireMemberships(LaunchpadCronScript):