diff --git a/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_convertToBaseFormatAndDiscoverMetadata.xml b/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_convertToBaseFormatAndDiscoverMetadata.xml index c2cece1e133954cd956b2831986c52cb6f2dd739..c81df5fa453e8a14eabd5aef9d44727561488b60 100644 --- a/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_convertToBaseFormatAndDiscoverMetadata.xml +++ b/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_convertToBaseFormatAndDiscoverMetadata.xml @@ -54,14 +54,14 @@ <item> <key> <string>_body</string> </key> <value> <string>"""\n -This is a convenient method to call both convertToBaseFormat and\n -discoverMetadata in good order in the same transaction. This method\n -guarantees order of calling methods. convertToBaseFormat is called first,\n -and discoverMetadata is called after.\n + This is a convenient method to call both convertToBaseFormat and\n + discoverMetadata in good order in the same transaction. \n + This method guarantees order of calling methods.\n """\n -convertToBaseFormat = getattr(context, \'convertToBaseFormat\', None)\n -if convertToBaseFormat is not None:\n - convertToBaseFormat()\n +\n +if context.isSupportBaseDataConversion():\n + context.convertToBaseFormat()\n +\n return context.discoverMetadata(file_name, user_login)\n </string> </value> </item> @@ -101,11 +101,8 @@ return context.discoverMetadata(file_name, user_login)\n <tuple> <string>file_name</string> <string>user_login</string> - <string>getattr</string> - <string>context</string> - <string>None</string> - <string>convertToBaseFormat</string> <string>_getattr_</string> + <string>context</string> </tuple> </value> </item> diff --git a/bt5/erp5_ingestion/bt/revision b/bt5/erp5_ingestion/bt/revision index 27a37eb577dd83f8d4da502a4c1cacd0d7dbcb83..bd753ccc4b9f3ab7d4f134e4994d77da191b3537 100644 --- a/bt5/erp5_ingestion/bt/revision +++ b/bt5/erp5_ingestion/bt/revision @@ -1 +1 @@ -93 \ No newline at end of file +94 \ No newline at end of file