Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options to pagelist #12

Merged
merged 2 commits into from
Dec 22, 2022
Merged

Add options to pagelist #12

merged 2 commits into from
Dec 22, 2022

Conversation

chang-zhao
Copy link
Contributor

So that limiting search depth, hash calculation and skipping ACL could be requested.
#11

So that limiting search depth, hash calculation and skipping ACL could be requested.
@@ -247,9 +247,9 @@ def append_page(self, page_id, text, summary='', minor=False):
self._xmlrpc.dokuwiki.appendPage(page_id, text, params)

@checkerr
def pagelist(self, namespace):
def pagelist(self, namespace, opts = {'depth': 0, 'hash': False, 'skipacl': False}):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do these options do? I can't really find any documentation for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here: https://www.dokuwiki.org/devel:xmlrpc#dokuwikigetpagelist

There's a link to XRef documentation on search_allpages()

where it says:

$opts['depth']   recursion level, 0 for all
$opts['hash']    do md5 sum of content?
$opts['skipacl'] list everything regardless of ACL

Copy link
Owner

@kynan kynan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I've added this as documentation.

dokuwikixmlrpc.py Outdated Show resolved Hide resolved
@kynan kynan merged commit 177e2f2 into kynan:master Dec 22, 2022
@kynan kynan added this to the 2022.12.22 milestone Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants