datakurre/plone.app.relationfield — comment on commit 2f0ce3c40f0cf523eeac7adfd7a78b8db1890a68
File: plone/app/relationfield/widget.py line 84
By datakurre:

I'm not comfortable with this.

This hack returns the actual value stored in the dictionary when queried without default value and AttributeError is caught.

For example, when we try to get the target object for a RelationValue, which has already been converted to an object value, this silently returns the object value.

I need this for z3c.formwidget.query to work. It resolves selected values by querying data managers for the current context, which may have already been converted to widget value.

http://svn.zope.org/z3c.formwidget.query/trunk/src/z3c/formwidget/query/widget.py?rev=123295&view=markup