Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.contentsync

How to install collective.contentsync

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.contentsync
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.01 Available View build log
Windows (64-bit)
1.01 Available View build log
Mac OS X (10.5+)
1.01 Available View build log
Linux (32-bit)
1.01 Available View build log
Linux (64-bit)
1.01 Available View build log
 
Author
License
GPL
Dependencies
Lastest release
version 1.01 on Jan 5th, 2011

Introduction

collective.contentsync addresses the case where many folders must be synchronized with one master folder template.

For example, your system has many clients who need to upload files into a directory structure. Your template may look like this:

Template - Accreditation files - Financial statements 2008 - Financial statements 2009 - Staff profiles

Every client must also have this structure since content is going to be uploaded into that structure. Suppose you have 1000 clients and now you add "Financial statements 2010" to your template. This new folder must be pushed to every single client. This process would be time-consuming by hand, hence the existence of collective.contentsync.

Rules of synchronization

The terms "source" and "destination" are used. The rules are dependent on an item providing information as to whether it was created by a synchronization or a user.

  1. New items in the source tree are copied to the corresponding location in the destination tree. If an item already exists at this location in the destination tree it is preserved.
  2. Items which appear in the destination tree but not the source tree are deleted if and only if they were created during a synchronization and do not contain any items that were created by a user.
  3. Items which appear in the destination tree and which were created during a synchronization are renamed if the corresponding source item is renamed. The rename is limited to title and does not include the id.

User interface

The user is presented with a progress bar and a detailed log. This provides constant feedback and prevents timeouts.

Usage

Append /@@collective.contentsync.form to the URL of the item you wish to synchronize, or simply run the collective.contentsync profile in portal_setup. Running the profile will add a Synchronize tab to every folderish item in your site.

collective.contentsync has not been tested with a pure Zope application but should "just work" since it has no Plone dependencies.

Changelog

1.01
  • If an object in the source tree is renamed it is renamed in the target on a
  • sync
  • More progress outputs
1.0
  • Initial release

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.