From 93261431d90b68b63cd46662fae5cfb3b26ca914 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Tue, 1 Oct 2024 15:47:45 +0200 Subject: [PATCH] cyberapps.bsm: Python3 fix --- cyberapps/bsm/data.py | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/cyberapps/bsm/data.py b/cyberapps/bsm/data.py index ff29839..eeb6312 100644 --- a/cyberapps/bsm/data.py +++ b/cyberapps/bsm/data.py @@ -1,29 +1,10 @@ -# -# Copyright (c) 2007 Helmut Merz helmutm@cy55.de -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# +# cyberapps.bsm.data -""" -Classes for BSM School Informations. - -$Id$ +""" Classes for BSM School Informations. """ from zope.component import adapts -from zope.interface import implements +from zope.interface import implementer from cyberapps.bsm.interfaces import ISchoolInfo from loops.common import AdapterBase @@ -34,9 +15,8 @@ from loops.type import TypeInterfaceSourceList TypeInterfaceSourceList.typeInterfaces += (ISchoolInfo,) +@implementer(ISchoolInfo) class SchoolInfoAdapter(AdapterBase): - implements(ISchoolInfo) - _contextAttributes = list(ISchoolInfo) + list(IConcept)