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
5b1de002
Commit
5b1de002
authored
Sep 05, 2017
by
Papa Tamsir Kane
Committed by
Papa Tamsir Kane
Sep 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_curation_request: Use less deceptive variable name for curation request line
parent
da4b246c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/CurationRequest_init.py
...ortal_skins/erp5_curation_request/CurationRequest_init.py
+2
-2
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/CurationRequest_newCurationRequestForUrl.py
...ation_request/CurationRequest_newCurationRequestForUrl.py
+1
-1
No files found.
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/CurationRequest_init.py
View file @
5b1de002
curation_record
=
context
.
curation_record_module
.
newContent
(
portal_type
=
'Curation Record'
)
curation_record
=
context
.
curation_record_module
.
newContent
(
portal_type
=
'Curation Record'
)
curation_re
cord
_line
=
context
.
newContent
(
portal_type
=
'Curation Request Line'
,
curation_re
quest
_line
=
context
.
newContent
(
portal_type
=
'Curation Request Line'
,
aggregate_value
=
curation_record
,
aggregate_value
=
curation_record
,
quantity
=
1
)
quantity
=
1
)
# set reference
# set reference
curation_re
cord
_line
.
Object_getIncrementalReference
(
generator_id_group
=
'curation_request_line_reference'
)
curation_re
quest
_line
.
Object_getIncrementalReference
(
generator_id_group
=
'curation_request_line_reference'
)
bt5/erp5_curation_request/SkinTemplateItem/portal_skins/erp5_curation_request/CurationRequest_newCurationRequestForUrl.py
View file @
5b1de002
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_re
cord
_line
=
curation_request
.
newContent
(
portal_type
=
'Curation Request Line'
,
curation_re
quest
_line
=
curation_request
.
newContent
(
portal_type
=
'Curation Request Line'
,
aggregate_value
=
context
)
aggregate_value
=
context
)
context
.
submit
()
context
.
submit
()
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