Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
dae20bb9
Commit
dae20bb9
authored
Dec 29, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BusinessSnapshot: Add item which belongs to installable BT only while building snapshot
parent
e97ac155
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
product/ERP5/Document/BusinessSnapshot.py
product/ERP5/Document/BusinessSnapshot.py
+8
-5
No files found.
product/ERP5/Document/BusinessSnapshot.py
View file @
dae20bb9
...
...
@@ -171,9 +171,10 @@ class BusinessSnapshot(Folder):
# new snapshot
if
last_snapshot
:
# [1]: Extend the item_list with list of items from last snapshot
new_item_list
.
extend
(
last_snapshot
.
getItemList
())
new_item_path_list
.
extend
(
last_snapshot
.
getItemPathList
())
for
item
in
last_snapshot
.
objectValues
():
if
item
.
getFollowUpValue
().
getAvailabilityState
()
==
'installable'
:
new_item_list
.
append
(
item
)
new_item_path_list
.
extend
(
item
.
getProperty
(
'item_path'
))
# Get next predecessor commit for this snapshot using the equivalent commit
# Notice that we don't use the snapshot to get the next commit as the
...
...
@@ -191,8 +192,10 @@ class BusinessSnapshot(Folder):
self
.
aq_parent
.
objectValues
(
portal_type
=
'Business Commit'
),
key
=
(
lambda
x
:
x
.
getCreationDate
()))
new_item_list
.
extend
(
oldest_commit
.
objectValues
())
new_item_path_list
.
extend
(
oldest_commit
.
getItemPathList
())
for
item
in
oldest_commit
.
objectValues
():
if
item
.
getFollowUpValue
().
getAvailabilityState
()
==
'installable'
:
new_item_list
.
append
(
item
)
new_item_path_list
.
extend
(
item
.
getProperty
(
'item_path'
))
next_commit
=
oldest_commit
.
getPredecessorRelatedValue
()
...
...
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