Personal tools
You are here: Home Documentation Error References AttributeError: 'NoneType' object has no attribute 'keys'
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

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

This Error Reference applies to: Any version.
This Error Reference is intended for: Any audience.

I got this error when switching between OrderedBaseFolder and a BTree-based equivalent in Archetypes, the actual error can be a lot of things, but thought I would document this particular instance of it here.

This error message can show up when you switch a OrderedBaseFolder-based container in an Archetypes type to a BTree-based one (BaseBTreeFolder), and try to reinstall the product with an existing non-BTree based instance still in the portal.

The solution is to remove the existing instance, and create a clean one after installing the product. There is surely some way to get the old content over, but I don't know how to do that. ;)

A sample traceback of what you could be seeing on install:

  File "/Plone/Products/CMFCore/WorkflowTool.py", 
  line 669, in _recursiveUpdateRoleMappings
    obs = ob.objectItems()

  File "/Plone/Products/BTreeFolder2/BTreeFolder2.py", 
  line 369, in objectItems
    self.objectIds(spec))

  File "/Plone/Products/BTreeFolder2/BTreeFolder2.py", 
  line 350, in objectIds
    return self._tree.keys()

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

by Alexander Limi last modified March 15, 2005 - 07:34 All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by