cyberapps.bsm: Python3 fix
This commit is contained in:
parent
c6c4fd56f2
commit
93261431d9
1 changed files with 4 additions and 24 deletions
|
@ -1,29 +1,10 @@
|
||||||
#
|
# cyberapps.bsm.data
|
||||||
# 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
|
|
||||||
#
|
|
||||||
|
|
||||||
"""
|
""" Classes for BSM School Informations.
|
||||||
Classes for BSM School Informations.
|
|
||||||
|
|
||||||
$Id$
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from zope.component import adapts
|
from zope.component import adapts
|
||||||
from zope.interface import implements
|
from zope.interface import implementer
|
||||||
|
|
||||||
from cyberapps.bsm.interfaces import ISchoolInfo
|
from cyberapps.bsm.interfaces import ISchoolInfo
|
||||||
from loops.common import AdapterBase
|
from loops.common import AdapterBase
|
||||||
|
@ -34,9 +15,8 @@ from loops.type import TypeInterfaceSourceList
|
||||||
TypeInterfaceSourceList.typeInterfaces += (ISchoolInfo,)
|
TypeInterfaceSourceList.typeInterfaces += (ISchoolInfo,)
|
||||||
|
|
||||||
|
|
||||||
|
@implementer(ISchoolInfo)
|
||||||
class SchoolInfoAdapter(AdapterBase):
|
class SchoolInfoAdapter(AdapterBase):
|
||||||
|
|
||||||
implements(ISchoolInfo)
|
|
||||||
|
|
||||||
_contextAttributes = list(ISchoolInfo) + list(IConcept)
|
_contextAttributes = list(ISchoolInfo) + list(IConcept)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue