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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yusei Tahara
erp5
Commits
c3370910
Commit
c3370910
authored
May 22, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Commit transaction after building a new BM
parent
4c397dd6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+17
-1
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
c3370910
...
@@ -35,6 +35,7 @@ import shutil
...
@@ -35,6 +35,7 @@ import shutil
import
sys
import
sys
import
hashlib
import
hashlib
import
pprint
import
pprint
import
transaction
from
Acquisition
import
Implicit
,
Explicit
from
Acquisition
import
Implicit
,
Explicit
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
...
@@ -793,7 +794,8 @@ class TemplateTool (BaseTool):
...
@@ -793,7 +794,8 @@ class TemplateTool (BaseTool):
kw
[
'removable_sub_object_path'
]
=
removable_sub_object_path
kw
[
'removable_sub_object_path'
]
=
removable_sub_object_path
migrated_bm
.
build
(
**
kw
)
migrated_bm
.
build
(
**
kw
)
# Commit transaction to generate all oids before exporting
transaction
.
commit
()
# Export the newly built business package to the export directory
# Export the newly built business package to the export directory
migrated_bm
.
export
(
path
=
export_dir
,
local
=
True
)
migrated_bm
.
export
(
path
=
export_dir
,
local
=
True
)
...
@@ -1054,10 +1056,24 @@ class TemplateTool (BaseTool):
...
@@ -1054,10 +1056,24 @@ class TemplateTool (BaseTool):
'title'
:
'erp5_mysql_ndb_catalog'
,
'title'
:
'erp5_mysql_ndb_catalog'
,
'version'
:
'1.0'
}
'version'
:
'1.0'
}
bm_dict_4
=
{
'copyright_list'
:
[
'Copyright (c) 2001-2017 Nexedi SA'
],
'dependency_list'
:
[
'erp5_view_style'
,],
'description'
:
''
,
'force_install'
:
0
,
'id'
:
'erp5_jquery'
,
'license'
:
'GPL'
,
'revision'
:
''
,
'test_dependency_list'
:
[],
'provision_list'
:
[],
'title'
:
'erp5_jquery'
,
'version'
:
'1.0'
}
if
repository
.
endswith
(
'/bootstrap'
):
if
repository
.
endswith
(
'/bootstrap'
):
property_dict_list
.
append
(
bm_dict_1
)
property_dict_list
.
append
(
bm_dict_1
)
property_dict_list
.
append
(
bm_dict_2
)
property_dict_list
.
append
(
bm_dict_2
)
property_dict_list
.
append
(
bm_dict_3
)
property_dict_list
.
append
(
bm_dict_3
)
property_dict_list
.
append
(
bm_dict_4
)
self
.
repository_dict
[
repository
]
=
tuple
(
property_dict_list
)
self
.
repository_dict
[
repository
]
=
tuple
(
property_dict_list
)
...
...
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