euscan-ng/euscanwww/euscan/management/commands/list-packages.py
Corentin Chary 25964491dd euscanwww: big commit
- fix commands
- import DataTables
- initial category view

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
2011-04-14 19:28:38 +02:00

11 lines
336 B
Python

from django.core.management.base import BaseCommand, CommandError
from euscanwww.euscan.models import Package
class Command(BaseCommand):
_overlays = {}
help = 'List packages'
def handle(self, *args, **options):
for pkg in Package.objects.all():
self.stdout.write('%s/%s\n' % (pkg.category, pkg.name))