Skip to content
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

Issue 745 fix idatetimewidget if ploneappcontenttypes #748

Merged

Conversation

idgserpro
Copy link
Member

This fixes #745, check the issue for more information. This whole collective.z3cform.datetimewidget and plone.formwidget.datetime dependency situation here can be improved in the future by discussing #747 and deciding the best approach.

If possible, a new release after merge would be a good idea.

Fix IDatetimeWidget tile override if using plone.app.contenttypes >= 1.1.1:
collective.z3cform.datetimewidget is merged into plone.formwidget.datetime,
so the zcml must override the template from
plone.formwidget.datetime.z3cform.interfaces.IDatetimeWidget as well.

Closes #745.
https://travis-ci.org/collective/collective.cover/builds/269263095

To avoid the errors:

AssertionError: Aug 28, 2017 04:33 PM != Aug 28, 2017 04:31 PM
AssertionError: Aug 28, 2017 04:36 PM != Aug 28, 2017 04:33 PM
AssertionError: Aug 28, 2017 04:33 PM != Aug 28, 2017 04:31 PM

Now we compare the length of the dates instead of the date string
itself.
@idgserpro idgserpro force-pushed the issue_745_fix_idatetimewidget_if_ploneappcontenttypes branch from 63394f8 to b66f127 Compare August 28, 2017 20:49
@hvelarde hvelarde merged commit dac7ab8 into master Aug 29, 2017
@hvelarde hvelarde deleted the issue_745_fix_idatetimewidget_if_ploneappcontenttypes branch August 29, 2017 13:13
@idgserpro
Copy link
Member Author

Would you mind creating a new release so we can focus on finishing IDG 1.2b1? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IDatetimeWidget customization is gone if plone.app.contenttypes >= 1.1.1 is installed
2 participants