Re: [SQLObject] SQLObject and Zope 2.7.3/2.8.0a1
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Anders B. O. <an...@br...> - 2004-11-26 11:26:51
|
On Fri, Nov 26, 2004 at 12:32:31PM +0300, Oleg Broytmann wrote: > > people = list() > Why not > people = [] > ? Readability. I like list() because it seems just a tiny bit more clear than [], even though the end result is the same. > > According to the errorlog the error occurs on the line where I do the > > for-loop, which means that the problem is the list(p) call. I am > No. .select() cannot find a module or class. Ahh.. and .select() returns None, and the list(p) then fails because list(None) does not make sense, since None is not iterable. > > guessing that this is due to persistence or something like that. I > No, this is due to problems with registries. SQLObject registries are > not compatible with module reloading (refresh). Hmm.. and I assume there is no easy way to fix that? > > Is it just 100% impossible to use SQLObject with Zope 2? > It is possible, at least in Zope3. Look at > http://codespeak.net/z3/sqlos/ . May be you can port it to Zope2. It looks really good, but I doubt that I can easily port it to Zope2, and Zope3 looks like quite a different beast than Zope2. I might end up having to just deal with SQL directly :( -- Anders -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/O d--@ s:+ a-- C++ UL+++$ P++ L+++ E- W+ N(+) o K? w O-- M- V PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b++ DI+++ D+ G e- h !r y? ------END GEEK CODE BLOCK------ PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41 |