Commit 55fabe2c authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: Workflow History must always be kept.

Avoid an extra step for developers by keeping the last Workflow History for
Components by default.
parent 75ccaece
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
148
\ No newline at end of file
149
\ No newline at end of file
portal_components/extension.erp5.ERP5Administration
portal_components/extension.erp5.Security
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
279
\ No newline at end of file
280
\ No newline at end of file
portal_components/document.erp5.ApparelFabric
portal_components/document.erp5.ApparelShape
portal_components/document.erp5.ApparelComponent
portal_components/document.erp5.ApparelModel
portal_components/document.erp5.ApparelAssortment
portal_components/document.erp5.ApparelColourRange
portal_components/document.erp5.ApparelSize
portal_components/document.erp5.ApparelMeasurement
portal_components/document.erp5.ApparelCloth
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-30 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
501
\ No newline at end of file
502
\ No newline at end of file
portal_components/extension.erp5.CheckbookReceptionImport
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
23
\ No newline at end of file
24
\ No newline at end of file
portal_components/extension.erp5.Barcode
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
1046
1047
\ No newline at end of file
portal_components/extension.erp5.BaseMigration
portal_components/extension.erp5.BarcodeUtils
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
12
\ No newline at end of file
13
\ No newline at end of file
portal_components/extension.erp5.BearerToken
portal_components/test.erp5.testERP5BearerToken
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
4
\ No newline at end of file
5
\ No newline at end of file
portal_components/document.erp5.Person
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
287
288
\ No newline at end of file
portal_components/extension.erp5.Ecommerce
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
portal_components/extension.erp5.ConfigurationTemplate_readOOoCalcFile
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
28
\ No newline at end of file
29
\ No newline at end of file
portal_components/test.erp5.testMaxmaDemoConfigurationWorkflow
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
10
\ No newline at end of file
11
\ No newline at end of file
portal_components/test.erp5.testRunMyDocConfigurationWorkflow
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
666
\ No newline at end of file
667
\ No newline at end of file
portal_components/test.erp5.testStandardConfigurationWorkflow
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
680
\ No newline at end of file
681
\ No newline at end of file
portal_components/extension.erp5.ConfiguratorTestUtils
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
60
\ No newline at end of file
61
\ No newline at end of file
portal_components/test.erp5.testUNGConfigurationWorkflow
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
423
\ No newline at end of file
424
\ No newline at end of file
portal_components/document.erp5.CredentialRequest
portal_components/document.erp5.CredentialRecovery
portal_components/extension.erp5.Credential
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
665
666
\ No newline at end of file
portal_components/extension.erp5.CRMMigration
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
44
\ No newline at end of file
45
\ No newline at end of file
portal_components/extension.erp5.DataProtectionRequestUtils
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
10
\ No newline at end of file
11
\ No newline at end of file
portal_components/document.erp5.DataSet
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
74
\ No newline at end of file
75
\ No newline at end of file
portal_components/extension.erp5.Development
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
1275
1276
\ No newline at end of file
portal_components/extension.erp5.DocumentManagement
portal_components/extension.erp5.DocumentSecurity
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
23
\ No newline at end of file
24
\ No newline at end of file
portal_components/extension.erp5.DocumentConversion
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
23
\ No newline at end of file
24
\ No newline at end of file
portal_components/document.erp5.DummyDelivery
portal_components/document.erp5.DummyMovement
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-30 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
763
764
\ No newline at end of file
portal_components/document.erp5.EGovTypeInformation
portal_components/document.erp5.Person
portal_components/extension.erp5.SetUpEGovInstance
portal_components/extension.erp5.Captcha
portal_components/extension.erp5.ERP5EGov_Extensions
portal_components/extension.erp5.EGovSecurity
portal_components/test.erp5.TestEGovMixin
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-30 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
31
\ No newline at end of file
32
\ No newline at end of file
portal_components/document.erp5.EmailReader
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
675
676
\ No newline at end of file
portal_components/extension.erp5.Glossary
portal_components/extension.erp5.ProxyFieldUtils
portal_components/extension.erp5.PythonScriptParserUtility
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
portal_components/test.erp5.testDiscussionThread
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
147
\ No newline at end of file
148
\ No newline at end of file
portal_components/test.erp5.testLiveIngestion
\ No newline at end of file
portal_components/test.erp5.testInotifyTool
\ No newline at end of file
portal_components/test.erp5.testSOAPBinding
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
69
70
\ No newline at end of file
portal_components/extension.erp5.VObject_export
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
11
\ No newline at end of file
12
\ No newline at end of file
portal_components/test.erp5.prepareMobileFunctionalTest
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
portal_components/document.erp5.PaypalService
portal_components/test.erp5.testERP5PaypalSecurePayment
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
portal_components/document.erp5.PayzenService
portal_components/test.erp5.testERP5PayzenSecurePayment
\ No newline at end of file
portal_components/document.erp5.TileImage
portal_components/document.erp5.TileImageTransformed
portal_components/extension.erp5.ERP5ZoomifyImage
portal_components/extension.erp5.ERP5SafeImage_Selenium
portal_components/test.erp5.testSafeImage
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
27
\ No newline at end of file
28
\ No newline at end of file
portal_components/test.erp5.testERP5SocialContracts
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
94
\ No newline at end of file
95
\ No newline at end of file
portal_components/document.erp5.SoftwareLicence
portal_components/document.erp5.SoftwareProduct
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
4
\ No newline at end of file
5
\ No newline at end of file
portal_components/extension.erp5.OpenAMLogout
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
92
\ No newline at end of file
93
\ No newline at end of file
portal_components/extension.erp5.SyncMLTool
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
4
\ No newline at end of file
5
\ No newline at end of file
portal_components/test.erp5.testSyncMLAsynchronousEngine
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-30 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
636
\ No newline at end of file
637
\ No newline at end of file
portal_components/document.erp5.WebServiceRequestGroup
portal_components/document.erp5.WebServiceConnector
portal_components/document.erp5.WebServiceRequest
portal_components/extension.erp5.TioSafeBaseConduit
portal_components/extension.erp5.TioSafeBrain
portal_components/extension.erp5.TioSafeDoNothingConduit
portal_components/extension.erp5.TioSafeResourceConduit
portal_components/extension.erp5.TioSafeTool
portal_components/extension.erp5.TioSafeNodeConduit
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
1171
1172
\ No newline at end of file
portal_components/document.erp5.DuplicateInventoryConstraint
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
portal_components/extension.erp5.ERP5Zuite
portal_components/extension.erp5.MailHostUtils
portal_components/extension.erp5.SeleniumTestUtils
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
599
\ No newline at end of file
600
\ No newline at end of file
portal_components/extension.erp5.ERP5UpgraderUtils
portal_components/extension.erp5.ERP5UpgraderCompatibility
portal_components/test.erp5.testLiveUpgrader
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
67
\ No newline at end of file
68
\ No newline at end of file
portal_components/extension.erp5.ShaCache
portal_components/test.erp5.ShaCacheMixin
portal_components/test.erp5.testShaCache
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
74
\ No newline at end of file
75
\ No newline at end of file
portal_components/document.erp5.WebSite
portal_components/extension.erp5.ShaDir
portal_components/test.erp5.testShaDir
portal_components/test.erp5.ShaDirMixin
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
35
\ No newline at end of file
36
\ No newline at end of file
portal_components/test.erp5.testUNGSecurity
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
portal_components/test.erp5.testUNG
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
173
174
\ No newline at end of file
portal_components/extension.erp5.WizardUtils
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
portal_components/extension.erp5.HTML5
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
30
\ No newline at end of file
31
\ No newline at end of file
portal_components/test.erp5.testShaDirExternal
portal_components/test.erp5.testShaCacheExternal
portal_components/test.erp5.ShaSecurityMixin
portal_components/test.erp5.testShaCacheSecurity
portal_components/test.erp5.testShaDirSecurity
\ No newline at end of file
portal_components/test.erp5.testConflictResolution
\ No newline at end of file
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
17
\ No newline at end of file
18
\ No newline at end of file
portal_components/extension.erp5.TioLiveDecoupleInstance
\ No newline at end of file
......@@ -4058,6 +4058,14 @@ class DocumentTemplateItem(FilesystemToZodbTemplateItem):
"Document",
class_id + ".py")
def isKeepWorkflowObjectLastHistoryOnly(self, path):
"""
Component Validation Workflow last History of ZODB Components must always be
kept, without explicitly adding them to the field which requires an extra
action for developers
"""
return path.startswith(self._tool_id + '/')
def _removeAllButLastWorkflowHistory(self, obj):
"""
Only export the last state of component_validation_workflow, because only
......@@ -6196,11 +6204,6 @@ Business Template is a set of definitions, such as skins, portal types and categ
if migrated_id_list:
template_id_list_method(migrated_id_list)
path_list = self.getTemplateKeepLastWorkflowHistoryOnlyPathList()
path_list.extend([ ('portal_components/' + id_)
for id_ in migrated_id_list ])
self.setTemplateKeepLastWorkflowHistoryOnlyPathList(path_list)
component_dict = component_portal_type_dict.get('Document Component')
if component_dict:
......
2013-09-03 arnaud.fontaine
* ZODB Components: Workflow History must always be kept, so avoid an extra step for developers.
2013-08-28 arnaud.fontaine
* ZODB Components: Migrate Documents, Extensions and Tests.
......
portal_components/extension.erp5.StandardSecurity
portal_components/extension.erp5.DocumentExtraction
portal_components/test.erp5.testActivityTool
\ No newline at end of file
......@@ -7410,9 +7410,6 @@ class TestDocumentTemplateItem(BusinessTemplateMixin):
sequence['current_bt'].setProperty(self.template_property,
sequence['document_id'])
sequence['current_bt'].setTemplateKeepLastWorkflowHistoryOnlyPathList(
'portal_components/' + sequence['document_id'])
def stepCheckZodbDocumentWorkflowHistoryUnchanged(self, sequence=None, **kw):
component = getattr(self.getPortalObject().portal_components,
sequence['document_id'], None)
......@@ -7612,9 +7609,6 @@ class TestDocumentTemplateItem(BusinessTemplateMixin):
component_id = '%s.erp5.%s' % (self.component_id_prefix,
sequence.get('document_title'))
self.assertEquals(bt.getTemplateKeepLastWorkflowHistoryOnlyPathList(),
['portal_components/' + component_id])
self.assertEquals(bt.getProperty(self.template_property),
[component_id])
......
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