X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/dae85cc198c36d58dd2bdd6eaf29f69a5e3cacaa..076474d2a928649c934b4bb12031d39cdea2c77d:/librarian/pyhtml.py?ds=inline diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index de04fc0..6db1701 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 '!!