Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicolas-raoul/cmis2cmis-sync
cmis2cmis-sync from http://code.google.com/p/cmis-sync/
https://github.com/nicolas-raoul/cmis2cmis-sync
cmis
Last synced: about 2 months ago
JSON representation
cmis2cmis-sync from http://code.google.com/p/cmis-sync/
- Host: GitHub
- URL: https://github.com/nicolas-raoul/cmis2cmis-sync
- Owner: nicolas-raoul
- Created: 2012-10-04T05:49:06.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-04T05:50:21.000Z (about 12 years ago)
- Last Synced: 2024-06-11T19:19:30.408Z (7 months ago)
- Topics: cmis
- Language: Python
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
This assumes cmislib is already in your sys.path somehow. I recommend virtualenv, but to each his own. You'll most likely need cmislib from HEAD. I think there are one or two minor issues in cmislib 0.5 related to changes.
Edit settings.py to set SOURCE and TARGET settings appropriately. This only supports one source to one target at the moment.
Your SOURCE must support changes.
Your TARGET must support ContentStreamUpdatability = anytime.
The POLL_INTERVAL dictates how often the script will check the source for changes.
Limitations:
- Only syncs cmis:document and cmis:folder.
- Only syncs standard metadata (cmis:name, cmis:contentStreamMimeType, and the contentStream).
- Sync is one-way only, from SOURCE to TARGET.
- Only supports 'created' and 'updated' change types.
- Uses path and name to match source and target objects. Therefore, renames and path changes are not supported.
- This script will not sync deletes.Run the script with no arguments to start syncing. The first time it runs it will call getContentChanges with no token. It will save the latest token in lastSync.p so that on subsequent runs, it will only get what has changed since the last run.
Force the script to start syncing from a specific token by passing the token to the script as the first argument.