Some more insights on the pretty_plural
issue. When listening acs::dc call acs_attribute create_attribute
one gets
<instance of acs::db::nsdb-postgresql[i]> call acs_attribute create_attribute \
[ -dbn dbn ] -object_type object_type \
-attribute_name attribute_name -datatype datatype \
-pretty_name pretty_name [ -pretty_plural pretty_plural ] \
[ -table_name table_name ] [ -column_name column_name ] \
[ -default_value default_value ] [ -min_n_values min_n_values ] \
[ -max_n_values max_n_values ] [ -sort_order sort_order ] \
[ -storage storage ] [ -static_p static_p ] \
[ -create_column_p create_column_p ] \
[ -database_type database_type ] [ -size size ] [ -null_p null_p ] \
[ -references references ] [ -check_expr check_expr ] \
[ -column_spec column_spec ]
You see, pretty_plural
is optional. The argument list of all acs::dc call" functions is generated automatically from the
function_argsdefinitions of your installation. I conclude, that my previous hypothesis of what might be different in PO, was probably not right, but i guess now that the
function args` might be different.
Can it be that PO misses some of the upgrade scripts from OpenACS 5.7 or OpenACS 5.8?
acs-kernel/sql/postgresql/upgrade//upgrade-5.8.0d1-5.8.0d2.sql:select define_function_args('acs_attribute__create_attribute','object_type,attribute_name,datatype,pretty_name,pretty_plural;null,table_name;null,column_name;null,default_value;null,min_n_values;1,max_n_values;1,sort_order;null,storage;type_specific,static_p;f,create_column_p;f,database_type;null,size;null,null_p;t,references;null,check_expr;null,column_spec;null');
acs-kernel/sql/postgresql/upgrade//upgrade-5.7.0d3-5.7.0d4.sql:select define_function_args('acs_attribute__create_attribute','object_type,attribute_name,datatype,pretty_name,pretty_plural;null,table_name;null,column_name;null,default_value;null,min_n_values;1,max_n_values;1,sort_order;null,storage;type_specific,static_p;f');
All the best
-g