Added converter string_to_unicode_list to dcparser. Added handling of 'identifier...
[wolnelektury.git] / lib / dcparser / converters.py
index b49c417..85e4153 100644 (file)
@@ -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(',')