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 zcontact

How to install zcontact

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

ZContact is an online contact management application built on the Zope3 web application framework. Below are instructions for managing ZContact on Ubuntu Linux. With some tweaks, this might even work on Mac OSX and Windows.

Quick Start

Follow these instructions to install ZContact and create a default server setup.

0. Install dependencies if they are not installed already (most of these dependencies are from Zope 3):

$ sudo apt-get install build-essential python-all python-all-dev

System Message: ERROR/3 (<string>, line 22)

Inconsistent literal block quoting.

libc6-dev libicu-dev python-setuptools

  1. Install ZContact:

    System Message: WARNING/2 (<string>, line 26)

    Literal block expected; none found.

$ sudo easy_install-2.4 zcontact

#. Create an "instance" of zcontact (including server configuration, log files and database) called "MyZContactServer". Feel free to replace MyZContactServer with whatever you want, or leave it blank and it will default to just "zcontact":

$ paster make-config zcontact MyZContactServer

#. Go to the newly created configuration area for your zcontact instance and start the server:

$ cd MyZContactServer
$ paster serve deploy.ini
  1. ZContact will now be available at http://localhost:8080 .

Updating Your ZContact Installation

To update your ZContact application, simply run the following command and restart your server.

$ sudo easy_install-2.4 -U zcontact

(the -U stands for "Update").

Running ZContact as a Daemon

To run ZContact as a daemon, go to the directory where your ZContact instance is located and type:

$ paster serve deploy.ini --daemon

The running daemon can be stopped with:

$ paster serve deploy.ini stop

Migrating Data

To migrate data from one zcontact server to another follow these steps:

  1. Make sure both zcontact instances are not running.

#. Copy the database file you want to migrate to the new instance. The database file is located in the var/ directory of the ZContact instance and is called Data.fs. You do not need to move any of the Data.fs.* files.

  1. Restart your ZContact instance.

Developer Installation

If you want to setup ZContact as a developer (i.e. from a repository checkout) rather than installing it as an egg on your system, follow these steps:

  1. Grab a branch of the latest ZContact code from Launchpad:

    System Message: WARNING/2 (<string>, line 93)

    Literal block expected; none found.

$ bzr branch http://bazaar.launchpad.net/~pcardune/zcontact/zcontact-lp

(Note: you can also use bzr checkout instead of bzr branch if you don't want to get all the revision information)

  1. Change to the directory where you just create the branch:

    System Message: WARNING/2 (<string>, line 100)

    Literal block expected; none found.

$ cd zcontact-lp

  1. Run make:

    System Message: WARNING/2 (<string>, line 104)

    Literal block expected; none found.

$ make

(Note: This will run the bootstrap.py script which sets up buildout, and it will invoke buildout which downloads all the necessary eggs to the eggs/ directory. If you have a common place where you have development eggs available, you should modify buildout.cfg before running make.)

  1. Run the tests:

    System Message: WARNING/2 (<string>, line 114)

    Literal block expected; none found.

$ make test

  1. Create the configuration:

    System Message: WARNING/2 (<string>, line 118)

    Literal block expected; none found.

$ make install

(This adds the var and log directories along with a deploy.ini, site.zcml, and zope.conf in the checkout)

  1. Start the server:

    System Message: WARNING/2 (<string>, line 125)

    Literal block expected; none found.

$ make run

  1. Generate test coverage reports:

    System Message: WARNING/2 (<string>, line 129)

    Literal block expected; none found.

$ make coverage

NOTE: if you get errors about setuptools not being the right version, then you need to install the easy_install script and run:

$ sudo easy_install-2.4 -U setuptools

(The -U option forces setuptools to look online for the latest updates)

If you don't like using make, or you are not on a Linux system, then try the following:

$ python bootstrap.py
$ ./bin/buildout -vN

A note to the wise: It seems to be the consensus of the Zope community that one should never use the standard system python to run your software because you might screw it up. And screwing up system pythong is not a good idea if you can avoid it. So to really do this properly, you should install your own python by actually downloading the src, compiling it, and installing it to some place like /opt/mypython. Then when you install the checkout, use:

$ /opt/mypython/bin/python bootstrap.py
$ ./bin/buildout -vN

And that will be best.

Getting More Information

Contact me on chat.freenode.net. My most common username is pcardune and I hang around #schooltool and #zope3-dev. Otherwise, email me at paul_at_carduner_dot_net

Please send me requests for other instructions you want to be put into this README file.

place holder for changes

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.