Hi Nate,
I don't know how that worked for Eric, but I now get another error.
The file appears to upload properly and the entry appears in the
folder view, but the metadata is missing. There is no album art or
time displayed, however the file does play properly. When I try to
view the audio file I get the following traceback:
2009-11-17 15:14:38 ERROR Zope.SiteErrorLog
1258488877.790.958406717547
http://localhost:8499/ayb/test/moto.mp3/file_view
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 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.AttributeError: @@tag_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 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 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 623, in do_insertText_tal
Module Products.PageTemplates.Expressions, line 230, in evaluateText
Module zope.tales.tales, line 696, in evaluate
- URL: index
- Line 70, Column 20
- Expression: <PathExpr standard:'audio_info/bit_rate'>
- Names:
{'container': <ATFile at /ayb/test/moto.mp3>,
'context': <ATFile at /ayb/test/moto.mp3>,
'default': <object object at 0xb7dbb528>,
'here': <ATFile at /ayb/test/moto.mp3>,
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping
object at 0x100b21ec>,
'request': <HTTPRequest, URL=
http://localhost:8499/ayb/test/
moto.mp3/file_view>,
'root': <Application at >,
'template': <ImplicitAcquirerWrapper object at 0xfd0f34c>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>,
'view': <Products.Five.metaclass.SimpleViewClass from /var/ayb/
eggs/p4a.audio-1.1rc1-py2.4.egg/p4a/audio/browser/
audio.pt object at
0x1001124c>,
'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper
object at 0x1009e94c>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 163, in _eval
Module Products.PageTemplates.Expressions, line 125, in render
Module p4a.audio.browser.audio, line 271, in bit_rate
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
Any suggestions?
Thanks,
Allen
> Nate Aune - na...@jazkarta.comhttp://www.jazkarta.comhttp://
card.ly/natea