Skip to main content

Add to Plone a view for changing (cheating!) creation and last modification date

Project description

Introduction

You are a site administrator? Maybe you already saw use cases below.

Use case one

“Hi, I deleted an importan content created yesterday. I created it back but for $INTERNAL reason I need that this content seems created yesterday, before 02:00 P.M.”

—a user

Use case two

“Hi, I accidentally modified an old document… or better: the change was needed but for $INTERNAL reason I need it seems again ‘old’ ad before. Can you restore the last modification date to January 2008?”

—another user

Epilogue

The collective.datehacker product add to Plone a simple new view that you (the site admin? a smart user? every users in the portal) can use to change two of the most untouchable date inside Plone contents: the modification date and the creation date.

If you are trained enough, you can change those dates in few lines of code, but maybe:

  • you don’t know how to write code

  • you are lazy

  • you don’t have an account with Manager permissions

  • none of above, but you are sure that, sooner or later, someone will ask again for the same change.

Also this product can be useful after some big-migration activiti to Plone. May be that you or your users need to be able to restore some creation/modification date after the process.

Instructions

No much to say, just call an URL like http://myplonesitehost/mycontenttype/hackdates then you can use the user friendly form

The Plone form for changing dates

The form can only be called from users that behave the “Hack content’s dates” permission.

You can call the hackdates views where you want.

TODO

  • Register someway, somewhere, the hacking operation

  • Test on Plone 4 (it must work, but is untested)

Credits

Developed with the support of Azienda USL Ferrara; Azienda USL Ferrara supports the PloneGov initiative.

Azienda USL's logo

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Changelog

0.1.0a (2011-01-17)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.datehacker-0.1.0a.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

collective.datehacker-0.1.0a-py2.4.egg (15.7 kB view details)

Uploaded Source

File details

Details for the file collective.datehacker-0.1.0a.tar.gz.

File metadata

File hashes

Hashes for collective.datehacker-0.1.0a.tar.gz
Algorithm Hash digest
SHA256 de12feacd5b06d49872ebc2980f6321f06444f383aff9c6e66e8454bc10261f0
MD5 542305d25ddb0a092edcd223aa1531f8
BLAKE2b-256 888c02423c80267803e5b2021bf8397bf37298ab7ebf4c0f6706cabd12bf00df

See more details on using hashes here.

File details

Details for the file collective.datehacker-0.1.0a-py2.4.egg.

File metadata

File hashes

Hashes for collective.datehacker-0.1.0a-py2.4.egg
Algorithm Hash digest
SHA256 fba9f87cc9b8eb419dcf3267fc64dce0af2f3b529a1b3c4cd0e20dead221ea07
MD5 e03a38f007591256d573826a148f5ffe
BLAKE2b-256 cecc6b9b6e889befdef1fade962208d0a7e725689874f6ef26f1918101c19327

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page