Commit f1c5d82b authored by Łukasz Nowak's avatar Łukasz Nowak

Work silently on context without getDescription.

parent 5dda9075
......@@ -56,6 +56,10 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value>
......@@ -68,6 +72,10 @@
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value>
......@@ -141,7 +149,7 @@
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
python:"<h1>%s</h1>" % (context.Base_translateString(context.getDescription()))
python: getattr(context, \'getDescription\', None) is not None and "<h1>%s</h1>" % (context.Base_translateString(context.getDescription())) or \'\'
]]></string> </value>
</item>
......@@ -156,7 +164,7 @@ python:"<h1>%s</h1>" % (context.Base_translateString(context.getDescription()))
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>context/getDescription</string> </value>
<value> <string>python: getattr(context, \'getDescription\', None) is not None and context.getDescription() or \'\'</string> </value>
</item>
</dictionary>
</pickle>
......@@ -169,7 +177,7 @@ python:"<h1>%s</h1>" % (context.Base_translateString(context.getDescription()))
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>context/getDescription</string> </value>
<value> <string>python: getattr(context, \'getDescription\', None) and context.getDescription()</string> </value>
</item>
</dictionary>
</pickle>
......
369
\ No newline at end of file
370
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment