Skip to content

Copy page tree with apphooks throws a server error #5899

Open
@fsbraun

Description

@fsbraun

Summary

When trying to copy a page tree that somewhere down the tree has an apphook installed and then pasting the page tree somewhere else, Django-CMS throws a server error.

It seems that copying apphooks is not implemented and if I try copying a single page w/ apphook I get the appropriate message Error: This page cannot be copied because an application is attached to it. See the Page's Advanced settings to manage apphooks.

I consider this important, since the process for editing an entire page tree is to first copy it, make the modifications (while the original tree is still online) and then publish the copy and unpublish the original tree.

Expected behaviour

I would expect a meaningful error message instead of the 500 server error.

Even better, I would like Django-CMS copy the full page tree w/ apphooks. If the latter is not possible for whatever technical reason, I would like to at least get the full tree with apphooks removed plus a message that they could not be copied.

Actual behaviour

Error message Error: INTERNAL SERVER ERROR

Environment

  • Python version: 3.6
  • Django version: 1.8.14
  • django CMS version: 3.4.2

Thanks

Great work, everyone! Thanks very much!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions