Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Papa Tamsir Kane
erp5
Commits
eda07473
Commit
eda07473
authored
Sep 04, 2017
by
Papa Tamsir Kane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_curation_request: Remove no longer necessary scripts and comments
parent
d59ec232
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
10 additions
and
293 deletions
+10
-293
bt5/erp5_curation_request/PropertySheetTemplateItem/portal_property_sheets/CurationRequest/preparation_date_property.xml
...erty_sheets/CurationRequest/preparation_date_property.xml
+0
-34
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/CurationRequestLine_getDecisions.py
...erp5_curation_request/CurationRequestLine_getDecisions.py
+0
-2
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/CurationRequest_getBusinessProcessList.py
...uration_request/CurationRequest_getBusinessProcessList.py
+0
-1
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/CurationRequest_newCurationRequestForUrl.py
...ation_request/CurationRequest_newCurationRequestForUrl.py
+0
-2
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/ptk_customScript.py
...em/portal_skins/erp5_curation_request/ptk_customScript.py
+0
-5
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/ptk_customScript.xml
...m/portal_skins/erp5_curation_request/ptk_customScript.xml
+0
-62
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_cancelCuratedDocument.py
...workflow/scripts/CurationRequest_cancelCuratedDocument.py
+1
-8
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_createDecision.py
...action_workflow/scripts/CurationRequest_createDecision.py
+0
-15
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_createDecision.xml
...ction_workflow/scripts/CurationRequest_createDecision.xml
+0
-71
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_localBuild.py
...nteraction_workflow/scripts/CurationRequest_localBuild.py
+0
-7
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_publishCuratedDocument.py
...orkflow/scripts/CurationRequest_publishCuratedDocument.py
+1
-8
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_submitCurationRequestLineList.py
.../scripts/CurationRequest_submitCurationRequestLineList.py
+0
-9
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_submitCurationRequestLineList.xml
...scripts/CurationRequest_submitCurationRequestLineList.xml
+0
-62
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_workflow/scripts/CurationRequest_setPreparationDate.py
...st_workflow/scripts/CurationRequest_setPreparationDate.py
+0
-5
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_workflow/scripts/CurationRequest_updateSimulation.py
...uest_workflow/scripts/CurationRequest_updateSimulation.py
+1
-0
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_workflow/scripts/CurationRequest_updateSimulation.xml
...est_workflow/scripts/CurationRequest_updateSimulation.xml
+1
-1
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_workflow/transitions/submit.xml
...workflow/curation_request_workflow/transitions/submit.xml
+1
-1
bt5/erp5_curation_request/bt/template_base_category_list
bt5/erp5_curation_request/bt/template_base_category_list
+1
-0
bt5/erp5_curation_request/bt/template_keep_path_list
bt5/erp5_curation_request/bt/template_keep_path_list
+4
-0
No files found.
bt5/erp5_curation_request/PropertySheetTemplateItem/portal_property_sheets/CurationRequest/preparation_date_property.xml
deleted
100644 → 0
View file @
d59ec232
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/date
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
preparation_date_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/CurationRequestLine_getDecisions.py
View file @
eda07473
decision_lines
=
[]
decision_lines
=
[]
#decision_list.extend(context.getCausalityRelatedValueList())
for
decision
in
context
.
getCausalityRelatedValueList
():
for
decision
in
context
.
getCausalityRelatedValueList
():
decision_lines
.
extend
(
decision
.
contentValues
(
filter
=
{
'portal_type'
:
'Decision Line'
}))
decision_lines
.
extend
(
decision
.
contentValues
(
filter
=
{
'portal_type'
:
'Decision Line'
}))
#raise MyException(decision.contentValues(filter={'portal_type': 'Decision Line'}))
return
decision_lines
return
decision_lines
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/CurationRequest_getBusinessProcessList.py
View file @
eda07473
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
result
=
context
.
portal_catalog
(
portal_type
=
"Business Process"
,
result
=
context
.
portal_catalog
(
portal_type
=
"Business Process"
,
sort_on
=
((
'int_index'
,
'ASC'
,),))
sort_on
=
((
'int_index'
,
'ASC'
,),))
# validation_state = 'validated')
bps
=
[
r
for
r
in
result
if
r
.
getReference
().
startswith
(
'curation_request'
)]
bps
=
[
r
for
r
in
result
if
r
.
getReference
().
startswith
(
'curation_request'
)]
return
bps
return
bps
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/CurationRequest_newCurationRequestForUrl.py
View file @
eda07473
#portal = context.getPortalObject()
#url = portal.restrictedTraverse(url_relative_url)
if
context
.
getAggregateRelatedValue
()
is
None
:
if
context
.
getAggregateRelatedValue
()
is
None
:
curation_request
=
context
.
curation_request_module
.
newContent
(
portal_type
=
'Curation Request'
)
curation_request
=
context
.
curation_request_module
.
newContent
(
portal_type
=
'Curation Request'
)
curation_record_line
=
curation_request
.
newContent
(
portal_type
=
'Curation Request Line'
,
curation_record_line
=
curation_request
.
newContent
(
portal_type
=
'Curation Request Line'
,
...
...
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/ptk_customScript.py
deleted
100644 → 0
View file @
d59ec232
result
=
context
.
portal_catalog
(
portal_type
=
'Alarm'
,
id
=
'create_curation_request_for_new_url'
)
class
MyException
(
Exception
):
pass
raise
MyException
([
r
for
r
in
result
])
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/ptk_customScript.xml
deleted
100644 → 0
View file @
d59ec232
<?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>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ptk_customScript
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_cancelCuratedDocument.py
View file @
eda07473
"""
"""
publish/cancell all related Curation Records / Urls according to curation request state
cancell all related Curation Records / Urls
"""
"""
curation_request
=
state_change
[
'object'
]
curation_request
=
state_change
[
'object'
]
curation_request_lines
=
curation_request
.
contentValues
(
filter
=
{
'portal_type'
:
'Curation Request Line'
})
curation_request_lines
=
curation_request
.
contentValues
(
filter
=
{
'portal_type'
:
'Curation Request Line'
})
# we set curations request lines state according to previous state of curation request
'''
class MyException(Exception):
pass
raise MyException('ptk: fix url/curation record workflow then fix this script')
'''
for
curation_request_line
in
curation_request_lines
:
for
curation_request_line
in
curation_request_lines
:
curated_object
=
curation_request_line
.
getAggregateValue
()
curated_object
=
curation_request_line
.
getAggregateValue
()
curated_object
.
cancel
()
curated_object
.
cancel
()
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_createDecision.py
deleted
100644 → 0
View file @
d59ec232
"""
When a Curation Request is set to Pending state,
a Decision is created with its causality set to the Curation Request
"""
portal
=
context
.
getPortalObject
()
translate
=
portal
.
Base_translateString
curation_request
=
state_change
[
'object'
]
new_decision_title
=
translate
(
'decision_for_{}'
.
format
(
curation_request
.
getTitle
()))
new_decision
=
context
.
decision_module
.
newContent
(
portal_type
=
'Decision'
,
title
=
new_decision_title
,
reference
=
new_decision_title
,
causality_value
=
curation_request
)
new_decision
.
post
()
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_createDecision.xml
deleted
100644 → 0
View file @
d59ec232
<?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>
_params
</string>
</key>
<value>
<string>
state_change
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
CurationRequest_createDecision
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_localBuild.py
View file @
eda07473
curation_request
=
state_change
[
'object'
]
curation_request
=
state_change
[
'object'
]
'''
class MyException(Exception):
pass
raise MyException(curation_request.getMovementList())
'''
curation_request
.
localBuild
()
curation_request
.
localBuild
()
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_publishCuratedDocument.py
View file @
eda07473
"""
"""
publish
/cancell all related Curation Records / Urls according to curation request state
publish
all related Curation Records / Urls
"""
"""
curation_request
=
state_change
[
'object'
]
curation_request
=
state_change
[
'object'
]
curation_request_lines
=
curation_request
.
contentValues
(
filter
=
{
'portal_type'
:
'Curation Request Line'
})
curation_request_lines
=
curation_request
.
contentValues
(
filter
=
{
'portal_type'
:
'Curation Request Line'
})
# we set curations request lines state according to previous state of curation request
'''
class MyException(Exception):
pass
raise MyException('ptk: fix url/curation record workflow then fix this script')
'''
for
curation_request_line
in
curation_request_lines
:
for
curation_request_line
in
curation_request_lines
:
curated_object
=
curation_request_line
.
getAggregateValue
()
curated_object
=
curation_request_line
.
getAggregateValue
()
if
curated_object
is
not
None
:
if
curated_object
is
not
None
:
...
...
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_submitCurationRequestLineList.py
deleted
100644 → 0
View file @
d59ec232
"""
Post all contained Curation Request Line List.
"""
curation_request
=
state_change
[
'object'
]
translate
=
curation_request
.
Base_translateString
for
curation_request_line
in
curation_request
.
contentValues
(
filter
=
{
'portal_type'
:
'Curation Request Line'
}):
curation_request_line
.
submit
()
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_interaction_workflow/scripts/CurationRequest_submitCurationRequestLineList.xml
deleted
100644 → 0
View file @
d59ec232
<?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>
_params
</string>
</key>
<value>
<string>
state_change
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
CurationRequest_submitCurationRequestLineList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_workflow/scripts/CurationRequest_setPreparationDate.py
deleted
100644 → 0
View file @
d59ec232
document
=
state_change
[
'object'
]
if
document
.
getPreparationDate
()
is
None
:
# Store the first preparation date.
document
.
setPreparationDate
(
DateTime
())
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_workflow/scripts/CurationRequest_updateSimulation.py
0 → 100644
View file @
eda07473
state_change
[
'object'
].
updateSimulation
(
expand_root
=
1
)
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_workflow/scripts/CurationRequest_
setPreparationDate
.xml
→
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_workflow/scripts/CurationRequest_
updateSimulation
.xml
View file @
eda07473
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
CurationRequest_
setPreparationDate
</string>
</value>
<value>
<string>
CurationRequest_
updateSimulation
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_curation_request/WorkflowTemplateItem/portal_workflow/curation_request_workflow/transitions/submit.xml
View file @
eda07473
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
after_script_name
</string>
</key>
<key>
<string>
after_script_name
</string>
</key>
<value>
<string>
CurationRequest_
setPreparationDate
</string>
</value>
<value>
<string>
CurationRequest_
updateSimulation
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
...
...
bt5/erp5_curation_request/bt/template_base_category_list
View file @
eda07473
trade_phase/curation_request
trade_phase/curation_request
trade_phase/curation_request/approve
trade_phase/curation_request/approve
trade_phase/curation_request/approve/legal
trade_state/curation_request
trade_state/curation_request
trade_state/curation_request/submitted
trade_state/curation_request/submitted
\ No newline at end of file
bt5/erp5_curation_request/bt/template_keep_path_list
0 → 100644
View file @
eda07473
portal_rules/curation_request*
portal_rules/curation_request*/**
portal_rules/decision_simulation_rule
portal_rules/decision_simulation_rule/**
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment