Make it easier to build Zope3 + MySQL applications
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sqlobject (Ubuntu) |
Invalid
|
Wishlist
|
Unassigned | ||
zope3 (Debian) |
Fix Released
|
Unknown
|
|||
zope3 (Ubuntu) |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
I recently started delving into building a Zope3 + MySQL application on Ubuntu Dapper. Here are the steps I had to do:
I've elided starting and stopping the Zope3 process, the false starts, and dead ends.
Install the zope3-sandbox package, which gets all dependencies for Zope3, and sets up a sandbox instance at /var/lib/
Add my Ubuntu login user to the 'zope' group (makes editing easier).
Make sure the sandbox and all subfolders are writable by group:
install mysql-server package
install mysql-client package
install mysqladmin package
Install setuptools with ez_setup.py, as described here:
http://
Install SQLObject by running:
Install SQLOS (Zope3 SQLObject Support) by running:
Download a tarball of SQLOS:
http://
From the tarball, extract the four files
in /sqlos-
After that, I had to do some fiddling to get the sample app included with SQLOS working with MySQL:
Go to /var/lib/
svn co svn://svn.
Create a file named 'mysqldbda-
inside /var/lib/
with the following contents:
Edit /usr/lib/
Added a testdb to MySQL, and a testuser (with a password of testuser) with full privileges on that DB:
Create the required sample_person table:
) ENGINE=MyISAM DEFAULT CHARSET=latin1
Create the required dog and sample_
After accomplishing all of that, Zope now has a new 'SQLObject MultiContainer' available that you can add through the web, and to which you can then add simple 'Person' objects that are persistent in the table. Adding a second container shows the same person objects as exist in the first. Deleting a person deletes the record. Deleting the containers does not.
After deleting all the added containers, deleting the
sqlos.ftesting-
The following enhancements are requested:
1) Add a package to Ubuntu for MySQLdbDA, so a subversion source checkout is not necessary (Debian bug: http://
2) Updating SQLObject under Dapper to 0.7 in order to support SQLOS. (Edgy has the newer version)
3) Add a package to Ubuntu for SQLOS for gluing Zope3 and MySQL together via SQLObject.
Changed in sqlobject: | |
importance: | Untriaged → Wishlist |
Changed in zope3: | |
importance: | Untriaged → Wishlist |
Changed in zope3: | |
status: | Unknown → Unconfirmed |
description: | updated |
Changed in zope3: | |
status: | Unconfirmed → Fix Released |
Changed in sqlobject (Ubuntu): | |
status: | New → Invalid |
submitter 323296 !
submitter 355415 !
submitter 349802 !
submitter 345831 !
submitter 333012 !
submitter 299264 !
submitter 248234 !
thanks