Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mwclient
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
Container Registry
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
WebU
shared
mwclient
Commits
09b68e9b
Commit
09b68e9b
authored
15 years ago
by
Bryan Tong Minh
Browse files
Options
Downloads
Patches
Plain Diff
Bug 2690034: Fix revision iteration
parent
4b384e10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mwclient/RELEASE-NOTES.txt
+1
-0
1 addition, 0 deletions
mwclient/RELEASE-NOTES.txt
mwclient/page.py
+7
-1
7 additions, 1 deletion
mwclient/page.py
with
8 additions
and
1 deletion
mwclient/RELEASE-NOTES.txt
+
1
−
0
View file @
09b68e9b
...
@@ -9,6 +9,7 @@ Mwclient 0.6.4 is unreleased.
...
@@ -9,6 +9,7 @@ Mwclient 0.6.4 is unreleased.
* Properly fix detection of alpha versions
* Properly fix detection of alpha versions
* Added support for builtin json library
* Added support for builtin json library
* Handle badtoken once
* Handle badtoken once
* Bug 2690034: Fix revision iteration
== Changes in version 0.6.3 ==
== Changes in version 0.6.3 ==
* Added domain parameter to login.
* Added domain parameter to login.
...
...
This diff is collapsed.
Click to expand it.
mwclient/page.py
+
7
−
1
View file @
09b68e9b
...
@@ -266,7 +266,7 @@ class Page(object):
...
@@ -266,7 +266,7 @@ class Page(object):
kwargs
[
'
rvprop
'
]
=
prop
kwargs
[
'
rvprop
'
]
=
prop
if
expandtemplates
:
kwargs
[
'
rvexpandtemplates
'
]
=
'
1
'
if
expandtemplates
:
kwargs
[
'
rvexpandtemplates
'
]
=
'
1
'
return
listing
.
PageProperty
(
self
,
'
revisions
'
,
'
rv
'
,
limit
=
limit
,
**
kwargs
)
return
RevisionsIterator
(
self
,
'
revisions
'
,
'
rv
'
,
limit
=
limit
,
**
kwargs
)
def
templates
(
self
,
namespace
=
None
,
generator
=
True
):
def
templates
(
self
,
namespace
=
None
,
generator
=
True
):
self
.
site
.
require
(
1
,
8
)
self
.
site
.
require
(
1
,
8
)
kwargs
=
dict
(
listing
.
List
.
generate_kwargs
(
'
tl
'
,
namespace
=
namespace
))
kwargs
=
dict
(
listing
.
List
.
generate_kwargs
(
'
tl
'
,
namespace
=
namespace
))
...
@@ -313,3 +313,9 @@ class Image(Page):
...
@@ -313,3 +313,9 @@ class Image(Page):
def
__repr__
(
self
):
def
__repr__
(
self
):
return
"
<Image object
'
%s
'
for %s>
"
%
(
self
.
name
.
encode
(
'
utf-8
'
),
self
.
site
)
return
"
<Image object
'
%s
'
for %s>
"
%
(
self
.
name
.
encode
(
'
utf-8
'
),
self
.
site
)
class
RevisionsIterator
(
listing
.
PageProperty
):
def
load_chunk
(
self
):
if
'
rvstartid
'
in
self
.
args
and
'
rvstart
'
in
self
.
args
:
del
self
.
args
[
'
rvstart
'
]
return
listing
.
PageProperty
.
load_chunk
(
self
)
\ No newline at end of file
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