[ic] perl in interchange.cfg or catalog.cfg?
Jon Jensen
jon@akopia.com
Fri, 4 May 2001 12:45:59 -0500 (CDT)
On Fri, 4 May 2001, Dan B wrote:
> I think what Bill is trying to do sounds interesting, e.g.:
> (psuedocode)
> Catalog.cfg:
> [perl]
> if (date() == Tuesday){
> query_msyql("SELECT catalog_cfg FROM catalogs_config_files
> WHERE use_date="tuesday");
> }
> return results;
> [/perl]
>
> Which would allow you to use a given set of configuration depending on
> arbitrary perl code (such as database contents via the day of the week).
>
> There's probably a way to do this already, but I don't know it.
"Watch points" may be just what you're looking for. They only work in
catalog.cfg, but they're quite cool:
http://developer2.akopia.com/cgi-bin/ic/dev/icconfig_80.html
Jon