Forum OpenACS Development: content_item__copy

Collapse
Posted by Dave Bauer on
The pl/(pg)sql procedure content_item__copy assumes that you will not give an item a new name when you copy it.

This makes it impossible to copy an item to the same folder because the procedure does not accept a name parameter.

I am thinking a new version (for postgresql) or an optional parameter would be useful. It will have to check to make sure you are not creating two of the same item name in one folder.

This will make common operations on the CR optionall work like a familiar filesystem.

Content_folder__copy has the same issue.

Comments?

Collapse
2: Re: content_item__copy (response to 1)
Posted by Jun Yamog on
that would be a good addition.
Collapse
3: Re: content_item__copy (response to 1)
Posted by Don Baccus on
Yeah, sounds like an oversight - the Oracle version allows you to optionally override the name???
Collapse
4: Re: content_item__copy (response to 1)
Posted by Dave Bauer on
Nope, oracle has the exact same parameters as the postgresql version.

It will be easier in oracle, with default values and optional parameters to implement.