[Erp5-report] r41858 nicolas - in /erp5/trunk/bt5/erp5_crm: PathTemplateItem/portal_contrib...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Dec 29 14:18:51 CET 2010
Author: nicolas
Date: Wed Dec 29 14:18:50 2010
New Revision: 41858
URL: http://svn.erp5.org?rev=41858&view=rev
Log:
This script is now obsoleted, because if getPropertyDictFromContent return
a different portal_type, the Event will migrate to this portal_type during
discoverMetatada process.
Contribution Predicates must focus on filename, content_type and
content_type guessed from data criterions.
Removed:
erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/IngestionFile_findTypeNameForEvent.xml
Modified:
erp5/trunk/bt5/erp5_crm/PathTemplateItem/portal_contribution_registry/crm_ingestion.xml
erp5/trunk/bt5/erp5_crm/bt/revision
Modified: erp5/trunk/bt5/erp5_crm/PathTemplateItem/portal_contribution_registry/crm_ingestion.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/PathTemplateItem/portal_contribution_registry/crm_ingestion.xml?rev=41858&r1=41857&r2=41858&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/PathTemplateItem/portal_contribution_registry/crm_ingestion.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/PathTemplateItem/portal_contribution_registry/crm_ingestion.xml [utf8] Wed Dec 29 14:18:50 2010
@@ -66,9 +66,7 @@
<item>
<key> <string>test_method_id</string> </key>
<value>
- <tuple>
- <string>IngestionFile_findTypeNameForEvent</string>
- </tuple>
+ <tuple/>
</value>
</item>
<item>
Removed: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/IngestionFile_findTypeNameForEvent.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/IngestionFile_findTypeNameForEvent.xml?rev=41857&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/IngestionFile_findTypeNameForEvent.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/IngestionFile_findTypeNameForEvent.xml (removed)
@@ -1,79 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>Script_magic</string> </key>
- <value> <int>3</int> </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>from Products.ERP5Type.Document import newTempEvent\n
-\n
-event = newTempEvent(context, \'subobject\', data=context.getData())\n
-\n
-# First, try to find portal type from content.\n
-portal_type = event.getPropertyDictFromContent().get(\'portal_type\', None)\n
-\n
-if portal_type is not None:\n
- return portal_type\n
-\n
-# If we cannot find portal type from content, return default one defined in\n
-# predicate\n
-return predicate.getDestinationPortalType()\n
-</string> </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string>predicate</string> </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>IngestionFile_findTypeNameForEvent</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Modified: erp5/trunk/bt5/erp5_crm/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/revision?rev=41858&r1=41857&r2=41858&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_crm/bt/revision [utf8] Wed Dec 29 14:18:50 2010
@@ -1 +1 @@
-515
\ No newline at end of file
+516
\ No newline at end of file
More information about the Erp5-report
mailing list