{ "info": { "author": "Zope Corporation and Contributors", "author_email": "zope3-dev@zope.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Zope3", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "=========\npsycopgda\n=========\n\nThis file outlines the basics of using Zope3 with PostgreSQL via PsycopgDA.\n\nInstalling PsycopgDA\n--------------------\n\n1. Check out the psycopgda package into a directory in your\n PYTHONPATH. INSTANCE_HOME/lib/python or Zope3/src is usually the\n most convenient place:\n\n svn co svn://svn.zope.org/repos/main/psycopgda/trunk/psycopgda psycopgda\n\n2. Copy `psycopg-configure.zcml` to the `package-includes` directory\n of your Zope instance.\n\n\nYou can also use the eggified version, by installing it sitewide:\n\n easy_install -U psycopgda\n\nIf you're using buildout, just by listing psycopgda in the 'eggs' key\nof your buildout.cfg, then buildout should be able to find and fetch it.\n\nCreating Database Connections\n------------------------------\n\nIt is time to add some connections. A connection in Zope 3 is\nregistered as a utility.\n\n3. Open a web browser on your Zope root folder (http://localhost:8080/\n if you use the default settings in zope.conf.in).\n\n4. Click on the 'Manage Site' action on the right side of the\n screen. You should see a screen which reads 'Common Site Management\n Tasks'\n\n5. Around the middle of that page, you should see a link named 'Add\n Utility'. Click on it.\n\n6. Select 'Psycopg DA' and type in a name at the bottom of the page.\n\n7. Enter the database connection string. It looks like this:\n\n dbi://username:password@host:port/databasename\n\n8. Click on the 'Add' button.\n\n9. You should be on a page which reads 'Add Database Connection\n Registration'. There you can configure the permission needed to use\n the database connection, the name of the registration and the\n registration status. You can use any name for 'Register As' field,\n as long as it doesn't clash with an existing one. Choose a\n permission. Choose between 'Registered' and 'Active' for the\n 'Registration Status'. Only one component of a kind can be 'Active'\n at a time, so be careful.\n\n10. You should be redirected to the 'Edit' screen of the connection\n utility.\n\n11. If you want to, you can go to the Test page and execute arbitrary\n SQL queries to see whether the connection is working as expected.\n\n\nUsing SQL Scripts\n-----------------\n\nYou can create SQL Scripts in the content space. For example:\n\n12. Go to Zope root.\n\n13. Add an SQL script (you can use the Common Tasks box on the left,\n or the Add action on the right).\n\n14. Click on the name of your new SQL script.\n\n15. Choose a connection name (the one you entered in step 29) from the\n drop-down.\n\n16. Enter your query and click on the 'Save Changes' button.\n\n17. You can test the script in the -- surprise! -- Test page.\n\n\n=======\nCHANGES\n=======\n\n1.1.1 (2008/01/26)\n------------------\n\n- Bug: Some classes were incorrectly looked up.\n\n1.1.0 (2008/01/26)\n------------------\n\n- Feature: Produced a real egg.\n\n- Restructuring: Moved from ``psycopgda`` to ``zope.psycopgda``.\n\n- Bug: Fixed issue 561: PsycopgDA ForbiddenAttribute exception.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/zope.psycopgda", "keywords": "zope3 rdn postgresql psycopg", "license": "ZPL 2.1", "maintainer": null, "maintainer_email": null, "name": "zope.psycopgda", "package_url": "https://pypi.org/project/zope.psycopgda/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zope.psycopgda/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/zope.psycopgda" }, "release_url": "https://pypi.org/project/zope.psycopgda/1.1.1/", "requires_dist": null, "requires_python": null, "summary": "Psycopg Database Adapter for Zope 3", "version": "1.1.1" }, "last_serial": 805516, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "160d640d19250ec178bd9fd341052e1e", "sha256": "1eefc82e255144415334f26eb9ccc3cc7c48f1249b42a0bc04d7ad5078bc7e0e" }, "downloads": -1, "filename": "zope.psycopgda-1.1.0.tar.gz", "has_sig": false, "md5_digest": "160d640d19250ec178bd9fd341052e1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11607, "upload_time": "2008-02-27T07:16:32", "url": "https://files.pythonhosted.org/packages/c2/0a/14292dc92c02e3b4e2b7285c8b01da0c647db200cc0066a3c2d9284885c3/zope.psycopgda-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "fa7b9f912ac302c5dac6060cb0a63ea8", "sha256": "d3cd05267ba3728fe8a6db7a973dcc2f3918d15a818da1de309fdbf5b01c9f87" }, "downloads": -1, "filename": "zope.psycopgda-1.1.1.tar.gz", "has_sig": false, "md5_digest": "fa7b9f912ac302c5dac6060cb0a63ea8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11667, "upload_time": "2008-02-27T07:51:23", "url": "https://files.pythonhosted.org/packages/0f/75/d22f09ac94b52978c2707390240631e6b27a8c4075c76f3e910ce98d178c/zope.psycopgda-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fa7b9f912ac302c5dac6060cb0a63ea8", "sha256": "d3cd05267ba3728fe8a6db7a973dcc2f3918d15a818da1de309fdbf5b01c9f87" }, "downloads": -1, "filename": "zope.psycopgda-1.1.1.tar.gz", "has_sig": false, "md5_digest": "fa7b9f912ac302c5dac6060cb0a63ea8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11667, "upload_time": "2008-02-27T07:51:23", "url": "https://files.pythonhosted.org/packages/0f/75/d22f09ac94b52978c2707390240631e6b27a8c4075c76f3e910ce98d178c/zope.psycopgda-1.1.1.tar.gz" } ] }