[SR-Users] My wish
marius zbihlei
marius.zbihlei at 1and1.ro
Mon Apr 12 09:50:49 CEST 2010
Alex Balashov wrote:
> Hi Marius,
>
> On 04/10/2010 02:19 AM, Marius Zbihlei wrote:
>
>> Hello Alex,
>>
>> > Thus, it is not possible
>> > in advance to know which modules will be loaded, nor possible to
>> > iterate through some list and combine them into a string, so I
>> cannot do:
>> >
>> > modparam("mod1|mod2|mod3", "db_url", ...)
>>
>> Regarding the modparam statement, I think you can. Unfortunately, I
>> can't test it a.t.m., but as far as I remember I think the modparam
>> statement succeeds even if only one of the modules listed in the module
>> section is configured correctly. For example you can have something like
>>
>> modparam("carrierroute|xyz", "db_url", ....)
>>
>> and work, even if xyz module doesn't exist (yet).
>
> I agree, this is possible, but I find it an inelegant solution; it
> still requires me to anticipate every conceivable module that could be
> loaded elsewhere in the configuration, and this is not as easy as it
> sounds given its highly flexible, indeterminate nature. It's also
> just not pretty.
Hello Alex,
How about a syntax like
modparam("*", "db_url", ...) ?
meaning that it matches all modules that have a db_url param. Maybe this
will also benefit something like module specific log level(when will be
implemented) and other common parameters.
Cheers
Marius
More information about the sr-users
mailing list