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
44d03219
Commit
44d03219
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
3d7f3ca3
Changes
1
Show 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 @
44d03219
...
@@ -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_conf
[
'mysql_user'
],
mysql_conf
[
'mysql_password'
]),
]:
mysql_script_list
.
append
(
pkg_resources
.
resource_string
(
__name__
,
mysql_script_list
.
append
(
pkg_resources
.
resource_string
(
__name__
,
'template/initmysql.sql.in'
)
%
{
'template/initmysql.sql.in'
)
%
{
'mysql_database'
:
x_database
,
'mysql_database'
:
mysql_conf
[
'mysql_database'
]
,
'mysql_user'
:
x_user
,
'mysql_user'
:
mysql_conf
[
'mysql_user'
]
,
'mysql_password'
:
x_password
})
'mysql_password'
:
mysql_conf
[
'mysql_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