Mercurial > piecrust2
diff foodtruck/views/publish.py @ 629:40e897e2f11e
admin: Make the publish UI handle new kinds of target configurations.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 08 Feb 2016 23:29:21 -0800 |
parents | e2e955a3bb25 |
children | 3885421c29a3 |
line wrap: on
line diff
--- a/foodtruck/views/publish.py Mon Feb 08 23:28:39 2016 -0800 +++ b/foodtruck/views/publish.py Mon Feb 08 23:29:21 2016 -0800 @@ -33,10 +33,12 @@ data['targets'] = [] for tn in sorted(pub_cfg.keys()): tc = pub_cfg[tn] + desc = None + if isinstance(tc, dict): + desc = tc.get('description') data['targets'].append({ 'name': tn, - 'description': tc.get('description'), - 'cmd': tc.get('cmd') + 'description': desc }) with_menu_context(data)