From sisi at foei.org Tue Mar 17 11:21:39 2009 From: sisi at foei.org (sisi) Date: Tue, 17 Mar 2009 11:21:39 +0100 Subject: [kupu-dev] kupu_captioned_image - folder_summary_view.pt in Plone 3.1 Message-ID: <49BF79B3.30808@foei.org> Hi Kupuistas, I'm upgrading plone from 3.0.6 to 3.1.7 and I'm getting the kupu_captioned_image error from the ticket below: http://dev.plone.org/plone/ticket/8463 I don't find anything about this in this mailing list, and can't tell what the final outcome is from the ticket. I can try to apply the patches mentioned, but one of the links to a patch that should work is broken (http://rafb.net/p/vaZg8o43.html), and it seems that there is also the issues with folder_summary_view.pt, which is what my error is pointing at (when I have a collection as a default view on a folder). Could someone let me know what the best course of action is? Some specs and my traceback below. Thanks! sisi Plone 3.1.7 Zope 2.10.6-final python 2.4.5 Ubuntu kupu 1.4.12 Time 2009/03/17 10:33:21.029 GMT+1 User Name (User Id) admin (admin) Request URL http://localhost:8081/foeiMultisiteFolder/foei/en/media/index/folder_summary_view Exception Type AttributeError Exception Value kupu_captioned_image Traceback (innermost last): * Module ZPublisher.Publish, line 119, in publish * Module ZPublisher.mapply, line 88, in mapply * 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.CMFCore.FSPageTemplate, line 216, in _exec * Module Products.CacheSetup.patch_cmf, line 48, in FSPT_pt_render * Module Products.CacheSetup.patch_cmf, line 120, in PT_pt_render Warning: Macro expansion failed Warning: exceptions.KeyError: 'fl_macro' * 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 957, 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 861, in do_defineMacro * 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 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 536, in do_optTag_tal * Module zope.tal.talinterpreter, line 525, in do_optTag * 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 861, in do_defineMacro * 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 861, in do_defineMacro * Module zope.tal.talinterpreter, line 346, in interpret * Module zope.tal.talinterpreter, line 586, in do_setLocal_tal * Module zope.tales.tales, line 696, in evaluate URL: file:/media/localdisk/buildouts/prod-test-foei3/parts/plone/CMFPlone/skins/plone_content/folder_summary_view.pt Line 31, Column 8 Expression: Names: {'container': , 'context': , 'default': , 'here': , 'loop': {}, 'nothing': None, 'options': {'args': ()}, 'repeat': , 'request': , 'root': , 'template': , 'traverse_subpath': [], 'user': } * Module zope.tales.expressions, line 217, in __call__ * Module Products.PageTemplates.Expressions, line 161, in _eval * Module Products.PageTemplates.Expressions, line 123, in render * Module Products.Archetypes.ClassGen, line 56, in generatedAccessor * Module wicked.fieldevent, line 29, in render * Module zope.event, line 23, in notify * Module zope.component.event, line 26, in dispatch * Module zope.component._api, line 130, in subscribers * Module zope.component.registry, line 290, in subscribers * Module zope.interface.adapter, line 535, in subscribers * Module wicked.fieldevent, line 16, in notifyFieldEvent * Module zope.component._api, line 101, in getMultiAdapter * Module zope.component._api, line 114, in queryMultiAdapter * Module zope.component.registry, line 206, in queryMultiAdapter * Module zope.interface.adapter, line 482, in queryMultiAdapter * Module wicked.fieldevent.meta, line 78, in field_value * Module Products.Archetypes.Field, line 1391, in get * Module Products.Archetypes.BaseUnit, line 100, in transform * Module Products.PortalTransforms.TransformEngine, line 179, in convertTo * Module Products.PortalTransforms.chain, line 46, in convert * Module Products.PortalTransforms.Transform, line 190, in convert * Module Products.kupu.plone.html2captioned, line 127, in convert AttributeError: kupu_captioned_image -- # Our 2009 "dreams, hopes and possibilities for a better future" # calendar makes a great gift, and profits support Friends of the # Earth's campaigning! You can buy it here: # http://www.foei.org/en/get-involved/shop/calendar # # sisi nutt # web integrator # Friends of the Earth International # PO Box 19199 # 1000 GD Amsterdam # The Netherlands # Tel 31 20 6221369 # Fax 31 20 6392181 # http://www.foei.org # email sisi at foei.org # skype foei_sisi From runyaga at runyaga.com Tue Mar 17 17:28:43 2009 From: runyaga at runyaga.com (Alan Runyan) Date: Tue, 17 Mar 2009 11:28:43 -0500 Subject: [kupu-dev] AttributeError on html_captioned Message-ID: Hey sisi, goto portal_transforms delete the top two transforms they should be something like: - html_to_captioned - captioned_to_html then go back to the kupu tool in plone click save when you click save on kupu tool it recreates those two portal_transforms you deleted. take note of the two portal_transforms your deleting in case it doesnt work. tell me if that works. if it *does not* work just use Undo and undo the last 2 transaction, deleting transforms and saving the kupu tool -- Alan Runyan Enfold Systems, Inc. http://www.enfoldsystems.com/ phone: +1.713.942.2377x111 fax: +1.832.201.8856 From sisi at foei.org Tue Mar 17 18:10:11 2009 From: sisi at foei.org (sisi) Date: Tue, 17 Mar 2009 18:10:11 +0100 Subject: [kupu-dev] AttributeError on html_captioned In-Reply-To: References: Message-ID: <49BFD973.7010209@foei.org> Hey Alan, Thanks for your swift response! Alan Runyan wrote: > Hey sisi, > > goto portal_transforms > > delete the top two transforms they should be something like: > - html_to_captioned > - captioned_to_html > > then go back to the kupu tool in plone click save > > when you click save on kupu tool it recreates those two portal_transforms > you deleted. > > take note of the two portal_transforms your deleting in case it doesnt work. > > tell me if that works. > > if it *does not* work just use Undo and undo the last 2 transaction, > deleting transforms and saving the kupu tool I managed to delete the transforms and have them be regenerated by kupu after a save on the kupu tool. However, I still get that error when I try to view the folder that has a collection as it's default view. I've tested the other views on folders, and it really only seems to break on the collection views. Cheers, sisi -- # Our 2009 "dreams, hopes and possibilities for a better future" # calendar makes a great gift, and profits support Friends of the # Earth's campaigning! You can buy it here: # http://www.foei.org/en/get-involved/shop/calendar # # sisi nutt # web integrator # Friends of the Earth International # PO Box 19199 # 1000 GD Amsterdam # The Netherlands # Tel 31 20 6221369 # Fax 31 20 6392181 # http://www.foei.org # email sisi at foei.org # skype foei_sisi From sisi at foei.org Thu Mar 19 15:05:11 2009 From: sisi at foei.org (sisi) Date: Thu, 19 Mar 2009 15:05:11 +0100 Subject: [kupu-dev] AttributeError on html_captioned In-Reply-To: <49BFD973.7010209@foei.org> References: <49BFD973.7010209@foei.org> Message-ID: <49C25117.1030708@foei.org> Hi, I implemented the patch from Duane from fairsay mentioned here: http://dev.plone.org/plone/ticket/8463 ie *********** I changed line 35 of folder_summary_view.pt from: text here/aq_explicit/getText|nothing to text here/getText|nothing *********** and this works for me. In doing so I am now confused as to why the error message even mentions kupu, and am aware that I may well be spamming this list now. If this patch is needed, it needs to have more experienced eyes on it. Should I be emailing this request to the plone users or plone development lists rather than the kupu list? Sorry if this indeed is off topic, sisi sisi wrote: > Hey Alan, > > Thanks for your swift response! > > Alan Runyan wrote: >> Hey sisi, >> >> goto portal_transforms >> >> delete the top two transforms they should be something like: >> - html_to_captioned >> - captioned_to_html >> >> then go back to the kupu tool in plone click save >> >> when you click save on kupu tool it recreates those two portal_transforms >> you deleted. >> >> take note of the two portal_transforms your deleting in case it doesnt work. >> >> tell me if that works. >> >> if it *does not* work just use Undo and undo the last 2 transaction, >> deleting transforms and saving the kupu tool > > I managed to delete the transforms and have them be regenerated by kupu > after a save on the kupu tool. > > However, I still get that error when I try to view the folder that has a > collection as it's default view. > > I've tested the other views on folders, and it really only seems to > break on the collection views. > > Cheers, > sisi > > -- # Our 2009 "dreams, hopes and possibilities for a better future" # calendar makes a great gift, and profits support Friends of the # Earth's campaigning! You can buy it here: # http://www.foei.org/en/get-involved/shop/calendar # # sisi nutt # web integrator # Friends of the Earth International # PO Box 19199 # 1000 GD Amsterdam # The Netherlands # Tel 31 20 6221369 # Fax 31 20 6392181 # http://www.foei.org # email sisi at foei.org # skype foei_sisi