From d81c50f590c5c29651643d6bddcf902e2777b64c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 27 Jan 2012 17:58:34 +0530 Subject: [PATCH] list descriptions are html, locations are places --- import_padma.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/import_padma.py b/import_padma.py index 1ef72c1..94dbb8c 100755 --- a/import_padma.py +++ b/import_padma.py @@ -158,6 +158,9 @@ def import_layers(item, layers): for layer in layers: oldLayerId = layer['id'] layer_name = '%ss'%layer['track'] + layer_name = { + 'locations': 'places' + }.get(layer_name, layer_name) annotation = Annotation(item=item, layer=layer_name) annotation.start = float(layer['time_in'])/1000 annotation.end = float(layer['time_out'])/1000 @@ -238,7 +241,7 @@ for l in lists: p,c = List.objects.get_or_create(name=l['title'], user=l['user']) p.type = l['type'] == 'static' and 'static' or 'smart' p.status = l['public'] and 'featured' or 'private' - p.description = l['description'] + p.description = html_parser(l['description']) p.save() if l['type'] == 'static': for v in l['items']: