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

Collapse
Posted by Don Baccus on
Thanks, Yon ...

As for the "min()" hack ... I'm not sure.  Maybe it *should* fail if you attempt package_key lookup and it has to go to the db and there's more than one instance?  I really have no idea which is best.  It needs documenting in either case, though.  Maybe logging a warning or something so at least folks know when this happens?

I'm just worried that this could confuse people who try to look up a parameter value by package key for a non-singleton package.  They would probably do this because they're either new to the toolkit or spacing out, and they'd probably test with just one instance mounted, and then later on they or someone else would run into the problem and be mystified ...