Forum OpenACS Development: Re: an intriguing development relief

Collapse
Posted by Dave Bauer on
Bugtracker is probably one of the most complex packages to attempt to modify in OpenACS.

It looks like you got pretty close, but you probably just need to debug a little more closely exactly how the data gets inserted into the database.

Just adding the new parameter won't affect unless you find the query that actually does the insert and also change that.

Also note for objects you don't want ot just add a column to the table, you need to create the object type attribute, in this case I believe bugtracker uses the content repository.

Collapse
Posted by Iuri Sampaio on
yes i understand a new object type attribute needs to be created

I saw there is this admin section:
admin/object-types/one?object_type=bt_bug

then how do i create the new object type attribute?

Collapse
Posted by Claudio Pasolini on
Hi Iuri,

the canonical way to add an attibute to a content item is the 'content_type__create_attribute' API, which takes care of adding the column to the related table too.

Regarding bug-tracker I find it frustrating and unnecessarily complicated.