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
Mikolaï Krol
erp5
Commits
6f2ea57c
Commit
6f2ea57c
authored
Dec 23, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify and reduce code.
parent
6433544c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
17 deletions
+6
-17
product/ERP5Configurator/Tool/ConfiguratorTool.py
product/ERP5Configurator/Tool/ConfiguratorTool.py
+6
-17
No files found.
product/ERP5Configurator/Tool/ConfiguratorTool.py
View file @
6f2ea57c
...
...
@@ -408,9 +408,10 @@ class ConfiguratorTool(BaseTool):
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'startInstallation'
)
def
startInstallation
(
self
,
business_configuration
,
REQUEST
):
""" Start installation process as an activity which will
query generation
server and
download/install bt5 template files and meanwhile offer
""" Start installation process as an activity which will
download/install bt5 template files and meanwhile offer
user a nice GUI to observe what's happening. """
global
installation_status
# init installation status
bt5_file_list
=
len
(
business_configuration
.
contentValues
(
...
...
@@ -420,19 +421,7 @@ class ConfiguratorTool(BaseTool):
installation_status
[
'activity_list'
]
=
[]
active_process
=
self
.
portal_activities
.
newActiveProcess
()
REQUEST
.
set
(
'active_process_id'
,
active_process
.
getId
())
self
.
activate
(
active_process
=
active_process
,
tag
=
'initialERP5Setup'
).
initialERP5Setup
(
business_configuration
.
getRelativeUrl
(),
request_restore_dict
)
business_configuration
.
activate
(
active_process
=
active_process
,
tag
=
'initialERP5Setup'
).
build
()
return
self
.
ConfiguratorTool_viewInstallationStatus
(
REQUEST
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'initialERP5Setup'
)
def
initialERP5Setup
(
self
,
business_configuration
,
request_restore_dict
=
{}):
""" Get from remote generation server customized bt5 template files
and then install them. """
# restore some REQUEST variables as this method is executed in an activity
# and there's no access to real original REQUEST
for
key
,
value
in
request_restore_dict
.
items
():
self
.
REQUEST
.
set
(
key
,
value
)
bc
=
self
.
restrictedTraverse
(
business_configuration
)
bc
.
build
()
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