[Checkins]
SVN: Products.GenericSetup/trunk/Products/GenericSetup/www/sutImportSteps.zpt
Protect ourselves against the fringe case where there is no
base profile
Wichert Akkerman
wichert at wiggy.net
Mon Nov 19 09:52:47 EST 2007
Log message for revision 81931:
Protect ourselves against the fringe case where there is no base profile
Changed:
U Products.GenericSetup/trunk/Products/GenericSetup/www/sutImportSteps.zpt
-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/www/sutImportSteps.zpt
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/www/sutImportSteps.zpt 2007-11-19 14:18:11 UTC (rev 81930)
+++ Products.GenericSetup/trunk/Products/GenericSetup/www/sutImportSteps.zpt 2007-11-19 14:52:46 UTC (rev 81931)
@@ -1,7 +1,8 @@
<tal:block define="base_context_id context/getBaselineContextID;
context_id request/context_id|base_context_id;
contexts context/listContextInfos;
- context_title python:[c['title'] for c in contexts if c['id']==context_id][0];
+ context_title python:[c['title'] for c in contexts if c['id']==context_id];
+ context_title python:context_title and context_title[0] or 'UNKNOWN';
extension_contexts python:[c for c in contexts if c['type'] in ['extension','snapshot']];
">
<h1 tal:replace="structure context/manage_page_header">PAGE HEADER</h1>
More information about the Checkins
mailing list