[Zope3-Users] ForbiddenAttribute "add" error

Joseph Method tristil at gmail.com
Fri Mar 3 19:31:29 EST 2006


Hi, I get this error

ForbiddenAttribute: ('add', <zope.app.publisher.browser.viewmeta.+
object at 0x754d09ac>)

when I try to add a "Claim" to a "DebtManager" (both are subclasses of
Folder) at http://localhost:8031/DebtManager/+/@@AddClaim.html

The addform looks like this:

<browser:addform
      schema="debtman.interfaces.IClaim"
      content_factory="debtman.debt.Claim"
      label="Add Claim"
      name="AddClaim.html"
      fields="title description debtor creditor amount"
      permission="zope.ManageContent"
      />

and the content type declaration looks like:

  <content class=".debt.DebtManager">
        <require
                permission="zope.ManageContent"
                interface=".interfaces.IDebtManager" />
        <require
                permission="zope.ManageContent"
                interface=".interfaces.IDebtManagerSchema" />

        <require
                permission="zope.ManageContent"
                set_schema=".interfaces.IDebtManagerSchema"
                />
        <require
                permission="zope.ManageContent"
                attributes="add"
                />
        <require like_class="zope.app.folder.Folder" />
  </content>

The permission require for "add" is just an attempt to get rid of the
error. I've asked around on #zope3-dev, but no one knew.

--
-J. Method


More information about the Zope3-users mailing list