Commit 8a8e0fd8 authored by Jérome Perrin's avatar Jérome Perrin

fixup! forge: action to add and properly register a skin folder on a business template

Fix property name for skin layer ordering on the skin folder.
parent 723722f5
...@@ -61,12 +61,12 @@ if skin_folder_name not in (context.getTemplateSkinIdList() or []):\n ...@@ -61,12 +61,12 @@ if skin_folder_name not in (context.getTemplateSkinIdList() or []):\n
\n \n
skin_folder = portal.portal_skins[skin_folder_name]\n skin_folder = portal.portal_skins[skin_folder_name]\n
\n \n
if skin_folder_priority:\n if skin_layer_priority:\n
marker = []\n marker = []\n
if skin_folder.getProperty("business_template_skin_folder_priorty", marker) is marker:\n if skin_folder.getProperty("business_template_skin_layer_priorty", marker) is marker:\n
skin_folder.manage_addProperty("business_template_skin_folder_priorty", skin_folder_priority, "string")\n skin_folder.manage_addProperty("business_template_skin_layer_priorty", skin_layer_priority, "string")\n
else:\n else:\n
skin_folder.manage_changeProperties({"business_template_skin_folder_priorty": skin_folder_priority})\n skin_folder.manage_changeProperties({"business_template_skin_layer_priorty": skin_layer_priority})\n
\n \n
if skin_layer_list:\n if skin_layer_list:\n
all_skin_layers_selected = len(skin_layer_list) == len(portal.portal_skins.getSkinPaths())\n all_skin_layers_selected = len(skin_layer_list) == len(portal.portal_skins.getSkinPaths())\n
...@@ -97,7 +97,7 @@ return context.Base_redirect(form_id,\n ...@@ -97,7 +97,7 @@ return context.Base_redirect(form_id,\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>skin_folder_name, skin_folder_priority, skin_layer_list, form_id=None, **kw</string> </value> <value> <string>skin_folder_name, skin_layer_priority, skin_layer_list, form_id=None, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<value> <value>
<list> <list>
<string>your_skin_folder_name</string> <string>your_skin_folder_name</string>
<string>your_skin_folder_priority</string> <string>your_skin_layer_priority</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>your_skin_folder_priority</string> </value> <value> <string>your_skin_layer_priority</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -230,6 +230,10 @@ ...@@ -230,6 +230,10 @@
<key> <string>input_style</string> </key> <key> <string>input_style</string> </key>
<value> <string>-1234.5</string> </value> <value> <string>-1234.5</string> </value>
</item> </item>
<item>
<key> <string>input_type</string> </key>
<value> <string>text</string> </value>
</item>
<item> <item>
<key> <string>precision</string> </key> <key> <string>precision</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -240,7 +244,7 @@ ...@@ -240,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Skin Folder Priority</string> </value> <value> <string>Skin Layer Priority</string> </value>
</item> </item>
<item> <item>
<key> <string>whitespace_preserve</string> </key> <key> <string>whitespace_preserve</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