~registry/ubuntu-teamreports/trunk

« back to all changes in this revision

Viewing changes to teamreports/reports/management/commands/update.py

  • Committer: Daniel Holbach
  • Date: 2010-04-16 10:07:59 UTC
  • Revision ID: daniel.holbach@canonical.com-20100416100759-eqgm3ai408shfyzn
add proposal management form, use DateFields, add possibility to mark proposals for deletion

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
 
 
3
 
from django.core.management.base import NoArgsCommand
4
 
 
5
 
import subprocess
6
 
import os
7
 
 
8
 
from django.conf import settings
9
 
 
10
 
class Command(NoArgsCommand):
11
 
    help = "Update everything."
12
 
 
13
 
    def handle_noargs(self, **options):
14
 
        pwd = os.getcwd()
15
 
        os.chdir(settings.PROJECT_PATH)
16
 
        subprocess.call(["./manage.py", "process-proposals"])
17
 
        subprocess.call(["./manage.py", "lpupdate"])
18
 
        os.chdir(pwd)
19