You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.
4 Responses to “$ mw commit”
How do I use this with the fedora wiki? I get:
[jwboyer@r2d2 mw]$ PYTHONPATH=$PWD/src bin/mw init https://fedoraproject.org/wiki
[jwboyer@r2d2 mw]$ PYTHONPATH=$PWD/src bin/mw login
Username: jwboyer
Password:
Traceback (most recent call last):
File “bin/mw”, line 23, in
ponies.main()
File “/home/jwboyer/mw/src/mw/cli.py”, line 73, in main
self.all_commands[the_command].main()
File “/home/jwboyer/mw/src/mw/clicommands.py”, line 51, in main
self._do_command()
File “/home/jwboyer/mw/src/mw/clicommands.py”, line 100, in _do_command
self._login()
File “/home/jwboyer/mw/src/mw/clicommands.py”, line 61, in _login
‘lgpassword’: passwd})
File “/home/jwboyer/mw/src/mw/api.py”, line 58, in call
the_data = json.loads(data)
File “/usr/lib/python2.6/json/__init__.py”, line 307, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.6/json/decoder.py”, line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.6/json/decoder.py”, line 338, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded
Also, I’m assuming that the ‘pull’ command specifies a specific page to pull, and not the whole wiki… please smack me with a clue-by-four if I’m wrong.
How do I use this with the fedora wiki? I get:
[jwboyer@r2d2 mw]$ PYTHONPATH=$PWD/src bin/mw init https://fedoraproject.org/wiki
[jwboyer@r2d2 mw]$ PYTHONPATH=$PWD/src bin/mw login
Username: jwboyer
Password:
Traceback (most recent call last):
File “bin/mw”, line 23, in
ponies.main()
File “/home/jwboyer/mw/src/mw/cli.py”, line 73, in main
self.all_commands[the_command].main()
File “/home/jwboyer/mw/src/mw/clicommands.py”, line 51, in main
self._do_command()
File “/home/jwboyer/mw/src/mw/clicommands.py”, line 100, in _do_command
self._login()
File “/home/jwboyer/mw/src/mw/clicommands.py”, line 61, in _login
‘lgpassword’: passwd})
File “/home/jwboyer/mw/src/mw/api.py”, line 58, in call
the_data = json.loads(data)
File “/usr/lib/python2.6/json/__init__.py”, line 307, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.6/json/decoder.py”, line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.6/json/decoder.py”, line 338, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded
Also, I’m assuming that the ‘pull’ command specifies a specific page to pull, and not the whole wiki… please smack me with a clue-by-four if I’m wrong.
@Josh:
You need to use https://fedoraproject.org/w/api.php. I’m working on making it a little more user friendly.
(also, yes, ‘pull’ only pulls single pages, also planning to include a command like ‘pullall’)
You are my new hero. I hate editing on the wiki with firefox, so this is awesome. You have a new user. Muahahahahah