Skip to content

Commit d5b7163

Browse files
committed
Fix option passing
1 parent ad21fa1 commit d5b7163

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dokuwiki.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def __init__(self, dokuwiki):
9797
self._dokuwiki = dokuwiki
9898

9999
def list(self, namespace='/', **options):
100-
return self._dokuwiki.send('dokuwiki.getPagelist', namespace, **options)
100+
return self._dokuwiki.send('dokuwiki.getPagelist', namespace, options)
101101

102102
def changes(self, timestamp):
103103
return self._dokuwiki.send('wiki.getRecentChanges', timestamp)
@@ -117,7 +117,7 @@ def get(self, pagename, version=''):
117117

118118
def append(self, pagename, content, **options):
119119
return self._dokuwiki.send(
120-
'dokuwiki.appendPage', pagename, content, **options)
120+
'dokuwiki.appendPage', pagename, content, options)
121121

122122
def html(self, pagename, version=''):
123123
return (self._dokuwiki.send('wiki.getPageHTMLVersion', pagename, version)
@@ -126,7 +126,7 @@ def html(self, pagename, version=''):
126126
def set(self, pagename, content, **options):
127127
try:
128128
return self._dokuwiki.send(
129-
'wiki.putPage', pagename, content, **options)
129+
'wiki.putPage', pagename, content, options)
130130
except ExpatError as err:
131131
# Sometime the first line of the XML response is blank which raise
132132
# the 'ExpatError' exception although the change has been done. This
@@ -167,7 +167,7 @@ def changes(self, timestamp):
167167
return self._dokuwiki.send('wiki.getRecentMediaChanges', timestamp)
168168

169169
def list(self, namespace='/', **options):
170-
return self._dokuwiki.send('wiki.getAttachments', namespace, **options)
170+
return self._dokuwiki.send('wiki.getAttachments', namespace, options)
171171

172172
def get(self, media, dirpath, filename='', overwrite=False):
173173
import os

0 commit comments

Comments
 (0)