[Zope-CMF] Re: [CMF-checkins] CVS: CMF/CMFDefault/dtml - explainURLTool.dtml:NONE

Yuppie schubbe@web.de
Mon, 25 Nov 2002 14:19:01 +0100


Chris Withers wrote:

> > Moved URLTool.py and explainURLTool.dtml to CMFCore. (Collector #67)
> > - changed meta_type
> > - removed string functions and redundant code
> > - added interface and basic tests
>
>
> How will this affect URLTools that were created with old versions of CMF?
> Will we get unpicling errors 'cos the class can't be found?

I asked Shane how to avoid that. It's the strategy I used:

> Well, try this strategy: leave a module called URLTool.py inside CMFDefault.  It would contain just this code:
> 
> # Temporary alias for CMFCore.URLTool
> from Products.CMFCore.URLTool import URLTool
> 
> That way, existing databases will find the class.


Cheers,
Yuppie