[Erp5-report] r22306 - in /erp5/trunk/bt5/erp5_crm: ActionTemplateItem/portal_types/Campaig...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jul 7 11:08:42 CEST 2008


Author: yusei
Date: Mon Jul  7 11:08:41 2008
New Revision: 22306

URL: http://svn.erp5.org?rev=22306&view=rev
Log:
2008-07-07 yusei
* Added an action to ticket portal types which clone ticket and related events.

Added:
    erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Campaign/clone_ticket_and_event_list.xml
    erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Meeting/clone_ticket_and_event_list.xml
    erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Sale%20Opportunity/clone_ticket_and_event_list.xml
    erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Support%20Request/clone_ticket_and_event_list.xml
    erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_cloneTicketAndEventList.xml
Modified:
    erp5/trunk/bt5/erp5_crm/bt/change_log
    erp5/trunk/bt5/erp5_crm/bt/revision
    erp5/trunk/bt5/erp5_crm/bt/template_action_path_list

Added: erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Campaign/clone_ticket_and_event_list.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Campaign/clone_ticket_and_event_list.xml?rev=22306&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Campaign/clone_ticket_and_event_list.xml (added)
+++ erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Campaign/clone_ticket_and_event_list.xml Mon Jul  7 11:08:41 2008
@@ -1,0 +1,83 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_action</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>clone_ticket_and_event_list</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>12.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Clone Ticket And Events</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Ticket_cloneTicketAndEventList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Meeting/clone_ticket_and_event_list.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Meeting/clone_ticket_and_event_list.xml?rev=22306&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Meeting/clone_ticket_and_event_list.xml (added)
+++ erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Meeting/clone_ticket_and_event_list.xml Mon Jul  7 11:08:41 2008
@@ -1,0 +1,83 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_action</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>clone_ticket_and_event_list</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>12.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Clone Ticket And Events</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Ticket_cloneTicketAndEventList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Sale%20Opportunity/clone_ticket_and_event_list.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Sale%2520Opportunity/clone_ticket_and_event_list.xml?rev=22306&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Sale%20Opportunity/clone_ticket_and_event_list.xml (added)
+++ erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Sale%20Opportunity/clone_ticket_and_event_list.xml Mon Jul  7 11:08:41 2008
@@ -1,0 +1,83 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_action</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>clone_ticket_and_event_list</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>12.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Clone Ticket And Events</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Ticket_cloneTicketAndEventList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Support%20Request/clone_ticket_and_event_list.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Support%2520Request/clone_ticket_and_event_list.xml?rev=22306&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Support%20Request/clone_ticket_and_event_list.xml (added)
+++ erp5/trunk/bt5/erp5_crm/ActionTemplateItem/portal_types/Support%20Request/clone_ticket_and_event_list.xml Mon Jul  7 11:08:41 2008
@@ -1,0 +1,83 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_action</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>clone_ticket_and_event_list</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>12.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Clone Ticket And Events</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/Ticket_cloneTicketAndEventList</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Added: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_cloneTicketAndEventList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_cloneTicketAndEventList.xml?rev=22306&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_cloneTicketAndEventList.xml (added)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_cloneTicketAndEventList.xml Mon Jul  7 11:08:41 2008
@@ -1,0 +1,163 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>Python_magic</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>Script_magic</string> </key>
+            <value> <int>3</int> </value>
+        </item>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_container</string> </key>
+                                <value> <string>container</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_context</string> </key>
+                                <value> <string>context</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_m_self</string> </key>
+                                <value> <string>script</string> </value>
+                            </item>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_body</string> </key>
+            <value> <string>portal = context.getPortalObject()\n
+event_list = context.getFollowUpRelatedValueList(portal_type=portal.getPortalEventTypeList())\n
+\n
+\n
+new_ticket = context.Base_createCloneDocument(form_id=None, clone=1, batch_mode=1)\n
+new_ticket_url = new_ticket.getRelativeUrl()\n
+\n
+for event in event_list:\n
+  new_event = event.Base_createCloneDocument(form_id=None, clone=1, batch_mode=1)\n
+  new_event.setFollowUp(new_ticket_url)\n
+\n
+portal_status_message = context.Base_translateString(\'Ticket and events are cloned.\')\n
+keep_items = {\'portal_status_message\':portal_status_message}\n
+new_ticket.Base_redirect(form_id=\'view\', keep_items=keep_items)\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>_code</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_filepath</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>_params</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>errors</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_code</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>co_argcount</string> </key>
+                        <value> <int>0</int> </value>
+                    </item>
+                    <item>
+                        <key> <string>co_varnames</string> </key>
+                        <value>
+                          <tuple>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>portal</string>
+                            <string>event_list</string>
+                            <string>None</string>
+                            <string>new_ticket</string>
+                            <string>new_ticket_url</string>
+                            <string>_getiter_</string>
+                            <string>event</string>
+                            <string>new_event</string>
+                            <string>portal_status_message</string>
+                            <string>keep_items</string>
+                          </tuple>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>func_defaults</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Ticket_cloneTicketAndEventList</string> </value>
+        </item>
+        <item>
+            <key> <string>warnings</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_crm/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/change_log?rev=22306&r1=22305&r2=22306&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/change_log (original)
+++ erp5/trunk/bt5/erp5_crm/bt/change_log Mon Jul  7 11:08:41 2008
@@ -1,3 +1,6 @@
+2008-07-07 yusei
+* Added an action to ticket portal types which clone ticket and related events.
+
 2008-07-02 yusei
 * when ingest email message, find sender from person document first and organisation later.
 

Modified: erp5/trunk/bt5/erp5_crm/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/revision?rev=22306&r1=22305&r2=22306&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/revision (original)
+++ erp5/trunk/bt5/erp5_crm/bt/revision Mon Jul  7 11:08:41 2008
@@ -1,1 +1,1 @@
-276
+277

Modified: erp5/trunk/bt5/erp5_crm/bt/template_action_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/template_action_path_list?rev=22306&r1=22305&r2=22306&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/template_action_path_list (original)
+++ erp5/trunk/bt5/erp5_crm/bt/template_action_path_list Mon Jul  7 11:08:41 2008
@@ -1,6 +1,7 @@
 Campaign Module | campaign_detailed_report
 Campaign Module | campaign_status
 Campaign Module | view
+Campaign | clone_ticket_and_event_list
 Campaign | document_list
 Campaign | new_event
 Campaign | view
@@ -24,6 +25,7 @@
 Meeting Module | meeting_detailed_report
 Meeting Module | meeting_status
 Meeting Module | view
+Meeting | clone_ticket_and_event_list
 Meeting | document_list
 Meeting | new_event
 Meeting | view
@@ -43,12 +45,14 @@
 Sale Opportunity Module | sale_opportunity_detailed_report
 Sale Opportunity Module | sale_opportunity_status
 Sale Opportunity Module | view
+Sale Opportunity | clone_ticket_and_event_list
 Sale Opportunity | document_list
 Sale Opportunity | new_event
 Sale Opportunity | view
 Support Request Module | support_request_detailed_report
 Support Request Module | support_request_status
 Support Request Module | view
+Support Request | clone_ticket_and_event_list
 Support Request | document_list
 Support Request | new_event
 Support Request | view




More information about the Erp5-report mailing list