-
Notifications
You must be signed in to change notification settings - Fork 20
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
CMFCatalogAware reindexObject API has a problem with uid #87
Comments
Assigning to Gil who authored those changes |
Yes, sounds sane, I can't remember where I copied those arguments from, and why the default was |
Sure I can do that. I have not contributed to this project before though - do I need to sign the Plone contributor agreement for this? And is this documentation on what else to update e.g. a changelog? |
Code contributions require a signed contributor agreement, a change log entry and if at all possible unit tests for the change. |
No problem, I will make a fork and submit a PR for it. Question about the contributor agreement: can I just put "Plone" for the program name, or do I need to submit an agreement for each package modified? |
Eric Wohnlich wrote at 2020-3-20 21:50 -0700:
No problem, I will make a fork and submit a PR for it. Question about the contributor agreement: can I just put "Plone" for the program name, or do I need to submit an agreement for each package modified?
Currently, there are two relevant "program"s: "Plone" for
contribution to "plone" and "Zope" for contribution to "zopefoundation"
packages.
|
This change d76903b added two new parameters including one for "uid". This is eventually passed on to Product.ZCatalog's "catalog_object" which will assign a uid of the object's path if it is not otherwise defined. The problem is that it is literally checking "is None" for uid, and the default value of False does not satisfy that condition. ZCatalog will then raise a CatalogError "The object unique id must be a string."
I believe the default value for uid in CMFCatalogAware.CatalogAware.reindexObject should simply be changed from False to None.
The text was updated successfully, but these errors were encountered: