Commit 3cff5cf4 authored by Romain Courteaud's avatar Romain Courteaud

erp5_forge: propagate list of files to commit

(first local commit \o/)
parent 3cb64223
......@@ -78,6 +78,14 @@
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>validator_field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>validator_form_id</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
......@@ -142,7 +150,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(\'diff_url\', \'%s/BusinessTemplate_doVcsDiffAsJson\' % here.absolute_url()), (\'get_tree_url\', \'%s/tree.xml\' % here.absolute_url()), (\'remote_url\', here.getVcsTool().getRemoteUrl()), (\'remote_comment\', here.getVcsTool().getRemoteComment())]</string> </value>
<value> <string>python: [(\'modified_key\', \'field_your_modified:list\'), (\'removed_key\', \'field_your_removed:list\'), (\'added_key\', \'field_your_added:list\'), (\'diff_url\', \'%s/BusinessTemplate_doVcsDiffAsJson\' % here.absolute_url()), (\'get_tree_url\', \'%s/tree.xml\' % here.absolute_url()), (\'remote_url\', here.getVcsTool().getRemoteUrl()), (\'remote_comment\', here.getVcsTool().getRemoteComment())]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -490,6 +490,9 @@
remote_comment: options.remote_comment,
remote_url: options.remote_url,
key: options.key,
added_key: options.added_key,
removed_key: options.removed_key,
modified_key: options.modified_key,
value: options.value || JSON.stringify({added: [], modified: [], deleted: [],
changelog: ''}),
editable: (options.editable === undefined) ? true : options.editable
......@@ -618,10 +621,15 @@
return queue
.push(function () {
var result = {};
var result = {},
parsed_value_dict = JSON.parse(gadget.state.value);
if (gadget.state.editable) {
result[gadget.state.key] = gadget.state.value;
result[gadget.state.added_key] = parsed_value_dict.added;
result[gadget.state.removed_key] = parsed_value_dict.removed;
result[gadget.state.modified_key] = parsed_value_dict.modified;
}
console.log('getContent', result);
return result;
});
}, {mutex: 'changestate'})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment