[Zope3-dev] Renaming an object vs moving it
Roger Ineichen
dev at projekt01.ch
Fri Feb 4 17:30:00 EST 2005
Hi Garrett
> -----Original Message-----
> From: zope3-dev-bounces+dev=projekt01.ch at zope.org
> [mailto:zope3-dev-bounces+dev=projekt01.ch at zope.org] On
> Behalf Of Garrett Smith
> Sent: Friday, February 04, 2005 11:22 PM
> To: zope3-dev (E-mail)
> Subject: [Zope3-dev] Renaming an object vs moving it
>
> Jürgen Kartnaller brought up an issue with
> copypastemove.rename and its
> effect on ordered containers. rename uses an IObjectMover,
> which removes
> an item and then adds it back to its container. For ordered
> containers,
> this has the effect of moving the item to the last position of the
> container.
>
> I'm wondering if a rename should have the full effect of removing an
> item from its container and then adding it again -- with all
> the related
> object events being fired.
>
> Alternatively, we could fire a single ObjectRenamedEvent,
> which extends
> ObjectMovedEvent. I think this is more accurate than separate
> remove and
> add events.
>
> Thoughts?
>
> -- Garrett
+1
I think a ObjectRenamedEvent is better then delete and add
events, because we can support different usecase on rename.
Regards
Roger Ineichen
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> Unsub:
> http://mail.zope.org/mailman/options/zope3-dev/dev%40projekt01.ch
>
>
More information about the Zope3-dev
mailing list