[Zope3-dev] Problem with partialAnnotatableAdapters

Ivo van der Wijk vladdrac at gmail.com
Wed May 25 06:52:04 EDT 2005


On 5/19/05, Florian Lindner <mailinglists at xgm.de> wrote:
> 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!
> 

I'm trying something similar right now as well - "sharing" the title
field between DC and content. Everything works fine, until I try to
change the title through the Metadata tab:

   File "/home/ivo/Work/Zope3/Zope3-svn/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 0xb3cc39ec>)

Retrieval of the title attribute works fine (i.e. it's displayed
nicely in folder content listings)

Cheers

  Ivo



-- 
Drs. I.R. van der Wijk                                      -=-
Korte Leidsedwarsstraat 12                                 Amaze
1017 RC Amsterdam, NL                                       -=-
T +31-20-4688336         F +31-20-4688337       Zope/Plone/Content Management
W http://www.amaze.nl    E info at amaze.nl           Open Source Solutions
W http://vanderwijk.info E ivo at amaze.nl                 Consultancy
PGP http://vanderwijk.info/pgp


More information about the Zope3-dev mailing list