Commit f4657666 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_svg_editor: rename Base_viewSVGEditor to Document_viewSVGEditor

also make it work for Image portal types
parent bf8d4c54
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>string:${object_url}/Base_viewSVGEditor</string> </value> <value> <string>string:${object_url}/Document_viewSVGEditor</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>python: object is not None and object.getContentType()=="image/svg+xml"</string> </value> <value> <string>python: getattr(object, "getContentType", str)() == "image/svg+xml"</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<key> <string>bottom</string> </key> <key> <string>bottom</string> </key>
<value> <value>
<list> <list>
<string>my_text_content</string> <string>my_data</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Base_viewSVGEditor</string> </value> <value> <string>Document_viewSVGEditor</string> </value>
</item> </item>
<item> <item>
<key> <string>method</string> </key> <key> <string>method</string> </key>
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Web Illustration</string> </value> <value> <string>Illustration</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_text_content</string> </value> <value> <string>my_data</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
......
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