Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mahara-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
mahara
mahara-scripts
Commits
a5733014
Commit
a5733014
authored
May 13, 2011
by
Brett Wilkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mt2mw/mt2mw: added ability to specify db port
parent
f4baeb5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
mt2mw/mt2mw.py
mt2mw/mt2mw.py
+1
-17
No files found.
mt2mw/mt2mw.py
View file @
a5733014
# mt2mw -- package for migrating a Mindtouch wiki to MediaWiki
# Copyright (C) 2010 Catalyst IT Ltd
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# system library
import
ConfigParser
as
cp
...
...
@@ -37,6 +20,7 @@ dbconfig = None
if
directdb
:
dbconfig
=
{
'host'
:
cfg
.
get
(
'config'
,
'mediawiki_db_host'
),
'port'
:
cfg
.
get
(
'config'
,
'mediawiki_db_port'
),
'database'
:
cfg
.
get
(
'config'
,
'mediawiki_db'
),
'user'
:
cfg
.
get
(
'config'
,
'mediawiki_db_user'
),
'password'
:
cfg
.
get
(
'config'
,
'mediawiki_db_password'
),
...
...
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