Skip to content

Commit

Permalink
new version 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
prrvchr committed Dec 9, 2023
1 parent e7f01b3 commit 132c3f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions uno/lib/uno/card/card/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,17 @@ def __init__(self, ctx, source, database, provider, scheme, server, name, pwd=''
new = self._metadata is None
cls, mtd = 'User', '__init__()'
if not new:
print("User.__init__() 1")
request = provider.getRequest(server, name)
if request is None:
raise getSqlException(ctx, source, 1002, 1105, cls, mtd, name)
else:
print("User.__init__() 2")
if self._isOffLine(server):
raise getSqlException(ctx, source, 1004, 1108, cls, mtd, name)
print("User.__init__() 3")
request = provider.getRequest(server, name)
if request is None:
print("User.__init__() 4")
raise getSqlException(ctx, source, 1002, 1105, cls, mtd, name)
self._metadata, books = self._getUserData(ctx, source, cls, mtd, database,
provider, request, scheme, server, name, pwd)
print("User.__init__() 5")
database.createUser(self.getSchema(), self.Id, name, '')
self.Request = request
self._books = Books(ctx, books, new)
Expand Down
5 changes: 0 additions & 5 deletions uno/lib/uno/card/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,19 @@ def closeConnection(self, connection):
if name in self._users:
user = self._users.get(name)
user.removeSession(self._database.getSessionId(connection))
print("DataSource.closeConnection() 1: %s - %s" % (len(self._users), name))
if not self._hasSession():
self._replicator.stop()
print("DataSource.closeConnection() 2")

# Procedures called by Driver
def getConnection(self, source, scheme, server, account, password):
uri = self._provider.getUserUri(server, account)
print("DataSource.getConnection() 1")
if uri in self._maps:
print("DataSource.getConnection() 2")
name = self._maps.get(uri)
user = self._users.get(name)
if not user.Request.isAuthorized():
cls, mtd = 'DataSource', 'getConnection()'
raise getSqlException(self._ctx, source, 1002, 1105, cls, mtd, name)
else:
print("DataSource.getConnection() 3")
user = User(self._ctx, source, self._database,
self._provider, scheme, server, account, password)
name = user.getName()
Expand Down

0 comments on commit 132c3f3

Please sign in to comment.