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 gs-export

How to install gs_export

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install gs-export
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.1.2 Available View build log
 
License
BSD
Dependencies
Imports
Lastest release
version 0.1.2 on Jan 9th, 2014

GS Export

GS Export is a little helper that dumps your GenericSetup profile to a given directory, and sends you a mail, if anything has changed since it was last run.

GS Export uses git to store the change history, it simply sends the result of a git status -q if there are any changes. It is your responsabilility to commit the changes, else you will get the same notification on the next run.

GS Export always sends a passwort with each request, it is POST encoded but it is still there. This also means, it needs basic auth working on your plone site. You might want to run GS Export only on the same machine as the zope client.

GS Export needs to be configured, and it needs a lot of options. Since GS Export might be needed for many sites on one host, it does not look for a configuration file with a fixed name, but you must provide a configuration file as the first argument to the script. This is a sample configuration. All arguments are required:

[gs_export]
base_url = http://yoursite:8080/Plone/portal_setup
user = youruser
password = yourpass
path = /absolute_path_to_dump_diretory_of_git
mail_server = your.mailserver
mail_port = 587
mail_user = your_mail_user
mail_password= your_mail_pass
mail_from = your_email_adress
mail_mode = TLS
mail_recipient=your_receiving_email_adress
ignore = structure
    workflow
  • base_url must point to portal_setup
  • the path must exist
  • mail_mode accepts an empty string, TLS and SSL
  • This tool only accepts one mail recipient. This could easily by changed though
  • ignore accepts multiple parameters. Ignore means, after dumping the configuration, the ignore parts are deleted! It is a good idea to ignore structure. Multiple values can be added by adding one for each line and indenting the elements

GS Export is intended to be run by a cron job.

Todo
  • Allow for multiple recipients.

Changes

0.1.2 (2012-12-05)
  • Work around missing subprocess.check_output() in python 2.6 [pgerken]
0.1.1 (2012-12-03)
  • Make email-message more verbose [pbauer]
0.1.0 (2012-09-06)
  • Nothing changed yet.
0.0.5 (2012-09-06)
  • Nothing changed yet.
0.0.4 (2012-09-06)
  • Nothing changed yet.
0.0.3 (2012-09-06)
  • Corrected the classifiers.
0.0.2 (2012-09-06)
  • Adding missing meta information.
  • The egg has correct classifiers, but the egg tagged as 0.0.2 has not!
0.0.1 (2012-09-06)
  • Initial release

Subscribe to package updates

Last updated Jan 9th, 2014

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.