[Zope-CMF] replacing CMF tools?
Shane Hathaway
shane@zope.com
Mon, 01 Jul 2002 17:11:55 -0400
Karl Anderson wrote:
> Tres Seaver <tseaver@zope.com> writes:
>
>
>>>I'd like to do this to an existing CMF site, if possible, for quicker
>>>testing.
>>
>>Basically, you just delete it in the ZMI and add a new instance of
>>your tool under its name. As long as you implement the tool's
>>interface, everything should just work. You can add an instance of
>>the stock tool by selecting "CMF Default Tool" from the add list,
>>and then selecting "Memberdata tool" from the factory form.
>
>
> What about the CMFy initialization that the core tools currently do?
> Perhaps this isn't necessary because I'm subclassing those tools - I
> just looked at Plone's __init__ and it was just doing the ToolInit.
All of that funky initialization is just a shortcut that avoids the
necessity of making a factory form for every tool. If you're willing to
make your own factory forms, you don't need any of that complex
initialization. It makes no difference.
Shane