Jon Baldivieso wrote:
Hi Eric -- I couldn't replicate your problem on a fresh install of Plone 3.0.5. And I don't recognize that error. But if it's useful, here's some background: when you create a new PressRoom object, it pre-populates itself with three Folders (for each of the supporting PressRoom content types), each with their own new Collection as a default page. So in the case of the folder for Press Releases, it creates the Folder (id: 'press-releases') and the contained Collection (id: 'all-press-releases').

So I would verify that Folders and Collections are implicitly addable in your site and that Folders are not employing a workflow that would somehow generate an AttributeError when trying to access a newly-created sub-item.

Hope that helps!

Jon
___________________________
Jon Baldivieso
503.222.5064
ONE/Northwest Portland Office

New tools and strategies for engaging people in protecting the environment



On Jan 9, 2008, at 8:22 PM, Eric S. Tyrer II wrote:

Hi

I seem to be breaking PressRoom allot. I've got a 3.0.5 site and i've
successfully installed PressRoom, but I get the following error when I
try to create the folder.

Traceback (innermost last):
 Module ZPublisher.Publish, line 119, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 42, in call_object
 Module Products.CMFPlone.FactoryTool, line 368, in __call__
 Module Products.CMFPlone.FactoryTool, line 152, in __getitem__
 Module Products.CMFPlone.PloneFolder, line 348, in invokeFactory
 Module Products.CMFCore.TypesTool, line 716, in constructContent
 Module Products.CMFCore.TypesTool, line 276, in constructInstance
 Module Products.CMFCore.TypesTool, line 450, in _constructInstance
 Module Products.PressRoom.content.PressRoom, line 9, in addPressRoom
 Module Products.PressRoom.content.PressRoom, line 139, in
initializeArchetype
 Module Products.ATContentTypes.lib.constraintypes, line 281, in
invokeFactory
 Module Products.CMFCore.PortalFolder, line 315, in invokeFactory
 Module Products.CMFCore.TypesTool, line 716, in constructContent
 Module Products.CMFCore.TypesTool, line 278, in constructInstance
 Module Products.CMFCore.TypesTool, line 290, in _finishConstruction
 Module Products.CMFCore.CMFCatalogAware, line 148, in
notifyWorkflowCreated
 Module Products.CMFCore.WorkflowTool, line 292, in notifyCreated
 Module Products.CMFCore.WorkflowTool, line 642, in
_reindexWorkflowVariables
 Module Products.Archetypes.CatalogMultiplex, line 65, in
reindexObjectSecurity
 Module Products.ZCatalog.CatalogBrains, line 52, in
_unrestrictedGetObject
 Module OFS.Traversable, line 269, in unrestrictedTraverse
  - __traceback_info__: ([], 'all-press-releases')
AttributeError: all-press-releases

tipically this error is related to an object creates in a context but which is not accessible in a standard way, example: to upload a file in an instance which lives in portal_factory, you've to:

# Move object out of portal factory if necessary. We can't create images inside
# a folder in the portal factory
new_context = context.portal_factory.doCreate(context, id)

otherwhise, you'll get that error.

I don't know why, Aspeli wrote the code above.

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to