Hi Imesh,

There are two ways we can do this,

1. Introduce new section in module.ini for multivalued attributes.


2. Identify multivalued attributes using a delimiter like a comma.
    "127.0.0.1:4000 ,"

IMO later will be more appropriate. WDYT ?



On Fri, May 29, 2015 at 3:36 PM, Imesh Gunaratne <im...@wso2.com> wrote:

> Hi Anuruddha,
>
> IMO $subject is not appropriate, Configurator needs to be independent from
> the template module parameters:
>
> # Converting Members to dictionary
> if "STRATOS_WKA_MEMBERS" in context:
>     context["STRATOS_WKA_MEMBERS"] = 
> ConfigParserUtil.convert_properties_to_dictionary(
>         context['STRATOS_WKA_MEMBERS'])
>
> if "STRATOS_HTTP_PORT_MAPPING" in context:
>     context["STRATOS_HTTP_PORT_MAPPING"] = 
> ConfigParserUtil.convert_properties_to_dictionary(
>         context["STRATOS_HTTP_PORT_MAPPING"])
>
> if "STRATOS_HTTPS_PORT_MAPPING" in context:
>     context["STRATOS_HTTPS_PORT_MAPPING"] = 
> ConfigParserUtil.convert_properties_to_dictionary(
>         context["STRATOS_HTTPS_PORT_MAPPING"])
>
> Is there anyway we can avoid this?
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel      : +94 112 145 345
a <thili...@wso2.com>nurudd...@wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to