plone/plone.app.textfield — pull request #10 by lentinj (2014-07-03 10:39:35+00:00)
Title: Use closest_content to find some usable content for portal_url

If you have a schema of List->Object->RichText, wrapped_context trips over the classic z3c.form problem of form.context not being the content object it was hoping for, so can't get to ``portal_url``. Use closest_content to work around this for us.