Implement Recycle Bin#4166
Conversation
|
@rohnsha0 thanks for creating this Pull Request and helping to improve Plone! TL;DR: Finish pushing changes, pass all other checks, then paste a comment: To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically. Happy hacking! |
|
@jenkins-plone-org please run jobs |
…tions Control Panel
|
@jenkins-plone-org please run jobs |
stevepiercy
left a comment
There was a problem hiding this comment.
This is a great addition! Minor tweaks to messages and news. Thank you!
Co-authored-by: Steve Piercy <web@stevepiercy.com>
stevepiercy
left a comment
There was a problem hiding this comment.
Changes look good. Let's get a technical review from a senior Plonista.
|
This is an interesting solution to the problem that was not covered in https://community.plone.org/t/any-plans-for-an-official-trashcan-in-plone/5440 |
I took the inspiration from reading about various other CMS :)
the relations are preserved throughout the restoration process... as they're essentially "frozen" in the state they were in at deletion time.
I was unfortunately unable to make it work on deleted comments. I was working on it since morning.. but somehow wasn't able to! |
+1 |
|
All the presentation logic for classic UI (in particular the templates), should go in I still did not have the time to deeply checked the code. About the approach taken, from my previous experiences, I like the approach of applying a trashed interface because it is way faster. |
| def __call__(self): | ||
| form = self.request.form | ||
|
|
||
| if form.get("form.submitted", False): |
There was a problem hiding this comment.
I would use a z3c.form form here
|
closed in favour of #4168 |
ref #2966