Commit 36381a6e authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Update gadget for partial build and installation of Business Manager

parent c305220b
......@@ -35,7 +35,7 @@
</item>
<item>
<key> <string>action</string> </key>
<value> <string></string> </value>
<value> <string>Workflow_statusModify</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
......@@ -82,7 +82,6 @@
.declareMethod('render', function (options) {
var parameter_dict = JSON.parse(options.value),
item_path_list = parameter_dict.item_path_list;
console.log(item_path_list);
this.action_url = parameter_dict.action_url;
var node_list = buildTreeHTML('tree', convertPathListToTree(item_path_list));
this.element.innerHTML = buildTreeHTML('tree', convertPathListToTree(item_path_list));
......@@ -93,14 +92,18 @@
if ((evt.target.type === 'checkbox') && (!evt.target.id)) {
// XXX Update the checkbox state of children (and parents too)
// querySelectorAll and parent ancestors
// var parentSelected = this.element.querySelectorAll('input[type=checkbox][name=""]:checked')
var val = this.element.querySelectorAll('input[type=checkbox][name="item_path_list:list"]:checked');
console.log(val);
// Spread the result value so that we can use map on it
var labelValues = [...val].map(function(x){
return x.nextSibling.data;
});
console.log('Update the checkbox state of children (and parents too)');
console.log(labelValues);
}
}, false, false)
.declareMethod('getContent', function (options) {
console.log('ayush');
var input_list = this.element.querySelectorAll('input[type=checkbox][name="item_path_list:list"]:checked');
console.log(input_list);
return jIO.util.ajax({
......
......@@ -1334,8 +1334,6 @@ class TestBusinessPackage(ERP5TypeTestCase):
transaction.commit()
import pdb; pdb.set_trace()
# Import the Business Manager
imported_manager = portal_templates._importObjectFromFile('/srv/slapgrid/slappart16/srv/runner/instance/slappart6/tmp/%s.zexp' % manager.id)
......
......@@ -102,9 +102,9 @@
<string>W:1237, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1269, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1284, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1340, 4: Unused variable \'imported_manager\' (unused-variable)</string>
<string>W:1386, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 2 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1425, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 2 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1338, 4: Unused variable \'imported_manager\' (unused-variable)</string>
<string>W:1384, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 2 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1423, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 2 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
</tuple>
</value>
</item>
......
......@@ -12,6 +12,12 @@
<dictionary/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>scripts</string> </value>
......
# Example code:
# Import a standard function, and get the HTML request and response objects.
from Products.PythonScripts.standard import html_quote
request = container.REQUEST
response = request.response
# Return a string identifying this script.
print "This is the", script.meta_type, '"%s"' % script.getId(),
if script.title:
print "(%s)" % html_quote(script.title),
print "in", container.absolute_url()
return printed
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>BusinessManager_build</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -20,11 +20,11 @@
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=build_action</string> </value>
<value> <string>%(content_url)s/BusinessManager_viewBuildingDialog?workflow_action=build_action</string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>build</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
......@@ -24,7 +24,7 @@
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>build</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
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