Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
f58503f8
Commit
f58503f8
authored
19 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
fix update_config procedure. Also remove proxy65.unstable.nl proxy. Fixes #1748
parent
0055c366
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/optparser.py
+12
-4
12 additions, 4 deletions
src/common/optparser.py
with
12 additions
and
4 deletions
src/common/optparser.py
+
12
−
4
View file @
f58503f8
...
...
@@ -138,9 +138,9 @@ class OptionsParser:
while
len
(
new_version
):
new
.
append
(
int
(
new_version
.
pop
(
0
)))
if
old
<
(
0
,
9
)
and
new
>=
(
0
,
9
)
:
if
old
<
[
0
,
9
]
and
new
>=
[
0
,
9
]
:
self
.
update_config_x_to_09
()
if
old
<
(
0
,
10
)
and
new
>=
(
0
,
10
)
:
if
old
<
[
0
,
10
]
and
new
>=
[
0
,
10
]
:
self
.
update_config_09_to_010
()
def
update_config_x_to_09
(
self
):
...
...
@@ -200,6 +200,7 @@ class OptionsParser:
gajim
.
config
.
set
(
'
version
'
,
'
0.9
'
)
def
update_config_09_to_010
(
self
):
print
'
update to 0.10
'
if
self
.
old_values
.
has_key
(
'
usetabbedchat
'
)
and
not
\
self
.
old_values
[
'
usetabbedchat
'
]:
gajim
.
config
.
set
(
'
one_message_window
'
,
'
never
'
)
...
...
@@ -212,13 +213,20 @@ class OptionsParser:
for
account
in
gajim
.
config
.
get_per
(
'
accounts
'
):
proxies_str
=
gajim
.
config
.
get_per
(
'
accounts
'
,
account
,
'
file_transfer_proxies
'
)
proxies
=
proxies_str
.
split
(
"
,
"
).
strip
()
proxies
=
proxies_str
.
split
(
'
,
'
)
print
proxies
for
i
in
range
(
0
,
len
(
proxies
)):
proxies
[
i
]
=
proxies
[
i
].
strip
()
print
proxies
for
wrong_proxy
in
[
'
proxy.jabber.cd.chalmers.se
'
,
'
proxy65.jabber.autocom.pl
'
,
'
proxy65.jabber.ccc.de
'
]:
if
wrong_proxy
in
proxies
:
proxies
.
remove
(
wrong_proxy
)
proxies
.
append
(
'
transfer.jabber.freenet.de
'
)
if
not
'
transfer.jabber.freenet.de
'
in
proxies
:
proxies
.
append
(
'
transfer.jabber.freenet.de
'
)
print
proxies
proxies_str
=
'
,
'
.
join
(
proxies
)
gajim
.
config
.
set_per
(
'
accounts
'
,
account
,
'
file_transfer_proxies
'
,
proxies_str
)
gajim
.
config
.
set
(
'
version
'
,
'
0.10
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment