You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/08 07:46:13 UTC

[incubator-ponymail-foal] 01/04: Session objects should carry a reference to the base server

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit f95793021a783f5f8d2944140dde80e53784f941
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Sep 8 09:44:32 2020 +0200

    Session objects should carry a reference to the base server
---
 server/plugins/session.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/plugins/session.py b/server/plugins/session.py
index f8424fd..087f1c7 100644
--- a/server/plugins/session.py
+++ b/server/plugins/session.py
@@ -68,9 +68,11 @@ class SessionObject:
     last_accessed: int
     credentials: typing.Optional[SessionCredentials]
     database: typing.Optional[plugins.database.Database]
+    server: plugins.server.BaseServer
 
     def __init__(self, server: plugins.server.BaseServer, **kwargs):
         self.database = None
+        self.server = server
         if not kwargs:
             now = int(time.time())
             self.created = now