From a68ab81427962d7386861666958649dc19bb90f9 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Mon, 13 Oct 2008 15:47:02 -0400 Subject: [PATCH] title as default name in subscriptions too... --- planet/shell/tmpl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/planet/shell/tmpl.py b/planet/shell/tmpl.py index 8988ad1..dfde6fe 100644 --- a/planet/shell/tmpl.py +++ b/planet/shell/tmpl.py @@ -161,6 +161,8 @@ def tmpl_mapper(source, rules): for name,value in source.items(): if name.startswith('planet_'): output[name[7:]] = String(value) + if not output.get('name') and source.has_key('title_detail'): + output['name'] = Plain(source.title_detail.value) # copy over all planet namespaced elements from child source element if 'source' in source: