p4a.audio not working with plone 3.3rc3

2 views
Skip to first unread message

rafael

unread,
Jun 18, 2009, 1:00:53 PM6/18/09
to Plone4Artists users
Hi,

After upgrading to plone 3.3rc3 and trying to edit an audio subtyped
file I get the following traceback (below) ...
I don't know if it is related. but I am also getting an error with
other product and both tracebacks mention kupu xml .. (http://
groups.google.com/group/singing-dancing/msg/61bb9c698cdfa9d8?)

thanks

rafael







Time 2009/06/18 08:29:40.089 GMT-5
User Name (User Id) admin (admin)
Request URL
http://inverta.org:8080/jornal/radio-inverta/programa-voz-rebelde/1-Aniversario-do-Jornal-Inverta-25-09-08.mp3/atct_edit
Exception Type AttributeError
Exception Value 'NoneType' object has no attribute 'getActionInfo'

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 zope.formlib.form, line 770, in __call__
* Module zope.formlib.form, line 764, in render
* 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 126, in PT_pt_render
Warning: Macro expansion failed
Warning: exceptions.KeyError: 'macros'
* 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 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 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 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 891, in do_useMacro
* 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 534, in do_optTag_tal
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 824, in do_loop_tal
* 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 745, in
do_insertStructure_tal
* Module Products.PageTemplates.Expressions, line 221, in
evaluateStructure
* Module zope.tales.tales, line 696, in evaluate
URL: pageform
Line 114, Column 10
Expression: <PathExpr standard:'widget'>
Names:

{'container': <ATFile at /jornal/radio-inverta/programa-voz-
rebelde/1-Aniversario-do-Jornal-Inverta-25-09-08.mp3>,
'context': <ATFile at /jornal/radio-inverta/programa-voz-
rebelde/1-Aniversario-do-Jornal-Inverta-25-09-08.mp3>,
'default': <object object at 0xf7c15528>,
'here': <ATFile at /jornal/radio-inverta/programa-voz-rebelde/1-
Aniversario-do-Jornal-Inverta-25-09-08.mp3>,
'loop': {'widget':
<Products.PageTemplates.Expressions.PathIterator object at
0x16a9766c>},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping
object at 0xf515d6c>,
'request': <HTTPRequest, URL=http://inverta.org:8080/jornal/
radio-inverta/programa-voz-rebelde/1-Aniversario-do-Jornal-
Inverta-25-09-08.mp3/atct_edit>,
'root': <Application at >,
'template': <ImplicitAcquirerWrapper object at 0x11dce9ac>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>,
'view': <Products.Five.metaclass.AudioEditForm object at
0x12f0ff2c>,
'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper
object at 0xf515eac>}

* 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 p4a.common.at, line 45, in __call__
* 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 126, in PT_pt_render
Warning: Macro expansion failed
Warning: exceptions.KeyError: 'widget'
* Module zope.tal.talinterpreter, line 271, in __call__
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 824, in do_loop_tal
* 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 855, in do_condition
* 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 855, in do_condition
* 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 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 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 855, in do_condition
* 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:/usr/local/Plone/buildout-cache/eggs/
Products.kupu-1.4.13-py2.4.egg/Products/kupu/plone/kupu_plone_layer/
kupu_wysiwyg_support.html
Line 39, Column 0
Expression: <PathExpr standard:u'here/kupu_xmlconfig'>
Names:

{'container': <zope.schema._bootstrapfields.Text object at
0x12f0c30c>,
'context': <zope.schema._bootstrapfields.Text object at
0x12f0c30c>,
'default': <object object at 0xf7c15528>,
'here': <zope.schema._bootstrapfields.Text object at
0x12f0c30c>,
'loop': {'widget':
<Products.PageTemplates.Expressions.PathIterator object at
0x160ea4cc>},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping
object at 0x10d7f70c>,
'request': <HTTPRequest, URL=http://inverta.org:8080/jornal/
radio-inverta/programa-voz-rebelde/1-Aniversario-do-Jornal-
Inverta-25-09-08.mp3/atct_edit>,
'root': <Application at >,
'template': <ImplicitAcquirerWrapper object at 0x10d7f8cc>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>,
'view': <p4a.common.at.RichTextEditWidget object at
0x12f0cd4c>,
'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper
object at 0x1122a86c>}

