Skip to content

Commit

Permalink
Removed targetWikiId for WikiPage if login is False
Browse files Browse the repository at this point in the history
  • Loading branch information
tholzheim committed Apr 27, 2022
1 parent e6d6a78 commit bb45f85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name='wikirender',
version='0.0.39',
version='0.0.40',
packages=['wikifile','templates','templates/macros', 'wikifile/resources/metamodel'],
classifiers=[
'Programming Language :: Python',
Expand Down
5 changes: 3 additions & 2 deletions wikifile/wikiPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ def __init__(self, wikiId:str, login:bool=True, debug:bool=False):
Constructor
Args:
wikiId: id of the wiki
login(bool): If True login when accessing the wiki
login(bool): If True login when accessing the wiki. If False updates can not be performed
debug(bool): If True show debug messages
"""
self.debug=debug
self.wikiId = wikiId
self.wikiFileManager = WikiFileManager(sourceWikiId=self.wikiId, targetWikiId=self.wikiId, login=login)
targetWikiId = self.wikiId if login else False
self.wikiFileManager = WikiFileManager(sourceWikiId=self.wikiId, targetWikiId=targetWikiId, login=login)

def updatePageWikiSON(self, pageTitle:str, wikiSonEntity:str, props:dict, updateMsg:str=None):
"""
Expand Down

0 comments on commit bb45f85

Please sign in to comment.