Skip to main content

Special paste action with extra options

Project description

Introduction

When copying and pasting an object in Plone the workflow state of the newly pasted object is set to the initial state. Sometimes you want to keep the original state. This is what zest.specialpaste does.

Use case

You use Plone to store some information about clients in a folder. You have created a standard folder with a few sub folders and several documents, images and files that you use as a template for new clients. For new clients some of these objects should already be published. You have set this up correctly in the template or sample folder. You copy this folder, go to a new location and use the ‘Special paste’ action from zest.specialpaste to paste the objects and let the review state of the new objects be the same as their originals.

Compatibility

Tested on Plone 4.0 and 4.1. Currently it does not work on Plone 3.3; that surprises me, so it might be fixable.

Installation

  • Add zest.specialpaste to the eggs of your buildout (and to the zcml too if you are on Plone 3.2 or earlier, but it does not work there currently). Rerun the buildout.

  • Install Zest Special Paste in the Add-on Products control panel. This adds a ‘Special paste’ action on objects and registers a browser layer that makes our @@special-paste browser view available.

Future ideas

  • We can add a form in between where you can specify what should be special for the paste. When selecting no options it should do the same as the standard paste action.

  • Allow keeping the original owner.

  • Take over local roles.

  • Make compatible with Plone 3.3 as well.

Changelog

1.0 (2011-11-02)

  • 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

zest.specialpaste-1.0.zip (29.4 kB view details)

Uploaded Source

File details

Details for the file zest.specialpaste-1.0.zip.

File metadata

  • Download URL: zest.specialpaste-1.0.zip
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zest.specialpaste-1.0.zip
Algorithm Hash digest
SHA256 036abd7683a8b6d7589f66f4a99feb88bc60f6ffd04fecca478d5d9430770ecc
MD5 0094d829c011216a095c77717c171a8d
BLAKE2b-256 070a01f6efa5f57c152378034df9f1f7ad0012b3bee0a76afe66c1ac5140089d

See more details on using hashes here.

Supported by

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