Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Kwabena Antwi-Boasiako
slapos
Commits
de0f3a95
Commit
de0f3a95
authored
Aug 23, 2011
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MySQL : Removing useless and misleading for loop
parent
5529534c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
slapos/recipe/mysql/__init__.py
slapos/recipe/mysql/__init__.py
+6
-10
No files found.
slapos/recipe/mysql/__init__.py
View file @
de0f3a95
...
@@ -267,16 +267,12 @@ class Recipe(BaseSlapRecipe):
...
@@ -267,16 +267,12 @@ class Recipe(BaseSlapRecipe):
mysql_conf
))
mysql_conf
))
mysql_script_list
=
[]
mysql_script_list
=
[]
for
x_database
,
x_user
,
x_password
in
\
[(
mysql_conf
[
'mysql_database'
],
mysql_script_list
.
append
(
pkg_resources
.
resource_string
(
__name__
,
mysql_conf
[
'mysql_user'
],
'template/initmysql.sql.in'
)
%
{
mysql_conf
[
'mysql_password'
]),
'mysql_database'
:
mysql_conf
[
'mysql_database'
],
]:
'mysql_user'
:
mysql_conf
[
'mysql_user'
],
mysql_script_list
.
append
(
pkg_resources
.
resource_string
(
__name__
,
'mysql_password'
:
mysql_conf
[
'mysql_password'
]})
'template/initmysql.sql.in'
)
%
{
'mysql_database'
:
x_database
,
'mysql_user'
:
x_user
,
'mysql_password'
:
x_password
})
mysql_script_list
.
append
(
'EXIT'
)
mysql_script_list
.
append
(
'EXIT'
)
mysql_script
=
'
\
n
'
.
join
(
mysql_script_list
)
mysql_script
=
'
\
n
'
.
join
(
mysql_script_list
)
self
.
path_list
.
extend
(
zc
.
buildout
.
easy_install
.
scripts
([(
'mysql_update'
,
self
.
path_list
.
extend
(
zc
.
buildout
.
easy_install
.
scripts
([(
'mysql_update'
,
...
...
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