Thiago Garcia Tamosauskas wrote:
>  
>
> Com o posso resolver um erro tipo: UnicodeDecodeError
>
>  
>
> O plone acusa erro no PageTamplate event_view, mas estamos usando ele 
> exatamente como vem de fabrica, sem customização nenhuma!
>
>  
>
> Se alguém puder dar uma olhada no erro:
>
>  
>
> http://www.metodista.br/agenda/2007/junho/publicacao-das-faltas-no-portal-da-metodista
>
>  
>
>
> Site Error
>
>
> An error was encountered while publishing this resource. 
>
> UnicodeDecodeError
>
> Sorry, a site error occurred.
>
> Traceback (innermost last): 
>
> *     Module ZPublisher.Publish, line 188, in publish_module_standard
> *     Module Products.PlacelessTranslationService.PatchStringIO, line 34, in 
> new_publish
> *     Module ZPublisher.Publish, line 145, in publish
> *     Module Zope2.App.startup, line 216, in zpublisher_exception_hook
> *     Module ZPublisher.Publish, line 114, in publish
> *     Module ZPublisher.mapply, line 88, in mapply
> *     Module ZPublisher.Publish, line 40, in call_object
> *     Module Shared.DC.Scripts.Bindings, line 311, in __call__
> *     Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
> *     Module Products.CMFCore.FSPageTemplate, line 195, in _exec
> *     Module Products.CacheSetup.patch_cmf, line 50, in FSPT_pt_render
> *     Module Products.CacheSetup.patch_cmf, line 116, in PT_pt_render
>       <FSPageTemplate at /site/event_view used for 
> /site/agenda/2007/junho/publicacao-das-faltas-no-portal-da-metodista>
> *     Module TAL.TALInterpreter, line 206, in __call__
> *     Module TAL.TALInterpreter, line 250, in interpret
> *     Module TAL.TALInterpreter, line 711, in do_useMacro
> *     Module TAL.TALInterpreter, line 250, in interpret
> *     Module TAL.TALInterpreter, line 426, in do_optTag_tal
> *     Module TAL.TALInterpreter, line 411, in do_optTag
> *     Module TAL.TALInterpreter, line 406, in no_tag
> *     Module TAL.TALInterpreter, line 250, in interpret
> *     Module TAL.TALInterpreter, line 711, in do_useMacro
> *     Module TAL.TALInterpreter, line 250, in interpret
> *     Module TAL.TALInterpreter, line 279, in do_startEndTag
> *     Module TAL.TALInterpreter, line 308, in do_startTag
> *     Module TAL.TALInterpreter, line 374, in attrAction_tal
> *     Module Products.PageTemplates.TALES, line 227, in evaluateText
> *     Module Products.PageTemplates.TALES, line 221, in evaluate
>       URL: /site/header
>       Line 62, Column 4
>       Expression: string:u'${portal_url}/author/${here/Creator}'
>       Names:
>
> *                {'container': <PloneSite at /site>,
> *                 'context': <ATEvent at 
> /site/agenda/2007/junho/publicacao-das-faltas-no-portal-da-metodista>,
> *                 'default': <Products.PageTemplates.TALES.Default instance 
> at 0xb74a962c>,
> *                 'here': <ATEvent at 
> /site/agenda/2007/junho/publicacao-das-faltas-no-portal-da-metodista>,
> *                 'loop': <Products.PageTemplates.TALES.SafeMapping object at 
> 0xa110a3cc>,
> *                 'modules': 
> <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 
> 0xb743854c>,
> *                 'nothing': None,
> *                 'options': {'args': ()},
> *                 'repeat': <Products.PageTemplates.TALES.SafeMapping object 
> at 0xa110a3cc>,
> *                 'request': <HTTPRequest, 
> URL=http://www.metodista.br/agenda/2007/junho/publicacao-das-faltas-no-portal-da-metodista/event_view>,
> *                 'root': <Application at >,
> *                 'template': <FSPageTemplate at /site/event_view used for 
> /site/agenda/2007/junho/publicacao-das-faltas-no-portal-da-metodista>,
> *                 'traverse_subpath': [],
>  'user': Anonymous User}
>
> *     Module Products.PageTemplates.Expressions, line 229, in __call__
>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: 
> ordinal not in range(128) (Also, the following error occurred while 
> attempting to render the standard error message, please see the event log for 
> full details: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not 
> in range(128))
>
>  
>
> Muito Obrigado
>
>  
>
> Thiago Tamosauskas <mailto:[EMAIL PROTECTED]> 
>
> Gerência de Comunicação - Web
> Diretoria de Comunicação e Marketing
>
> * 5068 
>
>  
>
>  
>
>
>   
Mas ele não está reclamando do event_view!

O erro que você tem ai foi gerado no arquivo header */site/header* como 
pode ver no traceback que vc enviou! o erro é na expressão  
string:u'${portal_url}/author/${here/Creator}'

At,

-- 
#!/bin/bash
# Name: Cleber J Santos
# Email: [EMAIL PROTECTED]
# Icq: 200007837

Responder a