Skip to main content

collective.cutandpaste Package Readme

Overview

for copy and paste items for plone with an csv file csv file must have a minimun of two columns: src path and the dst path

it’s looks like that

src;dst
dir/sdir;dir2/sdir1
dir/sdir/ssdir1;dir2/sdir2
dir/sdir/ssdir2;dir2/sdir3

The result must be :

  • directory sdir is moved to dir2 and rename sdir1

  • directory ssdir1 is moved to dir2 and rename sdir2

  • directory ssdir2 is moved to dir2 and rename sdir3

Use

This tool use transmogrifier. Please refer to transmogrifier documentation in order to know how it work. You define copy and paste operation via an transmogrifier cfg configuration file name cutandpaste.cfg (on collective.cutandpaste/collective/cutandpaste/cutandpaste.cfg)

To launch the cut and paste process:

1 - go to portal_setup (zmi)

2 - select collective.cutandpaste

3 - check transmogrifier step

4 - click to “Import selected steps” button

Blueprint

This package define some blueprints :

collective.cutandpaste.csvreader

Read an csv file (source section for transmogrifier): as collective.transmogrifier one but you can define delimiter.

collective.cutandpaste.main

Cut and paste process

options :

  • path_src : the name of key for the src path

  • path_dst : the name of dst for the dst path

  • content_type : ATFolder (if dst path is not exists, the collective.cutandpaste.main create destination parent path for you)

collective.cutandpaste.flushcache

Flush zodb cache (for keeping memory low)

options :

  • every : flush cache every iterate (default 100)

collective.cutandpaste.printer

define an csv file for output reports

options :

  • file_out : path of the csv file fout output

  • delimiter : the delimiter

Changelog

1.1 (2011-12-14)

  • Add new options

  • canfixtranslation : fix translation reference for lingua plone content

  • langtranslations : define LP lang (just a couple seperated by comma)

  • workflow_transition : define a workflow transition for newly created folder

1.0 (2011-11-24)

  • Initial release

Release files for collective.cutandpaste 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.cutandpaste 1.1
File Size Uploaded
collective.cutandpaste-1.1.tar.gz 7.5 kB Details

Release files / collective.cutandpaste-1.1.tar.gz

Download URL collective.cutandpaste-1.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a6fc1d195e8611f7d4f6c556df84afe99d51ace6e02264bccceaf05aa5e101dc
BLAKE2b-256 checksum
How to use checksums
90b874f1a66f810e6bab97a0421e2ea9f52d8ede3f558b6fee420acca6618b4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page