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
alecs_myu
erp5
Commits
a1139314
Commit
a1139314
authored
Jan 17, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_prototype: Use is_package while importing in test component
parent
5c872d99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
bt5/erp5_business_package/TestTemplateItem/portal_components/test.erp5.testBusinessPackage.py
...teItem/portal_components/test.erp5.testBusinessPackage.py
+8
-4
No files found.
bt5/erp5_business_package/TestTemplateItem/portal_components/test.erp5.testBusinessPackage.py
View file @
a1139314
...
...
@@ -110,16 +110,20 @@ class TestBusinessPackage(ERP5TypeTestCase):
# Export package (not needed)
package
.
export
(
path
=
package_path
,
local
=
True
)
self
.
tic
()
import_package
=
self
.
portal
.
portal_templates
.
download
(
url
=
'file:'
+
package_path
,
id
=
package
.
id
+
'1'
,
isPackage
=
True
)
import
pdb
;
pdb
.
set_trace
()
import_package
=
self
.
portal
.
portal_templates
.
download
(
url
=
'file:'
+
package_path
,
id
=
package
.
id
+
'1'
,
is_package
=
True
)
return
import_package
def
_importBusinessPackage
(
self
,
package
):
self
.
portal
.
portal_templates
.
manage_delObjects
(
package
.
getId
())
self
.
tic
()
import_package
=
self
.
portal
.
portal_templates
.
download
(
\
import_package
=
self
.
portal
.
portal_templates
.
download
(
url
=
'file:'
+
self
.
export_dir
,
id
=
package
.
getId
())
id
=
package
.
getId
(),
is_package
=
True
)
return
import_package
def
_installBusinessPackage
(
self
,
package
):
...
...
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