* Module zope.tales.expressions, line 217, in __call__
* Module Products.PageTemplates.Expressions, line 161, in _eval
* Module Products.PageTemplates.Expressions, line 111, in render
* Module Products.PageTemplates.ZRPythonExpr, line 79, in
call_with_ns
* Module Shared.DC.Scripts.Bindings, line 327, in
__render_with_namespace__
* Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
* Module Products.CMFCore.FSPageTemplate, line 216, in _exec
* Module Products.CacheSetup.patch_cmf, line 51, in FSPT_pt_render
* Module Products.CacheSetup.patch_cmf, line 126, in PT_pt_render
* 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 586, in do_setLocal_tal
* Module zope.tales.tales, line 696, in evaluate
URL: file:/usr/local/Plone/buildout-cache/eggs/Plone-3.3rc3-
py2.4.egg/Products/CMFPlone/skins/plone_templates/global_defines.pt
Line 8, Column 0
Expression: <PathExpr standard:u'plone_view/globalize'>
Names:

{'container': <PloneSite at /jornal>,
'context': <DDocument at /jornal/archetype_tool/fake_instance>,
'default': <object object at 0xf7c15528>,
'here': <DDocument at /jornal/archetype_tool/fake_instance>,
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping
object at 0x1382126c>,
'request': <HTTPRequest, URL=http://inverta.org:8080/jornal/
radio-inverta/programa-voz-rebelde/1-Aniversario-do-Jornal-
Inverta-25-09-08.mp3/atct_edit>,
'root': <Application at >,
'template': <FSPageTemplate at /jornal/kupu_xmlconfig used for /
jornal/archetype_tool/fake_instance>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}

* 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.CMFPlone.browser.ploneview, line 74, in
globalize
* Module Products.CMFPlone.browser.ploneview, line 166, in
_initializeData
* Module plone.memoize.view, line 55, in memogetter
* Module plone.app.layout.globals.context, line 108, in
is_view_template
* Module plone.memoize.view, line 55, in memogetter
* Module plone.app.layout.globals.context, line 88, in
view_template_id
* Module plone.app.layout.globals.context, line 221, in
_lookupTypeActionTemplate

AttributeError: 'NoneType' object has no attribute 'getActionInfo'

Tom Gross

unread,
Jun 19, 2009, 2:25:45 AM6/19/09
to p4a-...@googlegroups.com
Hi Rafael,

I have a patch for this. But I was told to wait with the checkin until
the pa4-repository has moved to collective. In short: You have to use
the WYSIWYGWidget from Plone instead of the one from p4a.common.at for
the richtext-description of pa4.audio.

-Tom

Ross Patterson

unread,
Jun 19, 2009, 2:34:42 AM6/19/09
to p4a-...@googlegroups.com
Tom Gross <itcon...@gmail.com> writes:

> I have a patch for this. But I was told to wait with the checkin
> until the pa4-repository has moved to collective.

I wouldn't wait for this if I were you. Getting commit access and
committing it will probably take less time than the planning and
execution of the move by far.

Ross

rafael

unread,
Jun 19, 2009, 11:19:28 AM6/19/09
to Plone4Artists users
Hi,

If you could send me the diff thorugh email while waiting this I would
really appreciate. I need this for a production site.

Thanks,

Rafael

On Jun 19, 3:25 am, Tom Gross <itconse...@gmail.com> wrote:
> Hi Rafael,
>
>   I have a patch for this. But I was told to wait with the checkin until
> the pa4-repository has moved to collective. In short: You have to use
> the WYSIWYGWidget from Plone instead of the one from p4a.common.at for
> the richtext-description of pa4.audio.
>
> -Tom
>
> rafael wrote:
> > Hi,
>
> >   After upgrading to plone 3.3rc3 and trying to edit an audio subtyped
> > file I get the following traceback (below) ...
> >   I don't know if it is related. but I am also getting an error with
> > other product and both tracebacks mention kupu xml .. (http://
> > groups.google.com/group/singing-dancing/msg/61bb9c698cdfa9d8?)
>
> > thanks
>
> > rafael
>
> > Time       2009/06/18 08:29:40.089 GMT-5
> > User Name (User Id)        admin (admin)
> > Request URL
> >http://inverta.org:8080/jornal/radio-inverta/programa-voz-rebelde/1-A...
> ...
>
> read more »

dennisharrison

unread,
Jun 22, 2009, 11:54:28 AM6/22/09
to Plone4Artists users
Why not a diff to this post? :)
> ...
>
> read more »

Tom Gross

unread,
Jun 23, 2009, 5:49:48 AM6/23/09
to p4a-...@googlegroups.com, rafael...@gmail.com
here it is :).

I'll add the unittest when I have commit access to the p4a-repository,
which I am still waiting for.

-Tom
p4aaudio-plone33.patch

rafael

unread,
Jun 23, 2009, 10:09:24 AM6/23/09
to Plone4Artists users
Thanks a lot. Tested it here and worked. this path fixed it...
> ...
>
> read more »
>
>  p4aaudio-plone33.patch
> < 1KViewDownload
Reply all
Reply to author
Forward
0 new messages