51042c655bffb84b96b7af0adbd07210d209a29d
[librarian.git] / src / librarian / elements / themes / motyw.py
1 from ..base import WLElement
2
3
4 class Motyw(WLElement):
5     def txt_build(self, builder):
6         pass
7
8
9     def feed_to(self, builder):
10         assert not len(self)
11         themes = [
12             normalize_text(t.strip()) for t in self.text.split(',')
13         ]
14         builder.set_themes(self.attrib['id'], themes)