[Zope3-dev] namechooser : object deleted instead of being renamed

Marius Gedminas mgedmin at b4net.lt
Mon Jul 2 08:06:24 EDT 2007


On Mon, Jun 18, 2007 at 07:22:20PM +0300, Marius Gedminas wrote:
> On Mon, Jun 18, 2007 at 12:20:57PM +0200, Christophe Combelles wrote:
> > Hi,
> > 
> > I've experienced a dangerous behaviour with namechoosers :
> > 
> > If the namechooser computes a name which is the same as the current name,
> > the object is deleted!
> > 
> > This is simple to reproduce :
> > - register a name chooser that only returns "foobar"
> > - create your object → ok it's name is foobar
> > - from the Contents view of it's container, try to rename it (with a 
> > different name)
> > - → deleted
> > 
> > Someone should try to reproduce that, to be sure that's not a side effect 
> > of my app, but I don't think so.
> 
> I can reproduce it with a unit test:

I've added this to the bug tracker so it doesn't get lost:
https://bugs.launchpad.net/zope3/+bug/123532

Marius Gedminas
-- 
Ambition is a poor excuse for not having enough sense to be lazy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20070702/7527c3f4/attachment.bin


More information about the Zope3-dev mailing list