Merge lp:~timojbo/widelands-website/new-help into lp:widelands-website

Proposed by Timo Paulssen
Status: Merged
Merged at revision: 236
Proposed branch: lp:~timojbo/widelands-website/new-help
Merge into: lp:widelands-website
Diff against target: 32 lines (+6/-6)
1 file modified
online_help/management/commands/update_help.py (+6/-6)
To merge this branch: bzr merge lp:~timojbo/widelands-website/new-help
Reviewer Review Type Date Requested Status
Widelands Developers Pending
Review via email: mp+39789@code.launchpad.net
To post a comment you must log in.
236. By SirVer

One more merge from timo

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'online_help/management/commands/update_help.py'
2--- online_help/management/commands/update_help.py 2010-11-01 21:19:16 +0000
3+++ online_help/management/commands/update_help.py 2010-11-01 21:49:40 +0000
4@@ -116,13 +116,13 @@
5 workero.image_url = nn
6
7 # See if there is help available
8- if worker._conf.has_option("default","help"):
9- helpstr = normalize_name(worker._conf.get("default","help"))
10+ if worker._conf.has_option("global","help"):
11+ helpstr = normalize_name(worker._conf.get("global","help"))
12 workero.help = helpstr
13
14 # Check for experience
15- if worker._conf.has_option("default","experience"):
16- experience = normalize_name(worker._conf.get("default","experience"))
17+ if worker._conf.has_option("global","experience"):
18+ experience = normalize_name(worker._conf.get("global","experience"))
19 workero.exp = experience
20
21 # See what the worker becomes
22@@ -147,8 +147,8 @@
23
24
25 # See if there is help available
26- if ware._conf.has_option("default","help"):
27- helpstr = normalize_name(ware._conf.get("default","help"))
28+ if ware._conf.has_option("global","help"):
29+ helpstr = normalize_name(ware._conf.get("global","help"))
30 w.help = helpstr
31
32 w.save()

Subscribers

People subscribed via source and target branches