-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Export/)Import broken for "OFS.SimpleItem.Item_w__name__" instances #903
Comments
d-maurer
added a commit
that referenced
this issue
Oct 6, 2020
… of deprecated direct `id` access (--> #903)
This was referenced Oct 6, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BUG/PROBLEM REPORT
If an instance of
OFS.SimpleItem.Item_w__name__
(e.g. anOFS.Image.File
instance) is exported, a subsequent import fails withBadRequest: ('Empty or invalid id specified', '')
.The reason: for
Item_w__name__
instances,id
must not be used (it is always''
); for those instancesgetId()
must be used to access the object's id.OFS.ObjectManager.ObjectManager._importObjectFromFile
violates this restriction.What version of Python and Zope/Addons I am using:
current Zope 4.x (likely Zope 5.x as well)
The text was updated successfully, but these errors were encountered: