Issue 282 in dexterity: Should copied objects use INameChooser?

0 megtekintés
Ugrás az első olvasatlan üzenetre

dext...@googlecode.com

olvasatlan,
2013. jan. 10. 5:44:422013. 01. 10.
– dexterity-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 282 by wich...@wiggy.net: Should copied objects use INameChooser?
http://code.google.com/p/dexterity/issues/detail?id=282

Currently when copying a dexterity object the new id is determine by the
OFS.CopySupport.CopySupport._get_id() method, which returns a
copyN_of_<original id>. This may create names that violation the naming
policy as defined by the INameChooser adapter.

Should dexterity override _get_item to defer to the name chooser?


dext...@googlecode.com

olvasatlan,
2013. jan. 11. 8:11:252013. 01. 11.
– dexterity-...@googlegroups.com

Comment #1 on issue 282 by wich...@wiggy.net: Should copied objects use
INameChooser?
http://code.google.com/p/dexterity/issues/detail?id=282

This appears to require a change in Zope2 to pass the object to be pasted
to _get_id as well. I made a Zope2 branch to do that
(http://svn.zope.org/Zope/branches/wichert-ofs-paste-naming/develop/?rev=129036&view=rev).
Hopefully that can be merged soon.

Válasz mindenkinek
Válasz a szerzőnek
Továbbítás
0 új üzenet