Index: openacs-4/packages/ams/tcl/ams-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ams/tcl/ams-procs-postgresql.xql,v diff -u -r1.23 -r1.24 --- openacs-4/packages/ams/tcl/ams-procs-postgresql.xql 13 Mar 2006 04:19:14 -0000 1.23 +++ openacs-4/packages/ams/tcl/ams-procs-postgresql.xql 7 Apr 2006 07:57:00 -0000 1.24 @@ -37,6 +37,15 @@ + + + update acs_attributes + set pretty_name = :pretty_name, + pretty_plural = :pretty_plural + where attribute_id = :attribute_id + + + select attribute_id @@ -46,6 +55,22 @@ + + + select default_value + from ams_attributes + where attribute_id = :attribute_id + + + + + + update acs_attributes + set default_value = :default_value + where attribute_id = :attribute_id + + + select supertype @@ -90,16 +115,40 @@ - + - select ams_attribute_value__save ( - :object_id, - :attribute_id, - :value_id - ) + delete from ams_attribute_values + where object_id = :object_id + and attribute_id = :attribute_id + + + insert into ams_attribute_values + (object_id,attribute_id,value_id) + values + (:object_id,:attribute_id,:value_id) + + + + + + select option_id + from ams_option_types + where option = :option + and attribute_id = :attribute_id + + + + + + update acs_objects + set title = :pretty_name + where object_id = :option_id + + + select option