Commit 0918a70b authored by Aurel's avatar Aurel

add reviewer

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14796 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 912c6e7a
......@@ -119,8 +119,7 @@ elif reference_range_min is not None or reference_range_max is not None:\n
\n
check_list = []\n
bank_account_uid = bank_account.getUid()\n
resource_value = None\n
generic_model = None\n
resource_value = portal.restrictedTraverse(resource)\n
reference_dict = {}\n
# First we must parse everyting to make sure there is no error,\n
# this is safer because we catch Validation in workflow scripts\n
......@@ -128,7 +127,7 @@ for check_reference in reference_list:\n
message_tag = \'check_%s_%s_%s\' % (resource, bank_account_uid, check_reference)\n
# just raise an error.\n
if context.portal_activities.countMessageWithTag(message_tag) != 0:\n
msg = Message(domain=\'ui\', message="This check number is already being indexed.")\n
msg = Message(domain=\'ui\', message="There are operations pending that prevent to validate this document. Please try again later.")\n
raise ValidationFailed, (msg,)\n
result = context.portal_catalog(portal_type = \'Check\', reference = check_reference, \n
destination_payment_uid = bank_account.getUid(),\n
......@@ -136,11 +135,15 @@ for check_reference in reference_list:\n
result_len = len(result)\n
if result_len == 0:\n
if not context.Base_isAutomaticCheckCreationAllowed():\n
msg = Message(domain = "ui", message="Sorry, this reference does not exist")\n
msg = Message(domain = "ui", message="Sorry, the $type $reference for the account $account does not exist",\n
mapping={\'reference\' : reference, \'account\': bank_account.getInternalBankAccountNumber(),\n
\'type\': resource_value.getTitle()})\n
raise ValidationFailed, (msg,)\n
\n
elif result_len > 1:\n
msg = Message(domain=\'ui\', message=\'Duplicate checks for the same check number\')\n
msg = Message(domain = "ui", message="Sorry, the $type $reference for the account $account is duplicated",\n
mapping={\'reference\' : reference, \'account\': bank_account.getInternalAccountNumber(),\n
\'type\': resource_value.getTitle()})\n
raise ValidationFailed, (msg,)\n
\n
reference_dict[check_reference] = {}\n
......@@ -152,12 +155,12 @@ for check_reference in reference_list:\n
result_len = reference_dict[check_reference][\'result_len\']\n
result = reference_dict[check_reference][\'result\']\n
message_tag = reference_dict[check_reference][\'message_tag\']\n
generic_model = None\n
if result_len == 0:\n
# This happens only if automatic creation is allowed. So create a new check at this point.\n
# Get a checkbook for this bank account.\n
checkbook = None\n
if resource_value is None:\n
resource_value = portal.restrictedTraverse(resource)\n
if generic_model is None:\n
composition_related_list = resource_value.getCompositionRelatedValueList()\n
if len(composition_related_list) == 0:\n
msg = Message(domain = "ui", message="Sorry, no checkbook model found")\n
......@@ -167,7 +170,7 @@ for check_reference in reference_list:\n
raise ValidationFailed, (msg,)\n
generic_model = composition_related_list[0]\n
\n
generic_model = context.portal_catalog(portal_type = \'Checkbook Model\', title = \'Generic\')[0].getObject()\n
#generic_model = context.portal_catalog(portal_type = \'Checkbook Model\', title = \'Generic\')[0].getObject()\n
# XXX it would be better to use a related key for this, but z_related_resource is too specific to\n
# movement at the moment.\n
for brain in context.portal_catalog(portal_type = \'Checkbook\',\n
......@@ -184,7 +187,7 @@ for check_reference in reference_list:\n
# This has a performance penalty, but this part of the script will rarely be called (once per bank account).\n
checkbook_tag = "checkbook_%s_%s" % (resource, bank_account_uid) \n
if context.portal_activities.countMessageWithTag(checkbook_tag) != 0:\n
msg = Message(domain=\'ui\', message="There is already a checkbook being indexed.")\n
msg = Message(domain=\'ui\', message="There are operations pending that prevent to validate this document. Please try again later.")\n
raise ValidationFailed, (msg,)\n
checkbook = context.checkbook_module.newContent(portal_type = \'Checkbook\',\n
title = \'Generic\',\n
......@@ -277,7 +280,6 @@ return check_list\n
<string>check_list</string>
<string>bank_account_uid</string>
<string>resource_value</string>
<string>generic_model</string>
<string>reference_dict</string>
<string>check_reference</string>
<string>message_tag</string>
......@@ -286,6 +288,7 @@ return check_list\n
<string>result_len</string>
<string>_write_</string>
<string>_getitem_</string>
<string>generic_model</string>
<string>checkbook</string>
<string>composition_related_list</string>
<string>brain</string>
......
......@@ -259,18 +259,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: int(cell.getPrice())</string> </value>
<value> <string>python: int(here.getTotalPrice(fast=0))</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -65,7 +65,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>transaction = state_change.object\n
<value> <string>transaction = state_change[\'object\']\n
\n
# Check getBaobabSource and getBaobabDestination\n
transaction.Base_checkBaobabSourceAndDestination()\n
......@@ -119,8 +119,9 @@ transaction.Base_checkBaobabSourceAndDestination()\n
<tuple>
<string>state_change</string>
<string>kw</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>transaction</string>
<string>_getattr_</string>
</tuple>
</value>
</item>
......
......@@ -60,17 +60,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -81,6 +78,7 @@
<string>Assignor</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -108,6 +106,7 @@
<string>Assignor</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -86,6 +86,7 @@
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -119,6 +120,7 @@
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -82,6 +82,7 @@
<string>Assignor</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -109,6 +110,7 @@
<string>Assignor</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -62,17 +62,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -83,6 +80,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -110,6 +108,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -81,6 +81,7 @@
<string>Assignor</string>
<string>DestinationAssignee</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -103,6 +104,7 @@
<string>Assignor</string>
<string>DestinationAssignee</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -65,7 +65,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>transaction = state_change.object\n
<value> <string>transaction = state_change[\'object\']\n
\n
# Check getBaobabSource and getBaobabDestination\n
transaction.Base_checkBaobabSourceAndDestination()\n
......@@ -119,8 +119,9 @@ transaction.Base_checkBaobabSourceAndDestination()\n
<tuple>
<string>state_change</string>
<string>kw</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>transaction</string>
<string>_getattr_</string>
</tuple>
</value>
</item>
......
......@@ -64,17 +64,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -85,6 +82,7 @@
<string>Assignor</string>
<string>DestinationAssignee</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -101,7 +99,6 @@
<key> <string>Modify portal content</string> </key>
<value>
<tuple>
<string>DestinationAssignee</string>
<string>Manager</string>
</tuple>
</value>
......@@ -114,6 +111,7 @@
<string>Assignor</string>
<string>DestinationAssignee</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -60,17 +60,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -81,6 +78,7 @@
<string>Assignor</string>
<string>DestinationAssignee</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -108,6 +106,7 @@
<string>Assignor</string>
<string>DestinationAssignee</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -64,17 +64,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -85,6 +82,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -118,6 +116,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -62,17 +62,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -82,6 +79,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -106,6 +104,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -64,17 +64,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -85,6 +82,7 @@
<string>Assignor</string>
<string>DestinationAssignee</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -116,6 +114,7 @@
<string>Assignor</string>
<string>DestinationAssignee</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -60,17 +60,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -80,6 +77,7 @@
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -98,6 +96,7 @@
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -64,17 +64,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -85,6 +82,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -107,6 +105,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -68,7 +68,7 @@
<value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\n
\n
transaction = state_change.object\n
transaction = state_change[\'object\']\n
\n
source = transaction.getSource()\n
destination = transaction.getDestination()\n
......@@ -134,8 +134,9 @@ transaction.CheckbookDelivery_checkAggregateStockList(at_date=at_date, node_url
<string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>transaction</string>
<string>_getattr_</string>
<string>source</string>
<string>destination</string>
<string>None</string>
......
......@@ -56,17 +56,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -78,6 +75,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -106,6 +104,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -54,17 +54,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -76,6 +73,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -104,6 +102,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -58,17 +58,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -81,6 +78,7 @@
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -114,6 +112,7 @@
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -57,17 +57,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -79,6 +76,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -107,6 +105,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -56,17 +56,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -78,6 +75,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -106,6 +104,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -68,7 +68,7 @@
<value> <string encoding="cdata"><![CDATA[
from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
transaction = state_change.object\n
transaction = state_change[\'object\']\n
\n
# Check getBaobabSource and getBaobabDestination\n
transaction.Base_checkBaobabSourceAndDestination()\n
......@@ -303,8 +303,9 @@ for line in line_list:\n
<string>state_change</string>
<string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>transaction</string>
<string>_getattr_</string>
<string>portal</string>
<string>portal_activities</string>
<string>line_list</string>
......
......@@ -68,7 +68,7 @@
<value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\n
\n
object = state_change.object\n
object = state_change[\'object\']\n
\n
# Check that the destination is not empty\n
destination = object.getDestination()\n
......@@ -134,8 +134,9 @@ if len(object.objectValues())==0:\n
<string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>object</string>
<string>_getattr_</string>
<string>destination</string>
<string>None</string>
<string>message</string>
......
......@@ -65,7 +65,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>transaction = state_change.object\n
<value> <string>transaction = state_change[\'object\']\n
\n
# Check getBaobabSource and getBaobabDestination\n
transaction.Base_checkBaobabSourceAndDestination()\n
......@@ -119,8 +119,9 @@ transaction.Base_checkBaobabSourceAndDestination()\n
<tuple>
<string>state_change</string>
<string>kw</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>transaction</string>
<string>_getattr_</string>
</tuple>
</value>
</item>
......
......@@ -62,17 +62,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -82,6 +79,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -108,6 +106,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -60,17 +60,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -80,6 +77,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -106,6 +104,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -64,17 +64,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -85,6 +82,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -118,6 +116,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -68,7 +68,7 @@
<value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\n
\n
transaction = state_change.object\n
transaction = state_change[\'object\']\n
\n
\n
source = transaction.getBaobabSource()\n
......@@ -134,8 +134,9 @@ if msg is not None:\n
<string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>transaction</string>
<string>_getattr_</string>
<string>source</string>
<string>destination</string>
<string>None</string>
......
......@@ -65,7 +65,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>transaction = state_change.object\n
<value> <string>transaction = state_change[\'object\']\n
\n
# Check getBaobabSource and getBaobabDestination\n
transaction.Base_checkBaobabSourceAndDestination()\n
......@@ -119,8 +119,9 @@ transaction.Base_checkBaobabSourceAndDestination()\n
<tuple>
<string>state_change</string>
<string>kw</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>transaction</string>
<string>_getattr_</string>
</tuple>
</value>
</item>
......
......@@ -56,17 +56,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -78,6 +75,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -106,6 +104,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -54,17 +54,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -76,6 +73,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -104,6 +102,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -58,17 +58,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -81,6 +78,7 @@
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -114,6 +112,7 @@
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -68,7 +68,7 @@
<value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\n
\n
transaction = state_change.object\n
transaction = state_change[\'object\']\n
\n
source = transaction.getBaobabSource()\n
destination = transaction.getBaobabDestination()\n
......@@ -132,8 +132,9 @@ if msg is not None:\n
<string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>transaction</string>
<string>_getattr_</string>
<string>source</string>
<string>destination</string>
<string>None</string>
......
......@@ -56,17 +56,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -78,6 +75,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -106,6 +104,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -54,17 +54,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -76,6 +73,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -104,6 +102,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -58,17 +58,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -81,6 +78,7 @@
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -114,6 +112,7 @@
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -58,17 +58,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -80,6 +77,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -108,6 +106,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -56,17 +56,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -78,6 +75,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -106,6 +104,7 @@
<string>DestinationAssignee</string>
<string>DestinationAssignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -56,17 +56,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -76,6 +73,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -95,6 +93,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -51,17 +51,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -72,6 +69,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -91,6 +89,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -58,17 +58,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -79,6 +76,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -101,6 +99,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -55,17 +55,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -75,6 +72,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -94,6 +92,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -55,17 +55,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -75,6 +72,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -94,6 +92,7 @@
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -54,17 +54,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -74,6 +71,7 @@
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -92,6 +90,7 @@
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -58,17 +58,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -79,6 +76,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -101,6 +99,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -54,17 +54,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -74,6 +71,7 @@
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -92,6 +90,7 @@
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
......@@ -58,17 +58,14 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
<global name="PersistentMapping" module="Persistence.mapping"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
......@@ -79,6 +76,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......@@ -101,6 +99,7 @@
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
</tuple>
</value>
</item>
......
274
\ No newline at end of file
276
\ 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