Personal tools
You are here: Home Documentation Error References Functional testing: The object at x has an empty or missing docstring.
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

Functional testing: The object at x has an empty or missing docstring.

Warning: This item is marked as outdated.

This Error Reference applies to: Plone 2.1.x, Plone 2.0.x
This Error Reference is intended for: Any audience.

You get error "Zope has encountered a problem publishing your object. The object at x has an empty or missing docstring."

Cause

__bobo_traverse__ fails in functional testing, because getattr("actionname") for Plone object returns None - The actions of your object are not accessible. This causes "missing doctstring" message, because None object has no docstring (surprise, error message is not very helpful). When using quick installer in  ATFunctionalSiteTestCase, method PortalTestCase._refreshSkinData() is not called. This is needed for action registration.

Solution

In your TestCase.afterSetup(), call PortalTestCase._refreshSkinData()

        self.qi = self.portal.portal_quickinstaller
        self.qi.installProduct('Archetypes')
        self.at = self.portal.archetype_tool
        self.qi.installProduct('PloneLocalFolderNG')
      
        # Calling this ensures that PloneLocalFolderNG actions are registered propeply
        self._refreshSkinData()


by Mikko Ohtamaa last modified January 16, 2006 - 22:18
Contributors: Mikko Ohtamaa
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