X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/dae85cc198c36d58dd2bdd6eaf29f69a5e3cacaa..a36b71e91ec260eae71f133f450fe4de80974461:/librarian/pyhtml.py?ds=inline diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index de04fc0..68ae384 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -82,7 +82,10 @@ class EduModule(Xmill): } submill = EduModule(dict(self.options.items() + {'sub_gen': True}.items())) - opis = submill.generate(element.xpath('opis')[0]) + if element.xpath('opis'): + opis = submill.generate(element.xpath('opis')[0]) + else: + opis = '' n = element.xpath('wskazowki') if n: wskazowki = submill.generate(n[0]) @@ -255,29 +258,13 @@ u"""%(wskazowki)s return u"" % def_href, u'%s%s' % (def_err, more_links) - def handle_video(self, element): - url = element.attrib.get('url') - if not url: - print '!!