projects
/
mw
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e31cbf9
)
Fix spacing to standard
author
Ian Weller
<ian@ianweller.org>
Sun, 25 Apr 2010 09:55:00 +0000
(
04:55
-0500)
committer
Ian Weller
<ian@ianweller.org>
Sun, 25 Apr 2010 09:55:00 +0000
(
04:55
-0500)
src/mw/clicommands.py
patch
|
blob
|
history
diff --git
a/src/mw/clicommands.py
b/src/mw/clicommands.py
index a42bcfbab0107492d5f2c0b6acfac9d910228dc1..f39cf8d6a670b92b44135cf1943bc7eb98348652 100644
(file)
--- a/
src/mw/clicommands.py
+++ b/
src/mw/clicommands.py
@@
-58,11
+58,11
@@
class CommandBase(object):
# cookies are saved to a file
print 'Login successful! (yay)'
elif result['login']['result'] == 'NeedToken':
# cookies are saved to a file
print 'Login successful! (yay)'
elif result['login']['result'] == 'NeedToken':
- print'Login with token'
+ print
'Login with token'
result = self.api.call({'action': 'login',
result = self.api.call({'action': 'login',
- 'lgname': user,
- 'lgpassword': passwd,
- 'lgtoken': result['login']['token']})
+
'lgname': user,
+
'lgpassword': passwd,
+
'lgtoken': result['login']['token']})
if result['login']['result'] == 'Success':
print 'Login successful! (yay)'
else:
if result['login']['result'] == 'Success':
print 'Login successful! (yay)'
else:
Benjamin Mako Hill
||
Want to submit a patch?