Issue 287 in dexterity: getMultiadapter error with custom EditForm in dexterity plone 4.2

18 views
Skip to first unread message

dext...@googlecode.com

unread,
Jul 23, 2013, 5:06:43 PM7/23/13
to dexterity-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 287 by danielke...@gmail.com: getMultiadapter error with custom
EditForm in dexterity plone 4.2
http://code.google.com/p/dexterity/issues/detail?id=287

What steps will reproduce the problem?
I'm trying to open a custom editform which would only show one field from a
form with 12 fields:

class EditForm(dexterity.EditForm):
grok.name('editCustom')
grok.context(IInfo)

def updateWidgets(self):
super(EditForm, self).updateWidgets()
self.widgets['alps'].mode = 'hidden'
self.widgets['operationStatus'].mode = 'hidden'

# etc.

things work fine until I get to a field which is a MultiField list-choice:

self.widgets['siteContact'].mode = 'hidden'

(this is the entry in the form.Schema):

siteContact = schema.List(
title=_(u"Site Contact"),
description =_(u"Select Site Contacts"),
value_type=schema.Choice(vocabulary=("test.siteContact")),
required=False,
)

but when I try to access the custom EditForm I get:

Module z3c.form.widget, line 140, in render
Module zope.component._api, line 109, in getMultiAdapter
ComponentLookupError: ((<Container at /test/first>, <HTTPRequest,
URL=http://local


What is the expected output? What do you see instead?
i expect to be able to contol one by one which fields are
visible/editable/hidden. instead i get an error.

What version of the product are you using? On what operating system?
plone 4.2 on win 7.

Please provide any additional information below.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

dext...@googlecode.com

unread,
Jul 24, 2013, 8:06:38 PM7/24/13
to dexterity-...@googlegroups.com

Comment #1 on issue 287 by dgl...@gmail.com: getMultiadapter error with
custom EditForm in dexterity plone 4.2
http://code.google.com/p/dexterity/issues/detail?id=287

Please include the entire error traceback.
Reply all
Reply to author
Forward
0 new messages