This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

psycopgda

This file outlines the basics of using Zope3 with PostgreSQL via PsycopgDA.

Installing PsycopgDA

  1. Check out the psycopgda package into a directory in your PYTHONPATH. INSTANCE_HOME/lib/python or Zope3/src is usually the most convenient place:

    svn co svn://svn.zope.org/repos/main/psycopgda/trunk/psycopgda psycopgda

  2. Copy psycopg-configure.zcml to the package-includes directory of your Zope instance.

You can also use the eggified version, by installing it sitewide:

easy_install -U psycopgda

If you’re using buildout, just by listing psycopgda in the ‘eggs’ key of your buildout.cfg, then buildout should be able to find and fetch it.

Creating Database Connections

It is time to add some connections. A connection in Zope 3 is registered as a utility.

  1. Open a web browser on your Zope root folder (http://localhost:8080/ if you use the default settings in zope.conf.in).

  2. Click on the ‘Manage Site’ action on the right side of the screen. You should see a screen which reads ‘Common Site Management Tasks’

  3. Around the middle of that page, you should see a link named ‘Add Utility’. Click on it.

  4. Select ‘Psycopg DA’ and type in a name at the bottom of the page.

  5. Enter the database connection string. It looks like this:

    dbi://username:password@host:port/databasename

  6. Click on the ‘Add’ button.

  7. You should be on a page which reads ‘Add Database Connection Registration’. There you can configure the permission needed to use the database connection, the name of the registration and the registration status. You can use any name for ‘Register As’ field, as long as it doesn’t clash with an existing one. Choose a permission. Choose between ‘Registered’ and ‘Active’ for the ‘Registration Status’. Only one component of a kind can be ‘Active’ at a time, so be careful.

  8. You should be redirected to the ‘Edit’ screen of the connection utility.

  9. If you want to, you can go to the Test page and execute arbitrary SQL queries to see whether the connection is working as expected.

Using SQL Scripts

You can create SQL Scripts in the content space. For example:

  1. Go to Zope root.
  2. Add an SQL script (you can use the Common Tasks box on the left, or the Add action on the right).
  3. Click on the name of your new SQL script.
  4. Choose a connection name (the one you entered in step 29) from the drop-down.
  5. Enter your query and click on the ‘Save Changes’ button.
  6. You can test the script in the – surprise! – Test page.

CHANGES

1.1.1 (2008/01/26)

  • Bug: Some classes were incorrectly looked up.

1.1.0 (2008/01/26)

  • Feature: Produced a real egg.
  • Restructuring: Moved from psycopgda to zope.psycopgda.
  • Bug: Fixed issue 561: PsycopgDA ForbiddenAttribute exception.
Release History

Release History

1.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
zope.psycopgda-1.1.1.tar.gz (11.7 kB) Copy SHA256 Checksum SHA256 Source Feb 27, 2008

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting