diff libervia/server/session_iface.py @ 1322:a0954b6610aa

pages: identities are not using `data_objects` anymore: - identities are now handler directly with the dict received from backend, without using a specific data object. - a new `fillMissingIdentities` method in `LiberivaPage` will help to get all needed identities before rendering the template, and to avoid missing avatar or nickname. - (blog/view): fill missing identities for main blog items, not only for comments
author Goffi <goffi@goffi.org>
date Sun, 02 Aug 2020 17:45:15 +0200
parents 334d044f2713
children 822bd0139769
line wrap: on
line diff
--- a/libervia/server/session_iface.py	Sat Aug 01 16:56:04 2020 +0200
+++ b/libervia/server/session_iface.py	Sun Aug 02 17:45:15 2020 +0200
@@ -17,7 +17,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 from zope.interface import Interface, Attribute
 from zope.interface import implementer
-from sat.tools.common import data_objects
 from libervia.server.constants import Const as C
 from libervia.server.classes import Notification
 from collections import OrderedDict
@@ -47,7 +46,7 @@
         # time when the backend session was started
         self.backend_started = None
         self.uuid = str(shortuuid.uuid())
-        self.identities = data_objects.Identities()
+        self.identities = {}
         self.csrf_token = str(shortuuid.uuid())
         self.locale = None  # i18n of the pages
         self.theme = None