[Zope-CMF] Re: KeyError: main_template when upgrading to CMF 1.3.2
Yuppie
schubbe at web.de
Wed Sep 10 15:53:26 EDT 2003
Hi!
Tim Terlegård wrote:
>>>I get an error after upgrading to CMF 1.3.2:
>>>
>>>Error Type: KeyError
>>>Error Value: main_template
>>>
>>>I don't get any tracebacks in debug mode. In debug mode I get
>>>the following when Zope starts:
>>>"ZODB Could not import class 'URLTool' from module
>>>'Products.CMFCore.URLTool'"
>
>
>>Strange! That sounds like your 'old' CMFCore is from CMF 1.4.
>>CMFCore
>>1.3.x doesn't include an URLTool, CMFCore 1.4.x does.
>
>
> Uh, oh. I don't remember, actually, how I installed CMF. Maybe
> it was from CVS and perhaps it's an early 1.4. In 1.3.2 the
> URLTool is in CMFDefault I found.
It's never a good idea to downgrade CMF. But on the over hand Plone
1.0.x doesn't work with CMF 1.4.x.
> But, what is trying to import URLTool from CMFCore? I grep'ed
> for 'CMFCore.URLTool' in my Zope directory, but nothing was
> found. The error message says "ZODB Could not import class..."
> Is there something stored in the database that tries to import?
Your portal_url object in the root folder of your site 'knows' if it is
a CMFCore.URLTool or a CMFDefault.URLTool. You could delete the
portal_url object ('CMF URL Tool') and add a 'Default URL Tool' instead.
> Is the KeyError: main_template associated with the URLTool error?
Don't know. There might be other things broken, depending on the date of
your checkout.
HTH,
Yuppie
More information about the Zope-CMF
mailing list