~james-w/udd/management-commands

« back to all changes in this revision

Viewing changes to udd/foreach/management/commands/analyze_log.py

  • Committer: James Westby
  • Date: 2011-12-10 03:10:36 UTC
  • Revision ID: james.westby@canonical.com-20111210031036-gjaa64744wifb1dp
Add management commands for the things that touch the db.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.core.management.base import BaseCommand
 
2
from udd.scripts.analyze_log import main
 
3
 
 
4
 
 
5
class Command(BaseCommand):
 
6
    args = 'log_file'
 
7
 
 
8
    def handle(self, *args, **opts):
 
9
        # main() expects sys,argv, we've had $0 parsed away.
 
10
        return main([None] + args)