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

Add possibility to filter member property on date #67

Open
gbastien opened this issue Apr 13, 2022 · 0 comments
Open

Add possibility to filter member property on date #67

gbastien opened this issue Apr 13, 2022 · 0 comments

Comments

@gbastien
Copy link
Member

Hi everybody,

we need to filter members on a date (last_login_time), to do this we extended the Plone members search form (by extending the IMemberSearchSchema) to add a schema.Date, this works fine and a calendar appears.

But then, this is not really handled by plone.app.users (will need to fix extractCriteriaFromRequest there) neither by ZODBMutablePropertyProvider.testMemberData.

What we need it set a date and then check if user last login is between now and this date.

It actually work by overriding things but we would like to put this back to Products.PlonePAS and plone.app.users to avoid 2 monkeypatches...

Did anybody already thought about this? Would it be acceptable to propose an implementation like for portal_catalog and being able to define a range of date and a "behavior" min/max/minmax?

Thank you for feedback,
Gauthier

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

No branches or pull requests

1 participant