Review Request 223: [2/6] Add string_to_string_array().
Radek Novacek
reviewboard at gallagherhome.com
Wed Apr 17 11:22:30 UTC 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/223/#review255
-----------------------------------------------------------
src/openlmi/storage/SettingProvider.py
<http://reviewboard-openlmi.rhcloud.com/r/223/#comment161>
You should at least use ast.literal_eval which is much safer.
http://docs.python.org/2/library/ast.html#ast.literal_eval
- Radek Novacek
On April 17, 2013, 1:18 p.m., Jan Synacek wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard-openlmi.rhcloud.com/r/223/
> -----------------------------------------------------------
>
> (Updated April 17, 2013, 1:18 p.m.)
>
>
> Review request for OpenLMI Developers.
>
>
> Repository: openlmi-storage
>
>
> Description
> -------
>
> Add string_to_string_array().
>
> Convenient method that takes a python string and converts it to a python array.
> It uses eval(), but the values are sanitized before use.
>
>
> Diffs
> -----
>
> src/openlmi/storage/SettingProvider.py 40fd13cef373934b1eb8690ed6ea31079d586a6d
>
> Diff: http://reviewboard-openlmi.rhcloud.com/r/223/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Jan Synacek
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/openlmi-devel/attachments/20130417/c9ee53f7/attachment.html>
More information about the openlmi-devel
mailing list