• Alain Takoudjou's avatar
    plugin recipe: improve recipe to correctly generate promise which has complex parameters · b53ba563
    Alain Takoudjou authored
    
    Use json.dumps/.loads to generate promise plugin code. This is safe as it will correctly escape sring and prevent code injection from untrustable parameters.
    
    Add 'import' parameter to simplify parameters used to generate the script instead of passing full import code. When import parameter is set, promise will be loaded from that import path and parameter `content` is ignored.
    
    /reviewed-on !515
    b53ba563
test_plugin.py 3.92 KB