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

Work silently on context without getDescription.

parent 5dda9075
...@@ -56,6 +56,10 @@ ...@@ -56,6 +56,10 @@
<key> <string>tales</string> </key> <key> <string>tales</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <value>
...@@ -68,6 +72,10 @@ ...@@ -68,6 +72,10 @@
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <value>
...@@ -141,7 +149,7 @@ ...@@ -141,7 +149,7 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <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> ]]></string> </value>
</item> </item>
...@@ -156,7 +164,7 @@ python:"<h1>%s</h1>" % (context.Base_translateString(context.getDescription())) ...@@ -156,7 +164,7 @@ python:"<h1>%s</h1>" % (context.Base_translateString(context.getDescription()))
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
...@@ -169,7 +177,7 @@ python:"<h1>%s</h1>" % (context.Base_translateString(context.getDescription())) ...@@ -169,7 +177,7 @@ python:"<h1>%s</h1>" % (context.Base_translateString(context.getDescription()))
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>context/getDescription</string> </value> <value> <string>python: getattr(context, \'getDescription\', None) and context.getDescription()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
369 370
\ No newline at end of file \ 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