[Zope3-dev] rename 'DuplicationError'
Sidnei da Silva
sidnei@x3ng.com.br
Wed, 19 Feb 2003 08:39:31 -0300
Citando Steve Alexander <steve@cat-box.net>:
| In src/zope/app/content/folder.py, line 90, if you try to call setObject
| on a folder with a name that is already present in the folder, you get a
| DuplicationError.
|
| I think this error is poorly named. A 'DuplicationError' sounds to me
| like an error to do with trying to xerox something.
|
| I propose that this error is renamed to 'DuplicateNameError' or
| 'DuplicateKeyError'.
|
| Also, it derives from ZopeError. This feels more like a KeyError to me,
| so I think it should derive from ZopeError and KeyError.
+1 on that. The same applies to app/container/zopecontainer.py and its rename
method.
[]'s
--
Sidnei da Silva (dreamcatcher) <sidnei@x3ng.com.br>
X3ng Web Technology <http://www.x3ng.com.br>