Personal tools
You are here: Home Products Inventory Builder Documentation Error References unsupported operand type(s) for +: 'NoneType' and 'str'
Document Actions

unsupported operand type(s) for +: 'NoneType' and 'str'

Warning: This item is marked as outdated.

This Error Reference applies to: 0.4-beta2

This error is raised when ReferenceField is used in IB

If you are using ReferenceField (and maybe in other cases too) this error is raised when viewing newly created item. Error is raised from the getCurrentUrl python script (/portal_skins/plone_scripts in ZMI).

request = context.REQUEST
url = request.get('ACTUAL_URL', request.get('URL', None))
query = request.get('QUERY_STRING','')
if query:
    query = '?'+query
return url+query

In case of url is None, mentioned error is raised.

Customize this script and change to:

... ... ...
if query:
    query = '?'+query
if url:
    return url+query
else:
    return context.portal_url()
by Radim Novotny last modified May 1, 2006 - 06:40

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by