Skip to content

Commit

Permalink
Merge branch 'SyZn-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalan Somogyvary committed Jun 22, 2016
2 parents 055bee1 + 2c7893a commit ea5e032
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -16,6 +16,8 @@ New features:
- Upgrade news portlet to use the new select widget;
Add dependency on plone.app.z3cform
[datakurre]
- Tracebak info on importing ``portlets.xml`` to show better error location in the xml
[SyZn]

Bug fixes:

Expand Down
4 changes: 4 additions & 0 deletions plone/app/portlets/exportimport/portlets.py
Expand Up @@ -183,6 +183,8 @@ def import_node(self, interface, child):
"""Import a single <property /> node
"""
property_name = child.getAttribute('name')

__traceback_info__ = "Property name: " + property_name

field = interface.get(property_name, None)
if field is None:
Expand Down Expand Up @@ -491,6 +493,8 @@ def _initAssignmentNode(self, node):
if name:
name = str(name)
assignment = mapping.get(name, None)

__traceback_info__ = "Assignment name: " + name

if node.hasAttribute('remove'):
if assignment is not None:
Expand Down

0 comments on commit ea5e032

Please sign in to comment.