Commit graph

19 commits

Author SHA1 Message Date
Romain Bignon
4336da6224 handle errors 2011-07-19 12:54:20 +02:00
Romain Bignon
cb1372b99f new class BackendConfig to manage backend configs 2011-05-21 10:26:57 +02:00
Romain Bignon
53e22d9f4b bump to 0.9 2011-05-08 18:31:44 +02:00
Clément Schreiner
810a4fe9b0 test_push_content: now checks that the content has been pushed correctly 2011-04-21 11:02:52 +02:00
Laurent Bachelier
44f6189ca5 mediawiki backend: Use readurl instead of openurl
So that requests can be shown and saved if the debug options are activated.
json.load(fp) is just calling json.loads(fp.read) so there is no
performance loss.
2011-04-14 16:19:51 +02:00
Romain Bignon
7e2bb91b3b change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
Romain Bignon
31a0a0a8be bump to 0.8 2011-04-04 10:30:09 +02:00
Romain Bignon
3cb6ca033f bump to 0.7 2011-03-01 13:57:23 +01:00
Clément Schreiner
5dfe053749 Fix page creation 2011-03-01 13:19:31 +01:00
Clément Schreiner
13733fed1a Fix errors when a page does not exist yet. 2011-03-01 13:19:30 +01:00
Clément Schreiner
4005275dfc Fix lapsus in method name 2011-03-01 11:39:00 +01:00
Clément Schreiner
bd5e9fbfdf Adds tests for mediawiki (closes #505) 2011-03-01 11:33:51 +01:00
Romain Bignon
5eb3b2ece5 default URL values 2011-03-01 11:04:30 +01:00
Clément Schreiner
13cde4ed1f Fix pyflakes errors (forgotten import, unused variables) 2011-02-24 14:47:00 +01:00
Romain Bignon
10beaf2c5d don't need to have an account on mediawiki 2011-02-19 18:54:26 +01:00
Clément Schreiner
6979604e6f Support for more than 10 revisions in mediawiki.
Maximum number of revisions in iter_revisions is now 500, the API's limit
for normal users.

webcontentedit has been updated to use the 'count' option for do_log().
2011-02-16 23:19:50 +01:00
Clément Schreiner
5d24cec733 Implemented iter_revisions. Various minor fixes.
The methode iter_revisions(page) is now implemented, and yiels the last
ten revisions of the page, as 'Revision' objects.

Various fixes, like removing unused imports.
2011-02-16 22:23:49 +01:00
Clément Schreiner
3624110e94 Fix 'Invalid token' error 2011-02-16 21:17:07 +01:00
Clément Schreiner
179d6ec75e New backend: mediawiki.
Features working:
 - get_content()
 - push_content()
 - get_content_preview()
TODO:
 - log_content()
 - check for encoding problems
2011-02-16 20:45:54 +01:00