Re: Re: Bug in Archetypes constructor
Dieter Maurer <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Max M wrote at 2006-4-6 12:32 +0200: > ... >I see that the problem is here: > > obj = %(name)s(id) > self._setObject(id, obj) > >Which should probably read: > > obj = %(name)s(id) > id = obj.getId() > self._setObject(id, obj) > >Then it would take into account if the id was changed by the __init__ >method. > >As the id *must* be passed to the init method, it really should have >this behaviour. > >I quickly tested the change and it didn't break Plone. > >Does anybody else agree that the previous behaviour was a bug and should >be fixed? I agree with you. -- Dieter ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642