Hello,
while testing the CPS svn revision 23874 I get an error if I click on the advance search link using the italian language, the page is http://localhost:8080/cps/advanced_search_form. It works fine with english and french. I didn't have any problem using CPS 3.3.4-2.
This is the transcript:

Error type: AttributeError

Error Value: 'NoneType' object has no attribute 'encode'

Traceback (innermost last):

   * Module ZPublisher.Publish, line 101, in publish
   * Module ZPublisher.mapply, line 88, in mapply
   * Module ZPublisher.Publish, line 39, in call_object
   * Module Shared.DC.Scripts.Bindings, line 306, in __call__
   * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   * Module Products.CMFCore.FSPageTemplate, line 188, in _exec
   * Module Products.CMFCore.FSPageTemplate, line 127, in pt_render
   * Module Products.PageTemplates.PageTemplate, line 96, in pt_render
     <FSPageTemplate at /cps/advanced_search_form>
   * Module TAL.TALInterpreter, line 190, in __call__
   * Module TAL.TALInterpreter, line 234, in interpret
   * Module TAL.TALInterpreter, line 460, in do_setLocal_tal
   * Module Products.PageTemplates.TALES, line 221, in evaluate
     URL: file:CPSDefault/skins/cps_default/advanced_search_form.pt
     Line 1, Column 0
     Expression: <PythonExpr here.processSearchForm(REQUEST=request)>
     Names:

{'container': <CPSDefaultSite instance at b3f0e410>,
'context': <CPSDefaultSite instance at b3f0e410>,
'default': <Products.PageTemplates.TALES.Default instance at 0xb7733acc>,
'here': <CPSDefaultSite instance at b3f0e410>,
'loop': <SafeMapping instance at b6cdf810>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb772cfcc>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at b6cdf810>,
'request': <HTTPRequest, URL=http://localhost:8080/cps/advanced_search_form>,
'root': <Application instance at b73fe8f0>,
'template': <FSPageTemplate at /cps/advanced_search_form>,
'traverse_subpath': [],
'user': svn}

   * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
     __traceback_info__: here.processSearchForm(REQUEST=request)
* Module Python expression "here.processSearchForm(REQUEST=request)", line 1, in <expression>
   * Module Products.CMFCore.FSPythonScript, line 108, in __call__
   * Module Shared.DC.Scripts.Bindings, line 306, in __call__
   * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   * Module Products.CMFCore.FSPythonScript, line 163, in _exec
   * Module None, line 27, in processSearchForm
     <FSPythonScript at /cps/processSearchForm>
     Line 27
   * Module Products.CPSSchemas.LayoutsTool, line 95, in renderLayout
   * Module Products.CPSSchemas.Layout, line 377, in renderLayoutStructure
   * Module Products.CPSSchemas.BasicWidgets, line 1175, in render

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


How can I fix this error?

Thank you.

_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to