[Zope3-dev] Re: Creating new objects in a package

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Oct 2 14:42:10 EDT 2004


On Tuesday 28 September 2004 20:45, Peter Mayne wrote:
> > I just thought of the chapter that demonstrates adding objects manually,
> > and it does not even use factories. <grin> The XML-RPC chapter shows you
> > how to create a message using Python.
>
> Ah, I haven't read that chapter because I currently have no need for
> XML-RPC.
>
> Incidentally, why in deleteMessage() do you use
> "self.context.__delitem__(name)" instead of "del self.context[name]"?
> Using a "__" method seems a bit low level.

I do not feel about it the same way, since __delitem__ is an API method and 
stated in the interfaces. But I hear what you are saying. ;-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list