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
74f29f34
Commit
74f29f34
authored
Apr 11, 2017
by
Ayush Tiwari
Committed by
Ayush Tiwari
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Save BM as zexp rather than a folder
parent
86bc5346
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
387 deletions
+34
-387
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+25
-384
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+9
-3
No files found.
product/ERP5/Document/BusinessManager.py
View file @
74f29f34
This diff is collapsed.
Click to expand it.
product/ERP5/Tool/TemplateTool.py
View file @
74f29f34
...
...
@@ -386,8 +386,11 @@ class TemplateTool (BaseTool):
if id is None:
id = self.generateNewId()
urltype, path = splittype(url)
if WIN and urltype and '
\\
' in path:
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:
urltype = None
path = url
if urltype and urltype != '
file
':
...
...
@@ -398,10 +401,13 @@ class TemplateTool (BaseTool):
del bt.uid
return self[self._setObject(id, bt)]
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:
template_version_path_list = [
name+'
/
bp
/
template_format_version
',
name+'
/
bm
/
template_format_version
',
]
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