Personal tools
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

6.4.2.5. ContentFactoryMetadata deprecation

Up one level
CMF deprecated this call a while back, and Plone 3.0 is the first version that ships without this. Here's how to update your product to use the new syntax.

Typical error message:

  Error Type: exceptions.ImportError
  Error Value: cannot import name ContentFactoryMetadata

What causes this? Somewhere in your code, you have something like:

  from Products.CMFCore.TypesTool import ContentFactoryMetadata

Update this to:

  from Products.CMFCore.TypesTool import FactoryTypeInformation

instead, and you should be good to go. This change should work all the way back to Plone 2.1.

For a live example, see DataGridField changeset 7901.

by Alexander Limi last modified April 25, 2007 - 20:44
Contributors: Martin Aspeli, Geir Bækholt, Sisi Nutt
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