Skip to content

Commit

Permalink
Added login option to WikiPage
Browse files Browse the repository at this point in the history
  • Loading branch information
tholzheim committed Apr 27, 2022
1 parent aee056a commit e6d6a78
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.38',
version='0.0.39',
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 @@ -6,16 +6,17 @@ class WikiPage:
Provides functionalities to update the WikiSON content of a page
"""

def __init__(self, wikiId:str, debug:bool=False):
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
debug(bool): If True show debug messages
"""
self.debug=debug
self.wikiId = wikiId
self.wikiFileManager = WikiFileManager(sourceWikiId=self.wikiId, targetWikiId=self.wikiId)
self.wikiFileManager = WikiFileManager(sourceWikiId=self.wikiId, targetWikiId=self.wikiId, login=login)

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

0 comments on commit e6d6a78

Please sign in to comment.