Forum OpenACS Q&A: Response to Why is ad_parameter deprecated?

Collapse
Posted by Yonatan Feldman on
i checked in a fix to allow getting the value from the configuration file correctly. i moved the call to ad_parameter_from_file from parameter::get to parameter::get_from_package_key since you can only use a package_key to fetch a value from the configuration file anyway.

if it doesn't find it, it will revert to normal get by attempting to convert the package_key into a package_id via apm_package_id_from_key. one problem this has is that apm_package_id_from_key will barf if there is more than one instance of the package. what do people think about changing that function to "select min(package_id) from apm_packages where package_key = :package_key"? any objections?

yon.