Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
8d08790c
Commit
8d08790c
authored
Apr 11, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Save BM as zexp rather than a folder
parent
0d067945
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
385 deletions
+32
-385
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+25
-384
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+7
-1
No files found.
product/ERP5/Document/BusinessManager.py
View file @
8d08790c
This diff is collapsed.
Click to expand it.
product/ERP5/Tool/TemplateTool.py
View file @
8d08790c
...
@@ -387,6 +387,9 @@ class TemplateTool (BaseTool):
...
@@ -387,6 +387,9 @@ class TemplateTool (BaseTool):
id = self.generateNewId()
id = self.generateNewId()
urltype, name = splittype(url)
urltype, name = splittype(url)
# Create a zexp path which would be used for Business Manager files
zexp_path = name + '
/
' + name.split('
/
')[-1] + '
.
zexp
'
if WIN and urltype and '
\\
' in name:
if WIN and urltype and '
\\
' in name:
urltype = None
urltype = None
name = url
name = url
...
@@ -398,10 +401,13 @@ class TemplateTool (BaseTool):
...
@@ -398,10 +401,13 @@ class TemplateTool (BaseTool):
del bt.uid
del bt.uid
return self[self._setObject(id, bt)]
return self[self._setObject(id, bt)]
bt = self._download_url(url, id)
bt = self._download_url(url, id)
elif os.path.exists(zexp_path):
# If the path exists, we create a Business Manager object after
# downloading it from zexp path
bt = self._download_local(os.path.normpath(zexp_path), id, format_version=3)
else:
else:
template_version_path_list = [
template_version_path_list = [
name+'
/
bp
/
template_format_version
',
name+'
/
bp
/
template_format_version
',
name+'
/
bm
/
template_format_version
',
]
]
for path in template_version_path_list:
for path in template_version_path_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