#91: Improve parsing in Shared_Functions.get_dictionary_from_string(..)
-------------------------+--------------------------------------------------
 Reporter:  jcaffaro     |       Owner:         
     Type:  enhancement  |      Status:  new    
 Priority:  minor        |   Milestone:  v1.0   
Component:  WebSubmit    |     Version:  v0.99.1
 Keywords:               |  
-------------------------+--------------------------------------------------
 The get_dictionary_from_string(..) taking care of parsing WebSubmit
 function parameters given using a syntax similar to Python dictionary
 would need to be improved.

 Currently the function does not support commas (,) in keys and values, or
 colon (:) in values. For eg. the following returns unexpected values:

 {{{
 from invenio.websubmit_functions.Shared_Functions import
 get_dictionary_from_string

 get_dictionary_from_string('{"foo,": "bar"}')
 get_dictionary_from_string('{"foo": "bar,bar"}')
 get_dictionary_from_string('{"foo:": "bar"}')
 }}}

 (colon ":" in values is to be quickly fixed in a soon to be integrated
 patch, but a cleaner approach is still needed)

-- 
Ticket URL: <http://cdswaredev.cern.ch/invenio/ticket/91>
Invenio <http://invenio-software.org>

Reply via email to