Ticket #439 (new defect)

Opened 15 years ago

Last modified 8 years ago

allowed_content_types and publication control

Reported by: jmorliaguet Owned by: fguillaume
Priority: P2 Milestone: CPS 3.5.6
Component: CPSWorkflow Version: CPS 3.2 branch
Severity: normal Keywords:

Description (last modified by fguillaume) (diff)

when a content type not allowed in folderish documents like 'Book' (according to CMF) is published in such a type of object, its id cannot be modified after by using "change object id".

this is because manage_renameObjects() calls _verifyObjectPaste()

for instance a book document is published in a section, then a news document is published in the book, but the id of the news document cannot be changed afterwards.

ValueError? Error Value:

Cannot paste subobject type 'News'.



  • Module OFS.CopySupport?, line 248, in manage_renameObject
  • Module Products.CMFCore.PortalFolder?, line 503, in _verifyObjectPaste

ValueError?: Cannot paste subobject type 'News'.

an obvious solution is to allow the creation of other document types than Chapter and Page in Book.

Change History

comment:1 Changed 14 years ago by fguillaume

  • Description modified (diff)
  • Milestone changed from unspecified to CPS 3.5.0

comment:2 Changed 8 years ago by gracinet

  • Milestone changed from CPS 3.5.3 to CPS 3.5.4
  • Component changed from CPSCore to CPSWorkflow
  • Summary changed from Cannot change the id of documents published in Book other than Page and Chapter to allowed_content_types and publication control

Sounds to me that the news doc shouldn't be publishable in the book at all. We may need another level of control besides allowed_content_types.

Note: See TracTickets for help on using tickets.