bug fix: avoid ForbiddenAttribute on title field
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2237 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
d7efbbdcdf
commit
eddbdb63a9
2 changed files with 4 additions and 3 deletions
|
@ -73,7 +73,8 @@ class ConceptEditForm(EditForm, I18NView):
|
|||
return fields
|
||||
|
||||
def setUpWidgets(self, ignore_request=False):
|
||||
adapter = adapted(self.context, self.languageInfo)
|
||||
# TODO: get rid of removeSecurityProxy(): use ConceptSchema in interfaces
|
||||
adapter = removeSecurityProxy(adapted(self.context, self.languageInfo))
|
||||
self.adapters = {self.typeInterface: adapter,
|
||||
IConceptSchema: adapter}
|
||||
self.widgets = setUpEditWidgets(
|
||||
|
|
4
query.py
4
query.py
|
@ -29,7 +29,7 @@ from zope.app.catalog.interfaces import ICatalog
|
|||
from zope.cachedescriptors.property import Lazy
|
||||
|
||||
from cybertools.typology.interfaces import IType
|
||||
from loops.interfaces import IConcept
|
||||
from loops.interfaces import IConcept, IConceptSchema
|
||||
from loops.common import AdapterBase
|
||||
from loops.type import TypeInterfaceSourceList
|
||||
from loops.versioning.util import getVersion
|
||||
|
@ -155,7 +155,7 @@ class ConceptQuery(BaseQuery):
|
|||
|
||||
# QueryConcept: concept objects that allow querying the database.
|
||||
|
||||
class IQueryConcept(Interface):
|
||||
class IQueryConcept(IConceptSchema):
|
||||
""" The schema for the query type.
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue