Skip to content

Commit

Permalink
new version 1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
prrvchr committed Oct 9, 2024
1 parent 0d4cc03 commit cabfb15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions source/vCardOOo/service/pythonpath/vcard/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def getUserUri(self, server, name):
return server + '/' + name

def initAddressbooks(self, source, database, user):
cls, mtd = 'Provider', 'initAddressbooks()'
parameter = self._getAllBookParameter(user)
response = user.Request.execute(parameter)
if not response.Ok:
self.raiseForStatus(source, cls, mtd, response, parameter, user.Name)
cls, mtd = 'Provider', 'initAddressbooks()'
self.raiseForStatus(source, cls, mtd, response, user.Name)
iterator = self._parseAllBook(response)
self.initUserBooks(source, database, user, iterator)

Expand All @@ -87,11 +87,11 @@ def insertUser(self, source, database, request, scheme, server, name, pwd):

# Private method
def _getNewUserId(self, source, request, scheme, server, name, pwd):
cls, mtd = 'Provider', '_getNewUserId()'
url = self._getDiscoveryUrl(source, request, scheme, server, name, pwd)
path = self._getUserUrl(source, request, url, name, pwd)
if path is None:
password = '*' * len(pwd)
cls, mtd = 'Provider', '_getNewUserId()'
raise getSqlException(self._ctx, source, 1001, 1641, cls, mtd, name, password, server, url)
scheme, server = self._getUrlParts(url)
url = scheme + server + path
Expand All @@ -115,7 +115,7 @@ def _discoverUrl(self, source, cls, mtd, request, url, name, pwd):
parameter = self._getRequestParameter(request, 'getUrl', url, name, pwd)
response = request.execute(parameter)
if not response.Ok:
self.raiseForStatus(source, cls, mtd, response, parameter, name)
self.raiseForStatus(source, cls, mtd, response, name)
if not response.IsRedirect or not response.hasHeader('Location'):
headers = response.Headers
response.close()
Expand All @@ -125,11 +125,11 @@ def _discoverUrl(self, source, cls, mtd, request, url, name, pwd):
return location

def _getUserUrl(self, source, request, url, name, pwd):
cls, mtd = 'Provider', '_getUserUrl()'
parameter = self._getUserUrlParameter(request, url, name, pwd)
response = request.execute(parameter)
if not response.Ok:
self.raiseForStatus(source, cls, mtd, response, parameter, name)
cls, mtd = 'Provider', '_getUserUrl()'
self.raiseForStatus(source, cls, mtd, response, name)
url = self._parseUserUrl(response)
return url

Expand Down Expand Up @@ -164,7 +164,7 @@ def _supportAddressbook(self, source, request, url, name, pwd):
parameter = self._getRequestParameter(request, 'hasAddressbook', url, name, pwd)
response = request.execute(parameter)
if not response.Ok:
self.raiseForStatus(source, cls, mtd, response, parameter, name)
self.raiseForStatus(source, cls, mtd, response, name)
if not response.hasHeader('DAV'):
headers = response.Headers
response.close()
Expand All @@ -178,7 +178,7 @@ def _getAddressbooksUrl(self, source, request, url, name, pwd):
parameter = self._getAddressbooksUrlParameter(request, url, name, pwd)
response = request.execute(parameter)
if not response.Ok:
self.raiseForStatus(source, cls, mtd, response, parameter, name)
self.raiseForStatus(source, cls, mtd, response, name)
url = self._parseAddressbookUrl(response)
if url is None:
msg = response.Text
Expand Down
6 changes: 3 additions & 3 deletions vCardOOo.update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
xmlns="http://openoffice.org/extensions/update/2006"
xmlns:xlink="http://www.w3.org/1999/xlink">
<identifier value="io.github.prrvchr.vCardOOo"/>
<version value="1.1.6"/>
<version value="1.1.5"/>
<update-download>
<src xlink:href="https://github.com/prrvchr/vCardOOo/releases/latest/download/vCardOOo.oxt"/>
</update-download>
Expand All @@ -40,7 +40,7 @@
<name xlink:href="https://prrvchr.github.io/vCardOOo/README_fr" lang="fr">vCardOOo</name>
</publisher>
<release-notes>
<src xlink:href="https://prrvchr.github.io/vCardOOo/#what-has-been-done-for-version-116" lang="en"/>
<src xlink:href="https://prrvchr.github.io/vCardOOo/README_fr#ce-qui-a-%C3%A9t%C3%A9-fait-pour-la-version-116" lang="fr"/>
<src xlink:href="https://prrvchr.github.io/vCardOOo/#what-has-been-done-for-version-115" lang="en"/>
<src xlink:href="https://prrvchr.github.io/vCardOOo/README_fr#ce-qui-a-%C3%A9t%C3%A9-fait-pour-la-version-115" lang="fr"/>
</release-notes>
</description>

0 comments on commit cabfb15

Please sign in to comment.