Commit 715d5950 authored by Nicolas Delaby's avatar Nicolas Delaby

Replace follow_up category by agent category as Queries

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33701 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 55087911
<base_category_list> <base_category_list>
<portal_type id="Data Protection Request">
<item>agent</item>
</portal_type>
<portal_type id="Data Protection Request Module"> <portal_type id="Data Protection Request Module">
<item>business_application</item> <item>business_application</item>
</portal_type> </portal_type>
......
...@@ -62,7 +62,7 @@ reference_index = portal.portal_ids.generateNewId(id_group=(\'data_protection_re ...@@ -62,7 +62,7 @@ reference_index = portal.portal_ids.generateNewId(id_group=(\'data_protection_re
reference = \'DPR-%s\' % (reference_index,)\n reference = \'DPR-%s\' % (reference_index,)\n
data_protection = module.newContent(portal_type=portal_type,\n data_protection = module.newContent(portal_type=portal_type,\n
contributor_value=current_user,\n contributor_value=current_user,\n
follow_up_value=context,\n agent_value=context,\n
description=description,\n description=description,\n
reference=reference)\n reference=reference)\n
data_protection.submit()\n data_protection.submit()\n
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Document import newTempBase\n <value> <string>from Products.ERP5Type.Document import newTempBase\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
document_to_inspect = context.getFollowUpValue()\n document_to_inspect = context.getAgentValue()\n
property_map_list = document_to_inspect.getPropertyMap()\n property_map_list = document_to_inspect.getPropertyMap()\n
\n \n
def filterPropertyMapList(property_map):\n def filterPropertyMapList(property_map):\n
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <value>
<list> <list>
<string>listbox_follow_up_portal_type</string> <string>listbox_agent_portal_type</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<string>Reference</string> <string>Reference</string>
</tuple> </tuple>
<tuple> <tuple>
<string>follow_up_portal_type</string> <string>agent_portal_type</string>
<string>Type</string> <string>Type</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -97,8 +97,8 @@ ...@@ -97,8 +97,8 @@
<string>Request Description</string> <string>Request Description</string>
</tuple> </tuple>
<tuple> <tuple>
<string>follow_up_title</string> <string>agent_title</string>
<string>Follow Up</string> <string>Context</string>
</tuple> </tuple>
<tuple> <tuple>
<string>contributor_title</string> <string>contributor_title</string>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<value> <value>
<list> <list>
<tuple> <tuple>
<string>follow_up_portal_type</string> <string>agent_portal_type</string>
<string>Type</string> <string>Type</string>
</tuple> </tuple>
</list> </list>
...@@ -165,8 +165,8 @@ ...@@ -165,8 +165,8 @@
<string>Request Description</string> <string>Request Description</string>
</tuple> </tuple>
<tuple> <tuple>
<string>follow_up_title</string> <string>agent_title</string>
<string>Follow Up</string> <string>Context</string>
</tuple> </tuple>
<tuple> <tuple>
<string>contributor_title</string> <string>contributor_title</string>
...@@ -196,8 +196,8 @@ ...@@ -196,8 +196,8 @@
<string>Request Description</string> <string>Request Description</string>
</tuple> </tuple>
<tuple> <tuple>
<string>follow_up_title</string> <string>agent_title</string>
<string>Follow Up</string> <string>Context</string>
</tuple> </tuple>
<tuple> <tuple>
<string>contributor_title</string> <string>contributor_title</string>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>listbox_follow_up_portal_type</string> </value> <value> <string>listbox_agent_portal_type</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
......
...@@ -58,7 +58,7 @@ selection_name = \'data_protection_request_erase_data_selection\'\n ...@@ -58,7 +58,7 @@ selection_name = \'data_protection_request_erase_data_selection\'\n
property_id_list = portal.portal_selections.getSelectionCheckedUidsFor(selection_name)\n property_id_list = portal.portal_selections.getSelectionCheckedUidsFor(selection_name)\n
# clean up selection\n # clean up selection\n
portal.portal_selections.setSelectionCheckedUidsFor(selection_name, ())\n portal.portal_selections.setSelectionCheckedUidsFor(selection_name, ())\n
document_to_cleanup = context.getFollowUpValue()\n document_to_cleanup = context.getAgentValue()\n
clean_up_done = False\n clean_up_done = False\n
\n \n
# First: Purge workflow history comments\n # First: Purge workflow history comments\n
......
...@@ -77,9 +77,7 @@ ...@@ -77,9 +77,7 @@
<item> <item>
<key> <string>bottom</string> </key> <key> <string>bottom</string> </key>
<value> <value>
<list> <list/>
<string>my_text_content</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -87,6 +85,7 @@ ...@@ -87,6 +85,7 @@
<value> <value>
<list> <list>
<string>my_description</string> <string>my_description</string>
<string>my_text_content</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -103,7 +102,7 @@ ...@@ -103,7 +102,7 @@
<value> <value>
<list> <list>
<string>my_reference</string> <string>my_reference</string>
<string>my_follow_up_title</string> <string>my_agent_title</string>
<string>your_follow_up_portal_type</string> <string>your_follow_up_portal_type</string>
</list> </list>
</value> </value>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>my_follow_up_title</string> </value> <value> <string>my_agent_title</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -527,7 +527,7 @@ ...@@ -527,7 +527,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Follow Up</string> </value> <value> <string>Context</string> </value>
</item> </item>
<item> <item>
<key> <string>truncate</string> </key> <key> <string>truncate</string> </key>
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: here.getFollowUpValue() is not None and here.getFollowUpValue().getTranslatedPortalType() or None</string> </value> <value> <string>python: here.getAgentValue() is not None and here.getAgentValue().getTranslatedPortalType() or None</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
<key> <string>center</string> </key> <key> <string>center</string> </key>
<value> <value>
<list> <list>
<string>your_agent_title</string>
<string>your_flush_worklfow_history_comment</string> <string>your_flush_worklfow_history_comment</string>
</list> </list>
</value> </value>
...@@ -99,9 +100,7 @@ ...@@ -99,9 +100,7 @@
<item> <item>
<key> <string>left</string> </key> <key> <string>left</string> </key>
<value> <value>
<list> <list/>
<string>your_follow_title</string>
</list>
</value> </value>
</item> </item>
<item> <item>
......
24 27
\ No newline at end of file \ No newline at end of file
Data Protection Request Module | business_application Data Protection Request Module | business_application
Data Protection Request | agent
\ 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