Forum OpenACS Development: Re: acs_object_types.package_name ?

Collapse
Posted by Malte Sussdorff on
It does? Cool, because when I tried it told me referential integrity constraint, deleting live revision.

Therefore I assumed we have a chicken and egg problem, content_item__delete deletes the revisions first (which it must as they are linked to the item) but then you delete the live revision, which is not allowed either. And I had written the code anyway, as we cannot be sure (as in the case of ::xowiki::Page type) that the content_type of the item is the content_type I want to delete.

On the other hand, that was before I wrote the code with content_item__delete based on the content_type (I tried the object_type), so maybe I just got confused half way down the road.

As I will install and delete XoWiki for testing purposes anyway a couple of times I will give it a try (without the revisions)