class Command(BaseCommand):
option_list = BaseCommand.option_list + (
- make_option('-s', '--slug', dest='slug', help="Slug for master module"),
- make_option('-F', '--file', dest='slugs_file', help="file with child module slugs per line"),
+ make_option('-s', '--slug', dest='slug', help="Slug for master module (if empty will be generated from title)"),
+ make_option('-F', '--file', dest='slugs_file', help="file with child module titles per line"),
make_option('-t', '--title', dest='title', default='', help="title of master module"),
make_option('-l', '--level', dest='audience', default='', help='Audience level'),
)
dc(u'rights', dc_fixed['rights'])
dc(u'rights.license', dc_fixed['rights_license'])
dc(u'format', u'xml')
- dc(u'type', u'text')
+ dc(u'type', u'section')
dc(u'date', date.strftime(date.today(), "%Y-%m-%d"))
- dc(u'audience', options['audience'])
dc(u'language', u'pol')
p(u'</rdf:Description>')
p(u'</rdf:RDF>')