X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/cb69bb340ea976c61d65567069cf14c244452ab7..a36b71e91ec260eae71f133f450fe4de80974461:/librarian/pyhtml.py diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index 33d6d9e..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,18 +258,6 @@ 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 '!!