Re: [Zope-dev] Proper Use of __init__ inside Zope Products?

2002-12-13 Thread Dieter Maurer
Jeff Rush writes: > Can a Zope-internals guru provide some enlightenment regarding the > mysteries of __init__? Are there mysteries? I do not think so. "__init__" behaves in Zope exactly the same as it does in Python. It behaves differently than (most) other methods in that its "self" is (of co

Re: [Zope-dev] Proper Use of __init__ inside Zope Products?

2002-12-12 Thread Lennart Regebro
From: "Jeff Rush" <[EMAIL PROTECTED]> > As I understand it, the use of __init__ should be avoided when > possible, since it isn't invoked (necessarily) when persistent > objects are reloaded from disk. I'm not sure why that would matter. I'm using __init__ all the time, never had one single proble

[Zope-dev] Proper Use of __init__ inside Zope Products?

2002-12-12 Thread Jeff Rush
Can a Zope-internals guru provide some enlightenment regarding the mysteries of __init__? I'm writing some zproducts that subclass the existing Folder class, and then are themselves subclassed. What I've got works, but I'm not sure its _correct_. As I'm writing a "Zope Best Practices" document,