fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added converter string_to_unicode_list to dcparser. Added handling of 'identifier...
[wolnelektury.git]
/
lib
/
dcparser
/
converters.py
diff --git
a/lib/dcparser/converters.py
b/lib/dcparser/converters.py
index
b49c417
..
85e4153
100644
(file)
--- a/
lib/dcparser/converters.py
+++ b/
lib/dcparser/converters.py
@@
-30,6
+30,13
@@
def str_to_unicode(value, previous):
return unicode(value)
+def str_to_unicode_list(value, previous):
+ if previous is None:
+ previous = []
+ previous.append(str_to_unicode(value))
+ return previous
+
+
def str_to_person(value, previous):
comma_count = value.count(',')