On Fri, Nov 26, 2004 at 12:26:45PM +0100, Anders Bruun Olsen wrote:
> 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.
Oops. My readability taste says opposite! :) I prefer  to list().
The matter of taste...
> > > 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.
Clear, but not exactly. .select() returns SelectResult, whose
__iter__ returns iterSelect of its dbconnection. It seems connection
object was broken or lost during refresh.
> > > 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?
Do not use refresh. Always do full Zope restart - stop and start it
Oleg Broytmann http://phd.pp.ru/ phd@...
Programmers don't die, they just GOSUB without RETURN.