Forum OpenACS Development: Re: update instead of falling on duplicate acs_objects

Posted by Eduardo Pérez on
You pass in invalid data and get an appropriate response.

No, the data is valid I just want to update it.

Call acs_content_type__drop_type to remove an already existing type to recreate it. The APIs support this.

What I'm proposing is easier and acs_content_type__drop_type doesn't seem to work if there's already data in the DB.

There is an effort to add a Tcl API for object types, so we can probably offer better error messages, but I think erroring is the right thing to do in this case.

I don't like errors.

Could you tell me the problems my approach causes?