Ticket #7532 (closed Bug: wontfix)
Kupu 1.4.7 configuration panel error
| Reported by: | shurik | Owned by: | hannosch |
|---|---|---|---|
| Priority: | minor | Milestone: | 3.3 |
| Component: | Internationalization | Keywords: | |
| Cc: | duncanb |
Description (last modified by ldr) (diff)
For reference, this is also a problem on 3.3 when you run with DISABLE_PTS True. Instead you can use PTS_LANGUAGES en
Change History
comment:1 Changed 4 years ago by wichert
- Owner changed from somebody to hannosch
- Component changed from Unknown to Internationalization
comment:3 Changed 4 years ago by hannosch
- Status changed from new to closed
- Resolution set to wontfix
- Milestone changed from Ongoing to 2.1.5
Plone 2.1 isn't supported anymore. I have no idea what could cause this, though.
comment:4 Changed 4 years ago by wichert
- Cc duncanb added; aleksandrv@… removed
http://plone.org/products/kupu claims that the kupu 1.4.7 release supports Plone 2.1 though. Perhaps that needs to be updated.
comment:5 Changed 4 years ago by duncan
kupu 1.4.7 works with Plone 2.1 if you have PlacelessTranslationService installed. Without it, the page template engine falls back on a DummyTranslation class which throws an exception here.
Workarounds: install PlacelessTranslationService edit kupu/plone/resource_types.pt to remove the string $object_url or edit Products/PageTemplates/GlobalTranslationService so it doesn't throw an exception for things which look like but aren't variable interpolations. e.g. replace {{{
return ustr(mapping[m.group(m.lastindex)])
}}} with something like: {{{
s = m.group(m.lastindex) return ustr(mapping.get(s, s))
}}}
comment:6 Changed 2 years ago by ldr
- Description modified (diff)
- Milestone changed from 2.1.5-unreleased to 3.3
I'm seeing this same problem with Kupu 1.4.15 on Plone 3.3.1
Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall Module ZPublisher.Publish, line 42, in call_object Module Shared.DC.Scripts.Bindings, line 313, in __call__ Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec Module Products.PageTemplates.PageTemplateFile, line 129, in _exec Module Products.CacheSetup.patch_cmf, line 77, in PT_pt_render Module Products.CacheSetup.patch_utils, line 9, in call_pattern Module Products.PageTemplates.PageTemplate, line 98, in pt_render Module zope.pagetemplate.pagetemplate, line 117, in pt_render - Warning: Macro expansion failed - Warning: exceptions.KeyError: u'object_url' Module zope.tal.talinterpreter, line 271, in __call__ Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 891, in do_useMacro Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 536, in do_optTag_tal Module zope.tal.talinterpreter, line 521, in do_optTag Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 891, in do_useMacro Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 536, in do_optTag_tal Module zope.tal.talinterpreter, line 521, in do_optTag Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 891, in do_useMacro Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 536, in do_optTag_tal Module zope.tal.talinterpreter, line 521, in do_optTag Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 949, in do_defineSlot Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 536, in do_optTag_tal Module zope.tal.talinterpreter, line 521, in do_optTag Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 949, in do_defineSlot Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 957, in do_defineSlot Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 949, in do_defineSlot Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 729, in do_insertTranslation Module zope.tal.talinterpreter, line 841, in translate Module Products.PageTemplates.Expressions, line 210, in translate Module Products.Five.i18n, line 59, in translate Module Products.PageTemplates.GlobalTranslationService, line 31, in translate Module Products.PageTemplates.GlobalTranslationService, line 29, in repl KeyError: u'object_url' > /mnt/plone/parts/zope2/lib/python/Products/PageTemplates/GlobalTranslationService.py(29)repl() -> return ustr(mapping[m.group(m.lastindex)])
