[Zope3-dev] Problem with partialAnnotatableAdapters
Florian Lindner
mailinglists at xgm.de
Thu May 19 13:45:05 EDT 2005
Am Donnerstag, 19. Mai 2005 19:07 schrieb Stephan Richter:
> On Thursday 19 May 2005 13:02, Florian Lindner wrote:
> > <adapter
> > for=".link.Link"
> > provides="zope.app.dublincore.interfaces.IZopeDublinCore"
> > factory=".link.factory"
> > />
>
> You need to make this a trusted adapter and provide a permission for
> accessing it, i.e. add ``trusted="True"`` and ``permission="zope.public"``
Ok. thanks a lot!
It works, however I get another, not so grave error.
I add the object. I can edit the schema description field and the DC
description fields changes as well. But when I hit the "Save
changes" (Änderungen spreichern) or "Refresh" (Auffrischen) buttons in the
meta data pane, regardless whether I changed something or not I get a system
error with this backtrace:
File "/home/florian/Zope3/src/zope/tales/tales.py", line 698, in evaluate
return expression(self)
File "/home/florian/Zope3/src/zope/tales/expressions.py", line 204, in
__call__
return self._eval(econtext)
File "/home/florian/Zope3/src/zope/tales/expressions.py", line 198, in _eval
return ob()
File "/home/florian/Zope3/src/zope/app/dublincore/browser/metadataedit.py",
line 37, in edit
dc.title = unicode(request['dctitle'])
ForbiddenAttribute: ('title',
<zope.app.dublincore.annotatableadapter.ZDCPartialAnnotatableAdapter object
at 0xb2a5a12c>)
127.0.0.1 - zope.manager [19/May/2005:19:38:34 +0200]
"POST /cs/home/zope.manager/testfolder/Link/@@EditMetaData.html HTTP/1.1" 500
316
"http://localhost:8080/cs/home/zope.manager/testfolder/Link/@@EditMetaData.html"
"Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.0 (like Gecko)"
I have not touched the title field (it is empty) neither do I have created a
mapping for it. Only the description field is mapped.
Regards,
Florian
More information about the Zope3-dev
mailing list