Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
597f8eaa
Commit
597f8eaa
authored
Jun 27, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not hardcode .bt5 into business templates name.
TemplateTool API can find the appropriate name for the file.
parent
0970df8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
product/ERP5Configurator/Document/StandardBT5ConfiguratorItem.py
.../ERP5Configurator/Document/StandardBT5ConfiguratorItem.py
+2
-3
No files found.
product/ERP5Configurator/Document/StandardBT5ConfiguratorItem.py
View file @
597f8eaa
...
@@ -65,11 +65,10 @@ class StandardBT5ConfiguratorItem(ConfiguratorItemMixin, XMLObject):
...
@@ -65,11 +65,10 @@ class StandardBT5ConfiguratorItem(ConfiguratorItemMixin, XMLObject):
template_tool
=
getToolByName
(
portal
,
'portal_templates'
)
template_tool
=
getToolByName
(
portal
,
'portal_templates'
)
installed_bt_list
=
template_tool
.
getInstalledBusinessTemplateTitleList
()
installed_bt_list
=
template_tool
.
getInstalledBusinessTemplateTitleList
()
filename_bt5_id
=
'%s.bt5'
%
bt5_id
if
business_configuration
.
isStandardBT5
(
bt5_id
):
if
business_configuration
.
isStandardBT5
(
filename_bt5_id
):
if
bt5_id
not
in
installed_bt_list
:
if
bt5_id
not
in
installed_bt_list
:
update_catalog
=
self
.
getUpdateCatalog
(
0
)
update_catalog
=
self
.
getUpdateCatalog
(
0
)
bt_url
=
template_tool
.
getBusinessTemplateUrl
(
None
,
filename_
bt5_id
)
bt_url
=
template_tool
.
getBusinessTemplateUrl
(
None
,
bt5_id
)
template_tool
.
updateBusinessTemplateFromUrl
(
bt_url
,
template_tool
.
updateBusinessTemplateFromUrl
(
bt_url
,
update_catalog
=
update_catalog
)
update_catalog
=
update_catalog
)
LOG
(
"StandardBT5ConfiguratorItem"
,
INFO
,
LOG
(
"StandardBT5ConfiguratorItem"
,
INFO
,
...
...
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