Skip to main content

Sanitize a plone site for development use by Makina Corpus.

Project description


This provide a script cg.devmode which can do some actions on a zope instance.

The main use is when you grab the production datafs, you ‘ll need to sanitize the content a little. The sanitization include changing all passwords and all emails at once.

Another use is for running scripts without any security (we just give us all rights ;))

Actions & usage

Changing all email for all users:

./bin/cg.devmode -m

Changing all passwords

./bin/cg.devmode -p  --password=secret

Changing the administrator password

./bin/cg.devmode -a  --password=secret

Running a script with all security stuff removed

./bin/cg.devmode -r --script=</path/to/>  [--script-args="String"] # equivalent of ./bin/instance run String except for security


Running with debug

./bin/cg.devmode -v [ARGS]

Giving an alternative zope configuration file

./bin/cg.devmode -c <CONFIGGILE>

Specifying the plone site id

./bin/cg.devmode -l <PLONE_SITE_ID>

Specifying the admin user

./bin/cg.devmode --user <ADMIN_USER>

collective.generic.devmode Installation

To install collective.generic.devmode into the global Python environment (or a workingenv), using a traditional Zope 2 instance, you can do this:

  • When you’re reading this you have probably already run

    ``easy_install collective.generic.devmode``.

    Find out how to install setuptools (and EasyInstall) here:

  • If you are using Zope 2.9 (not 2.10), get pythonproducts and install it via:

    python install --home /path/to/instance

    into your Zope instance.

Alternatively, if you are using zc.buildout and the plone.recipe.zope2instance recipe to manage your project, you can do this:

  • Add collective.generic.devmode to the list of eggs to install, e.g.:

    extra-paths = ${instance:extra-paths}
    # in an oldschool zope2 install, zope2home/lib/python must be in extra-paths!
  • Re-run buildout, e.g. with:

    $ ./bin/buildout


1.0 - 2010-04-12

  • Initial release [kiorky]

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for collective.generic.devmode, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size (27.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page