[Zope3-dev] ForbiddenAttribute error using vocabulary

Garrett Smith garrett@mojave-corp.com
Tue, 15 Jul 2003 12:37:11 -0500


I'm trying to use a simple vocabulary and am running into permission
problems:

setField is being accessed on a SelectListWidget object at line 89 of
zope/app/browser/form/vocabularywidgets.py. The view declaration for the
field in question is:

  <view
      permission=3D"zope.Public"
      type=3D"zope.publisher.interfaces.browser.IBrowserPresentation"
=20
allowed_interface=3D"zope.app.interfaces.browser.form.IBrowserWidget"
      for=3D"zope.schema.vocabulary.IVocabularyField"
      name=3D"edit"
      factory=3D".vocabularywidget.VocabularyFieldEditWidget"
      />

setField doesn't fall under this permission...I can't see how this ever
worked :(

 -- Garrett