a05969859d5364fee4c6f48455122b3fbab6a7c2
[redakcja.git] / apps / catalogue / management / commands / export_lesson.py
1 # -*- coding: utf-8 -*-
2
3 from django.core.management.base import BaseCommand
4
5 from catalogue.models import Book
6
7
8 class Command(BaseCommand):
9     help = 'Exports a lesson in WL1 XML'
10     args = 'slug'
11
12     def handle(self, slug, *args, **options):
13         lesson = Book.objects.get(slug=slug)
14         print lesson.wl1_xml()