Forum OpenACS Development: Re: Parent_id for folders with no parent in acs-content-repository

Lars,

You stole my idea again :) Although this time I have evidence :)

I have been thinking that any sort of CMS app needs to have a folder mapped to a site_node. In fact this is how the WebDAV support figures out which folder to look in for content.

Generally, I have an idea why parent_id can't be NULL. There is a unique constraint on name, parent_id and it doesn't seem that would be valid if parent_id could be Null.

The only idea I can up with was to set parent_id to the item_id if there is no parent, but I am not sure that makes more sense than the way it works now. Alternatively we could create a -99 no_parent object.

Anyway, I think that file-storage in the short term will use the 0, and we can fix it after. I should be able to release an updated file-storage package with WebDAV support shortly after release of 5.0. I hadn't tried to get it into 5.0 because at the time, it appeared my work would be later than the 5.0 release.