List Info

Thread: AttributeError: _length




AttributeError: _length
user name
2007-02-08 09:46:38
I imported a Plone 2.1.4 site into a Zope 2.8.6-final via
zexp. Before
that, the plone site ran on a Zope 2.7.9-final without
problems.

Now I get this traceback:

Traceback (innermost last):
 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.PageTemplates.ZopePageTemplate, line 256,
in _exec
 Module Products.PageTemplates.PageTemplate, line 104, in
pt_render
  - <ZopePageTemplate at /praevention2/document_view used
for
/praevention2/index_html>
 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 481, in do_setGlobal_tal
 Module Products.PageTemplates.TALES, line 221, in evaluate
  - URL:
file:CMFPlone/skins/plone_templates/global_defines.pt
  - Line 3, Column 0
  - Expression: <PythonExpr
putils.createTopLevelTabs(actions)>
  - Names:
     {'container': <PloneSite at /praevention2>,
      'context': <ATDocument at
/praevention2/index_html>,
      'default': <Products.PageTemplates.TALES.Default
instance at 0x8664060c>,
      'here': <ATDocument at
/praevention2/index_html>,
      'loop': <Products.PageTemplates.TALES.SafeMapping
object at 0x7f26be4c>,
      'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporte
r instance at
0x8664466c>,
      'nothing': None,
      'options': {'args': ()},
      'repeat': <Products.PageTemplates.TALES.SafeMapping
object at
0x7f26be4c>,
      'request': <HTTPRequest,
URL=http://maxwell.edubs.ch/praevention2/index_html
/document_view>,
      'root': <Application at >,
      'template': <ZopePageTemplate at
/praevention2/document_view
used for /praevention2/index_html>,
      'traverse_subpath': [],
      'user': goeldi}
 Module Products.PageTemplates.ZRPythonExpr, line 47, in
__call__
  - __traceback_info__: putils.createTopLevelTabs(actions)
 Module Python expression
"putils.createTopLevelTabs(actions)", line
1, in <expression>
 Module Products.CMFPlone.PloneTool, line 671, in
createTopLevelTabs
 Module Products.CMFPlone.CatalogTool, line 466, in
searchResults
 Module Products.ZCatalog.ZCatalog, line 690, in
searchResults
 Module Products.ZCatalog.Catalog, line 733, in
searchResults
 Module Products.ZCatalog.Catalog, line 539, in search
 Module Products.ZCatalog.Catalog, line 566, in sortResults
 Module Products.PluginIndexes.common.UnIndex, line 120, in
__len__
AttributeError: _length

_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup

Re: AttributeError: _length
country flaguser name
Brazil
2007-02-08 10:57:02
Hey Stephan,

> I imported a Plone 2.1.4 site into a Zope 2.8.6-final
via zexp. Before
> that, the plone site ran on a Zope 2.7.9-final without
problems.
> 
> Now I get this traceback:
> 
> [snipped]
>
>  Module Products.CMFPlone.PloneTool, line 671, in
createTopLevelTabs
>  Module Products.CMFPlone.CatalogTool, line 466, in
searchResults
>  Module Products.ZCatalog.ZCatalog, line 690, in
searchResults
>  Module Products.ZCatalog.Catalog, line 733, in
searchResults
>  Module Products.ZCatalog.Catalog, line 539, in search
>  Module Products.ZCatalog.Catalog, line 566, in
sortResults
>  Module Products.PluginIndexes.common.UnIndex, line
120, in __len__
> AttributeError: _length

known issue:

http://plone.org/documentation/error/zope
-upgrade-attributeerror-length

BTW, first item when googling for 'AttributeError:
_length'... 

HTH,

-- 
 ___________________________________________________________
________

       Dorneles Treméa · Developer · Plone Solutions ·
Brazil

   Consulting · Training · Development · http://plonesolutions.com
 ___________________________________________________________
________

  Plone Foundation · http://plone.org/foundati
on · Protecting Plone


_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )