fnp
/
librarian.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New Element-based builder API (WiP).
[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)