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 15:54:18
|
On Fri, Nov 26, 2004 at 02:36:07PM +0300, Oleg Broytmann wrote: > > Readability. I like list() because it seems just a tiny bit more clear > > than [], even though the end result is the same. > Oops. My readability taste says opposite! :) I prefer [] to list(). > The matter of taste... Yup! :) > > Ahh.. and .select() returns None, and the list(p) then fails because > > list(None) does not make sense, since None is not iterable. > Clear, but not exactly. .select() returns SelectResult, whose > __iter__ returns iterSelect of its dbconnection. It seems connection > object was broken or lost during refresh. Okay. > > > 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? > Do not use refresh. Always do full Zope restart - stop and start it > anew. Same problem. Whenever Zope has been stopped my product breaks as I have described, and it needs to be added again. I have tried with "Restart" in the Zope panel and actually stopping the Zope service on the server and starting it again. -- 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 |