Re: [Zope3-Users] Name chooser and Renaming

2007-01-10 Thread Marius Gedminas
On Mon, Jan 08, 2007 at 06:24:17PM +0100, David Johnson wrote: > Is it possible to have both a NameChooser and an ObjectRenamer. If > so...how? It seems that zope.app.container.browser contents.py has > the following code: > > self.supportsRename = ( > self.supportsCut and

Re: [Zope3-Users] Name chooser and Renaming

2007-01-10 Thread David Johnson
Okay. Since I didn't get a response I assumed no one else knew either. I figured out the following: 1. Since I have a custom container that is derived from IContainer, it is already configured as a IContainerNamesContainer, and if I override chooseName() and checkName(), I get the desired e

[Zope3-Users] Name chooser and Renaming

2007-01-08 Thread David Johnson
Is it possible to have both a NameChooser and an ObjectRenamer. If so...how? It seems that zope.app.container.browser contents.py has the following code: self.supportsRename = ( self.supportsCut and not IContainerNamesContainer.providedBy(self.context)