Skip to content

Commit

Permalink
avoid error, refs #116
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Apr 2, 2014
1 parent c15481c commit daf7718
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plone/app/dexterity/behaviors/id.py
@@ -1,3 +1,4 @@
from Acquisition import aq_base
from Acquisition import aq_inner
from Acquisition import aq_parent
from zope import schema
Expand Down Expand Up @@ -46,7 +47,7 @@ def _set_id(self, value):
context.id = value
return
new_id = INameChooser(parent).chooseName(value, context)
if context.getId():
if getattr(aq_base(context), 'id', None):
transaction.savepoint()
parent.manage_renameObject(context.getId(), new_id)
else:
Expand Down

1 comment on commit daf7718

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TESTS FAILED
Mr.roboto url : http://jenkins.plone.org/roboto/get_info?push=32b7d69df39842ec8d6c663a2da26339
plone-4.3-python-2.6 [FAILURE]
plone-4.3-python-2.7 [FAILURE]
plone-5.0-python-2.7 [FAILURE]

Please sign in to comment.