avoid 'forbidden attribute' error for 'context' on loops adapters
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3832 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
33690a114f
commit
6c5430ef70
2 changed files with 6 additions and 6 deletions
|
@ -29,7 +29,7 @@ from zope.security.proxy import removeSecurityProxy
|
|||
|
||||
from cybertools.knowledge.interfaces import IKnowing, IRequirementProfile
|
||||
from cybertools.knowledge.interfaces import IKnowledgeElement
|
||||
from loops.interfaces import IConceptSchema
|
||||
from loops.interfaces import IConceptSchema, ILoopsAdapter
|
||||
from loops.organize.interfaces import IPerson as IBasePerson
|
||||
from loops.organize.interfaces import ITask as IBaseTask
|
||||
|
||||
|
@ -38,17 +38,17 @@ _ = MessageFactory('zope')
|
|||
# TODO: separate interfaces for viewing and changing methods!
|
||||
|
||||
|
||||
class IPerson(IBasePerson, IKnowing):
|
||||
class IPerson(IBasePerson, IKnowing, ILoopsAdapter):
|
||||
""" A person, including knowledge/learning management features.
|
||||
"""
|
||||
|
||||
|
||||
class ITask(IBaseTask, IRequirementProfile):
|
||||
class ITask(IBaseTask, IRequirementProfile, ILoopsAdapter):
|
||||
""" A task, also acting as a knowledge requirement profile.
|
||||
"""
|
||||
|
||||
|
||||
class ITopic(IConceptSchema, IKnowledgeElement):
|
||||
class ITopic(IConceptSchema, IKnowledgeElement, ILoopsAdapter):
|
||||
""" Just a topic, some general classification concept.
|
||||
"""
|
||||
|
||||
|
|
4
query.py
4
query.py
|
@ -32,7 +32,7 @@ from zope.cachedescriptors.property import Lazy
|
|||
|
||||
from cybertools.typology.interfaces import IType
|
||||
from loops.common import AdapterBase
|
||||
from loops.interfaces import IConcept, IConceptSchema
|
||||
from loops.interfaces import IConcept, IConceptSchema, ILoopsAdapter
|
||||
from loops.security.common import canListObject
|
||||
from loops.type import TypeInterfaceSourceList
|
||||
from loops.versioning.util import getVersion
|
||||
|
@ -182,7 +182,7 @@ class ConceptQuery(BaseQuery):
|
|||
|
||||
# QueryConcept: concept objects that allow querying the database.
|
||||
|
||||
class IQueryConcept(IConceptSchema):
|
||||
class IQueryConcept(IConceptSchema, ILoopsAdapter):
|
||||
""" The schema for the query type.
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue