diff --git a/py/test/rsession/web.py b/py/test/rsession/web.py index 9d71ef2e6..45ef22de4 100644 --- a/py/test/rsession/web.py +++ b/py/test/rsession/web.py @@ -137,6 +137,7 @@ class ExportedMethods(BasicExternal): self.stdout = {} self.stderr = {} self.all = 0 + self.to_rsync = {} def findmodule(self, item): # find the most outwards parent which is module diff --git a/py/test/rsession/webdata/source.js b/py/test/rsession/webdata/source.js index 0d27809c5..dbef91c4b 100644 --- a/py/test/rsession/webdata/source.js +++ b/py/test/rsession/webdata/source.js @@ -386,6 +386,246 @@ function some_strange_function_which_will_never_be_called () { } } +function show_skip (item_name_0) { + var v25,v26,v27; + var block = 0; + for(;;){ + switch(block){ + case 0: + v26 = ll_dict_getitem__Dict_String__String__String ( __consts_0.const_tuple,item_name_0 ); + set_msgbox ( item_name_0,v26 ); + block = 1; + break; + case 1: + return ( v25 ); + } + } +} + +function show_traceback (item_name_1) { + var v28,v29,v30,v31,v32,v33,v34,v35,v36,v37,v38,v39,v40,v41,v42,v43,v44,v45; + var block = 0; + for(;;){ + switch(block){ + case 0: + v29 = ll_dict_getitem__Dict_String__Record_item2__Str_St ( __consts_0.const_tuple__2,item_name_1 ); + v30 = v29.item0; + v31 = v29.item1; + v32 = v29.item2; + v33 = new StringBuilder(); + v33.ll_append(__consts_0.const_str__3); + v35 = ll_str__StringR_StringConst_String ( undefined,v30 ); + v33.ll_append(v35); + v33.ll_append(__consts_0.const_str__4); + v38 = ll_str__StringR_StringConst_String ( undefined,v31 ); + v33.ll_append(v38); + v33.ll_append(__consts_0.const_str__5); + v41 = ll_str__StringR_StringConst_String ( undefined,v32 ); + v33.ll_append(v41); + v33.ll_append(__consts_0.const_str__6); + v44 = v33.ll_build(); + set_msgbox ( item_name_1,v44 ); + block = 1; + break; + case 1: + return ( v28 ); + } + } +} + +function set_msgbox (item_name_2,data_3) { + var v138,v139,item_name_3,data_4,msgbox_0,v140,v141,v142,item_name_4,data_5,msgbox_1,v143,v144,v145,v146,v147,v148,v149,v150,v151,v152,item_name_5,data_6,msgbox_2,v153,v154,v155,v156; + var block = 0; + for(;;){ + switch(block){ + case 0: + v139 = get_elem ( __consts_0.const_str__7 ); + item_name_3 = item_name_2; + data_4 = data_3; + msgbox_0 = v139; + block = 1; + break; + case 1: + v140 = msgbox_0.childNodes; + v141 = ll_len__List_ExternalType_ ( v140 ); + v142 = !!v141; + if (v142 == true) + { + item_name_5 = item_name_3; + data_6 = data_4; + msgbox_2 = msgbox_0; + block = 4; + break; + } + else{ + item_name_4 = item_name_3; + data_5 = data_4; + msgbox_1 = msgbox_0; + block = 2; + break; + } + case 2: + v143 = create_elem ( __consts_0.const_str__8 ); + v144 = ll_strconcat__String_String ( item_name_4,__consts_0.const_str__6 ); + v145 = ll_strconcat__String_String ( v144,data_5 ); + v146 = create_text_elem ( v145 ); + v147 = v143; + v147.appendChild(v146); + v149 = msgbox_1; + v149.appendChild(v143); + __consts_0.Document.location = __consts_0.const_str__10; + __consts_0.py____test_rsession_webjs_Globals.odata_empty = false; + block = 3; + break; + case 3: + return ( v138 ); + case 4: + v153 = msgbox_2; + v154 = msgbox_2.childNodes; + v155 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v154,0 ); + v153.removeChild(v155); + item_name_3 = item_name_5; + data_4 = data_6; + msgbox_0 = msgbox_2; + block = 1; + break; + } + } +} + +function create_elem (s_1) { + var v174,v175,v176; + var block = 0; + for(;;){ + switch(block){ + case 0: + v175 = __consts_0.Document; + v176 = v175.createElement(s_1); + v174 = v176; + block = 1; + break; + case 1: + return ( v174 ); + } + } +} + +function ll_len__List_ExternalType_ (l_0) { + var v171,v172,v173; + var block = 0; + for(;;){ + switch(block){ + case 0: + v172 = l_0; + v173 = v172.length; + v171 = v173; + block = 1; + break; + case 1: + return ( v171 ); + } + } +} + +function ll_str__StringR_StringConst_String (self_0,s_0) { + var v167; + var block = 0; + for(;;){ + switch(block){ + case 0: + v167 = s_0; + block = 1; + break; + case 1: + return ( v167 ); + } + } +} + +function py____test_rsession_webjs_Globals () { + this.odata_empty = false; + this.osessid = __consts_0.const_str__12; + this.ohost = __consts_0.const_str__12; + this.orsync_dots = 0; + this.ofinished = false; + this.ohost_dict = __consts_0.const_tuple__13; + this.opending = __consts_0.const_list; + this.orsync_done = false; + this.ohost_pending = __consts_0.const_tuple__15; +} + +py____test_rsession_webjs_Globals.prototype.toString = function (){ + return ( '' ); +} + +inherits(py____test_rsession_webjs_Globals,Object); +function ll_dict_getitem__Dict_String__Record_item2__Str_St (d_1,key_2) { + var v157,v158,v159,v160,v161,v162,v163,etype_1,evalue_1,key_3,v164,v165,v166; + var block = 0; + for(;;){ + switch(block){ + case 0: + v158 = d_1; + v159 = (v158[key_2]!=undefined); + v160 = v159; + if (v160 == true) + { + key_3 = key_2; + v164 = d_1; + block = 3; + break; + } + else{ + block = 1; + break; + } + case 1: + v161 = __consts_0.exceptions_KeyError; + v162 = v161.meta; + v163 = v161; + etype_1 = v162; + evalue_1 = v163; + block = 2; + break; + case 2: + throw(evalue_1); + case 3: + v165 = v164; + v166 = v165[key_3]; + v157 = v166; + block = 4; + break; + case 4: + return ( v157 ); + } + } +} + +function ll_strconcat__String_String (obj_0,arg0_0) { + var v177,v178,v179; + var block = 0; + for(;;){ + switch(block){ + case 0: + v178 = obj_0; + v179 = (v178+arg0_0); + v177 = v179; + block = 1; + break; + case 1: + return ( v177 ); + } + } +} + +function exceptions_Exception () { +} + +exceptions_Exception.prototype.toString = function (){ + return ( '' ); +} + +inherits(exceptions_Exception,Object); function show_info (data_0) { var v46,v47,v48,v49,v50,data_1,info_0,v51,v52,v53,info_1,v54,v55,v56,v57,v58,v59,data_2,info_2,v60,v61,v62,v63; var block = 0; @@ -393,9 +633,9 @@ function show_info (data_0) { switch(block){ case 0: v47 = __consts_0.Document; - v48 = v47.getElementById(__consts_0.const_str__2); + v48 = v47.getElementById(__consts_0.const_str__17); v49 = v48.style; - v49.visibility = __consts_0.const_str__3; + v49.visibility = __consts_0.const_str__18; data_1 = data_0; info_0 = v48; block = 1; @@ -422,7 +662,7 @@ function show_info (data_0) { v56 = info_1; v56.appendChild(v55); v58 = info_1.style; - v58.backgroundColor = __consts_0.const_str__4; + v58.backgroundColor = __consts_0.const_str__19; block = 3; break; case 3: @@ -440,68 +680,90 @@ function show_info (data_0) { } } -function show_traceback (item_name_1) { - var v28,v29,v30,v31,v32,v33,v34,v35,v36,v37,v38,v39,v40,v41,v42,v43,v44,v45; +function hide_messagebox () { + var v114,v115,v116,mbox_0,v117,v118,mbox_1,v119,v120,v121,v122; var block = 0; for(;;){ switch(block){ case 0: - v29 = ll_dict_getitem__Dict_String__Record_item2__Str_St ( __consts_0.const_tuple,item_name_1 ); - v30 = v29.item0; - v31 = v29.item1; - v32 = v29.item2; - v33 = new StringBuilder(); - v33.ll_append(__consts_0.const_str__6); - v35 = ll_str__StringR_StringConst_String ( undefined,v30 ); - v33.ll_append(v35); - v33.ll_append(__consts_0.const_str__7); - v38 = ll_str__StringR_StringConst_String ( undefined,v31 ); - v33.ll_append(v38); - v33.ll_append(__consts_0.const_str__8); - v41 = ll_str__StringR_StringConst_String ( undefined,v32 ); - v33.ll_append(v41); - v33.ll_append(__consts_0.const_str__9); - v44 = v33.ll_build(); - set_msgbox ( item_name_1,v44 ); + v115 = __consts_0.Document; + v116 = v115.getElementById(__consts_0.const_str__7); + mbox_0 = v116; block = 1; break; case 1: - return ( v28 ); + v117 = mbox_0.childNodes; + v118 = ll_list_is_true__List_ExternalType_ ( v117 ); + if (v118 == true) + { + mbox_1 = mbox_0; + block = 3; + break; + } + else{ + block = 2; + break; + } + case 2: + return ( v114 ); + case 3: + v119 = mbox_1; + v120 = mbox_1.childNodes; + v121 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v120,0 ); + v119.removeChild(v121); + mbox_0 = mbox_1; + block = 1; + break; } } } -function hide_info () { - var v64,v65,v66,v67,v68; +function ll_getitem_nonneg__dum_nocheckConst_List_ExternalT (func_0,l_1,index_0) { + var v183,v184,v185,l_2,index_1,v186,v187,v188,v189,index_2,v190,v191,v192; var block = 0; for(;;){ switch(block){ case 0: - v65 = __consts_0.Document; - v66 = v65.getElementById(__consts_0.const_str__2); - v67 = v66.style; - v67.visibility = __consts_0.const_str__10; + v184 = (index_0>=0); + undefined; + l_2 = l_1; + index_1 = index_0; block = 1; break; case 1: - return ( v64 ); + v186 = l_2; + v187 = v186.length; + v188 = (index_1' ); +} + +inherits(exceptions_StandardError,exceptions_Exception); +function ll_listnext__Record_index__Signed__iterable_0 (iter_0) { + var v214,v215,v216,v217,v218,v219,v220,iter_1,index_3,l_4,v221,v222,v223,v224,v225,v226,v227,etype_3,evalue_3; var block = 0; for(;;){ switch(block){ case 0: - v213 = __consts_0.py____test_rsession_webjs_Globals.ohost; - v214 = ll_streq__String_String ( v213,__consts_0.const_str__16 ); - v215 = v214; - if (v215 == true) + v215 = iter_0.iterable; + v216 = iter_0.index; + v217 = v215; + v218 = v217.length; + v219 = (v216>=v218); + v220 = v219; + if (v220 == true) { - block = 2; + block = 3; break; } else{ + iter_1 = iter_0; + index_3 = v216; + l_4 = v215; block = 1; break; } case 1: - v216 = __consts_0.py____test_rsession_webjs_Globals.ohost; - show_host ( v216 ); + v221 = (index_3+1); + iter_1.index = v221; + v223 = l_4; + v224 = v223[index_3]; + v214 = v224; block = 2; break; case 2: - return ( v212 ); + return ( v214 ); + case 3: + v225 = __consts_0.exceptions_StopIteration; + v226 = v225.meta; + v227 = v225; + etype_3 = v226; + evalue_3 = v227; + block = 4; + break; + case 4: + throw(evalue_3); } } } -function ll_dict_getitem__Dict_String__List_String___String (d_1,key_2) { - var v184,v185,v186,v187,v188,v189,v190,etype_1,evalue_1,key_3,v191,v192,v193; +function ll_list_is_true__List_ExternalType_ (l_3) { + var v193,v194,v195,v196,v197,v198,v199; var block = 0; for(;;){ switch(block){ case 0: - v185 = d_1; - v186 = (v185[key_2]!=undefined); - v187 = v186; - if (v187 == true) + v194 = !!l_3; + v195 = v194; + if (v195 == true) { - key_3 = key_2; - v191 = d_1; + v196 = l_3; + block = 2; + break; + } + else{ + v193 = v194; + block = 1; + break; + } + case 1: + return ( v193 ); + case 2: + v197 = v196; + v198 = v197.length; + v199 = (v198!=0); + v193 = v199; + block = 1; + break; + } + } +} + +function ll_dict_getitem__Dict_String__List_String___String (d_2,key_4) { + var v200,v201,v202,v203,v204,v205,v206,etype_2,evalue_2,key_5,v207,v208,v209; + var block = 0; + for(;;){ + switch(block){ + case 0: + v201 = d_2; + v202 = (v201[key_4]!=undefined); + v203 = v202; + if (v203 == true) + { + key_5 = key_4; + v207 = d_2; block = 3; break; } @@ -652,71 +973,121 @@ function ll_dict_getitem__Dict_String__List_String___String (d_1,key_2) { break; } case 1: - v188 = __consts_0.exceptions_KeyError; - v189 = v188.meta; - v190 = v188; - etype_1 = v189; - evalue_1 = v190; + v204 = __consts_0.exceptions_KeyError; + v205 = v204.meta; + v206 = v204; + etype_2 = v205; + evalue_2 = v206; block = 2; break; case 2: - throw(evalue_1); + throw(evalue_2); case 3: - v192 = v191; - v193 = v192[key_3]; - v184 = v193; + v208 = v207; + v209 = v208[key_5]; + v200 = v209; block = 4; break; case 4: - return ( v184 ); + return ( v200 ); } } } -function ll_str__StringR_StringConst_String (self_0,s_0) { - var v154; +function hide_info () { + var v64,v65,v66,v67,v68; var block = 0; for(;;){ switch(block){ case 0: - v154 = s_0; + v65 = __consts_0.Document; + v66 = v65.getElementById(__consts_0.const_str__17); + v67 = v66.style; + v67.visibility = __consts_0.const_str__25; block = 1; break; case 1: - return ( v154 ); + return ( v64 ); } } } -function ll_getitem_nonneg__dum_nocheckConst_List_ExternalT (func_0,l_1,index_0) { - var v134,v135,v136,l_2,index_1,v137,v138,v139,v140,index_2,v141,v142,v143; +function ll_listiter__Record_index__Signed__iterable_List_S (ITER_0,lst_0) { + var v210,v211,v212,v213; var block = 0; for(;;){ switch(block){ case 0: - v135 = (index_0>=0); - undefined; - l_2 = l_1; - index_1 = index_0; + v211 = new Object(); + v211.iterable = lst_0; + v211.index = 0; + v210 = v211; block = 1; break; case 1: - v137 = l_2; - v138 = v137.length; - v139 = (index_1' ); +} + +inherits(exceptions_LookupError,exceptions_StandardError); +function exceptions_KeyError () { +} + +exceptions_KeyError.prototype.toString = function (){ + return ( '' ); +} + +inherits(exceptions_KeyError,exceptions_LookupError); +function hide_host () { + var v100,v101,v102,elem_5,v103,v104,v105,v106,v107,v108,v109,elem_6,v110,v111,v112,v113; + var block = 0; + for(;;){ + switch(block){ + case 0: + v101 = __consts_0.Document; + v102 = v101.getElementById(__consts_0.const_str__20); + elem_5 = v102; + block = 1; break; + case 1: + v103 = elem_5.childNodes; + v104 = ll_len__List_ExternalType_ ( v103 ); + v105 = !!v104; + if (v105 == true) + { + elem_6 = elem_5; + block = 4; + break; + } + else{ + v106 = elem_5; + block = 2; + break; + } case 2: - v142 = v141; - v143 = v142[index_2]; - v134 = v143; + v107 = v106.style; + v107.visibility = __consts_0.const_str__25; + __consts_0.py____test_rsession_webjs_Globals.ohost = __consts_0.const_str__12; block = 3; break; case 3: - return ( v134 ); + return ( v100 ); + case 4: + v110 = elem_6; + v111 = elem_6.childNodes; + v112 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v111,0 ); + v110.removeChild(v112); + elem_5 = elem_6; + block = 1; + break; } } } @@ -734,9 +1105,9 @@ function main () { v19 = v18.show_sessid(sessid_comeback); __consts_0.Document.onkeypress = key_pressed; v21 = __consts_0.Document; - v22 = v21.getElementById(__consts_0.const_str__19); + v22 = v21.getElementById(__consts_0.const_str__27); v23 = v22; - v23.setAttribute(__consts_0.const_str__20,__consts_0.const_str__21); + v23.setAttribute(__consts_0.const_str__28,__consts_0.const_str__29); block = 1; break; case 1: @@ -745,221 +1116,36 @@ function main () { } } -function key_pressed (key_5) { - var v280,v281,v282,v283,v284,v285,v286,v287,v288,v289,v290,v291,v292,v293,v294,v295; +function create_text_elem (txt_0) { + var v180,v181,v182; var block = 0; for(;;){ switch(block){ case 0: - v281 = key_5.charCode; - v282 = (v281==115); - v283 = v282; - if (v283 == true) - { - block = 2; - break; - } - else{ - block = 1; - break; - } + v181 = __consts_0.Document; + v182 = v181.createTextNode(txt_0); + v180 = v182; + block = 1; + break; case 1: - return ( v280 ); - case 2: - v284 = __consts_0.Document; - v285 = v284.getElementById(__consts_0.const_str__19); - v286 = __consts_0.py____test_rsession_webjs_Options.oscroll; - v287 = v286; - if (v287 == true) - { - v292 = v285; - block = 4; - break; - } - else{ - v288 = v285; - block = 3; - break; - } - case 3: - v289 = v288; - v289.setAttribute(__consts_0.const_str__20,__consts_0.const_str__23); - __consts_0.py____test_rsession_webjs_Options.oscroll = true; - block = 1; - break; - case 4: - v293 = v292; - v293.removeAttribute(__consts_0.const_str__20); - __consts_0.py____test_rsession_webjs_Options.oscroll = false; - block = 1; - break; + return ( v180 ); } } } -function exceptions_Exception () { -} - -exceptions_Exception.prototype.toString = function (){ - return ( '' ); -} - -inherits(exceptions_Exception,Object); -function exceptions_StandardError () { -} - -exceptions_StandardError.prototype.toString = function (){ - return ( '' ); -} - -inherits(exceptions_StandardError,exceptions_Exception); -function exceptions_LookupError () { -} - -exceptions_LookupError.prototype.toString = function (){ - return ( '' ); -} - -inherits(exceptions_LookupError,exceptions_StandardError); -function ll_list_is_true__List_ExternalType_ (l_3) { - var v174,v175,v176,v177,v178,v179,v180; +function ll_dict_getitem__Dict_String__String__String (d_0,key_0) { + var v128,v129,v130,v131,v132,v133,v134,etype_0,evalue_0,key_1,v135,v136,v137; var block = 0; for(;;){ switch(block){ case 0: - v175 = !!l_3; - v176 = v175; - if (v176 == true) - { - v177 = l_3; - block = 2; - break; - } - else{ - v174 = v175; - block = 1; - break; - } - case 1: - return ( v174 ); - case 2: - v178 = v177; - v179 = v178.length; - v180 = (v179!=0); - v174 = v180; - block = 1; - break; - } - } -} - -function ll_len__List_ExternalType_ (l_0) { - var v128,v129,v130; - var block = 0; - for(;;){ - switch(block){ - case 0: - v129 = l_0; - v130 = v129.length; - v128 = v130; - block = 1; - break; - case 1: - return ( v128 ); - } - } -} - -function py____test_rsession_webjs_Globals () { - this.odata_empty = false; - this.osessid = __consts_0.const_str__16; - this.ohost = __consts_0.const_str__16; - this.orsync_dots = 0; - this.ofinished = false; - this.ohost_dict = __consts_0.const_tuple__24; - this.opending = __consts_0.const_list; - this.orsync_done = false; - this.ohost_pending = __consts_0.const_tuple__26; -} - -py____test_rsession_webjs_Globals.prototype.toString = function (){ - return ( '' ); -} - -inherits(py____test_rsession_webjs_Globals,Object); -function set_msgbox (item_name_2,data_3) { - var v155,v156,item_name_3,data_4,msgbox_0,v157,v158,v159,item_name_4,data_5,msgbox_1,v160,v161,v162,v163,v164,v165,v166,v167,v168,v169,item_name_5,data_6,msgbox_2,v170,v171,v172,v173; - var block = 0; - for(;;){ - switch(block){ - case 0: - v156 = get_elem ( __consts_0.const_str__27 ); - item_name_3 = item_name_2; - data_4 = data_3; - msgbox_0 = v156; - block = 1; - break; - case 1: - v157 = msgbox_0.childNodes; - v158 = ll_len__List_ExternalType_ ( v157 ); - v159 = !!v158; - if (v159 == true) - { - item_name_5 = item_name_3; - data_6 = data_4; - msgbox_2 = msgbox_0; - block = 4; - break; - } - else{ - item_name_4 = item_name_3; - data_5 = data_4; - msgbox_1 = msgbox_0; - block = 2; - break; - } - case 2: - v160 = create_elem ( __consts_0.const_str__28 ); - v161 = ll_strconcat__String_String ( item_name_4,__consts_0.const_str__9 ); - v162 = ll_strconcat__String_String ( v161,data_5 ); - v163 = create_text_elem ( v162 ); - v164 = v160; - v164.appendChild(v163); - v166 = msgbox_1; - v166.appendChild(v160); - __consts_0.Document.location = __consts_0.const_str__29; - __consts_0.py____test_rsession_webjs_Globals.odata_empty = false; - block = 3; - break; - case 3: - return ( v155 ); - case 4: - v170 = msgbox_2; - v171 = msgbox_2.childNodes; - v172 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v171,0 ); - v170.removeChild(v172); - item_name_3 = item_name_5; - data_4 = data_6; - msgbox_0 = msgbox_2; - block = 1; - break; - } - } -} - -function ll_dict_getitem__Dict_String__Record_item2__Str_St (d_0,key_0) { - var v144,v145,v146,v147,v148,v149,v150,etype_0,evalue_0,key_1,v151,v152,v153; - var block = 0; - for(;;){ - switch(block){ - case 0: - v145 = d_0; - v146 = (v145[key_0]!=undefined); - v147 = v146; - if (v147 == true) + v129 = d_0; + v130 = (v129[key_0]!=undefined); + v131 = v130; + if (v131 == true) { key_1 = key_0; - v151 = d_0; + v135 = d_0; block = 3; break; } @@ -968,104 +1154,159 @@ function ll_dict_getitem__Dict_String__Record_item2__Str_St (d_0,key_0) { break; } case 1: - v148 = __consts_0.exceptions_KeyError; - v149 = v148.meta; - v150 = v148; - etype_0 = v149; - evalue_0 = v150; + v132 = __consts_0.exceptions_KeyError; + v133 = v132.meta; + v134 = v132; + etype_0 = v133; + evalue_0 = v134; block = 2; break; case 2: throw(evalue_0); case 3: - v152 = v151; - v153 = v152[key_1]; - v144 = v153; + v136 = v135; + v137 = v136[key_1]; + v128 = v137; block = 4; break; case 4: - return ( v144 ); + return ( v128 ); } } } -function ll_listnext__Record_index__Signed__iterable (iter_0) { - var v198,v199,v200,v201,v202,v203,v204,iter_1,index_3,l_4,v205,v206,v207,v208,v209,v210,v211,etype_2,evalue_2; +function host_init (host_dict_0) { + var v234,v235,v236,v237,v238,v239,host_dict_1,tbody_3,v240,v241,last_exc_value_1,host_dict_2,tbody_4,host_0,v242,v243,v244,v245,v246,v247,v248,v249,v250,v251,v252,v253,v254,v255,v256,v257,v258,v259,v260,v261,v262,v263,v264,v265,v266,v267,v268,host_dict_3,v269,v270,v271,v272,v273,v274,v275,v276,last_exc_value_2,key_6,v277,v278,v279,v280,v281; var block = 0; for(;;){ switch(block){ case 0: - v199 = iter_0.iterable; - v200 = iter_0.index; - v201 = v199; - v202 = v201.length; - v203 = (v200>=v202); - v204 = v203; - if (v204 == true) + v235 = __consts_0.Document; + v236 = v235.getElementById(__consts_0.const_str__30); + v237 = host_dict_0; + v238 = ll_dict_kvi__Dict_String__String__List_String_LlT_ ( v237,undefined,undefined ); + v239 = ll_listiter__Record_index__Signed__iterable_List_S ( undefined,v238 ); + host_dict_1 = host_dict_0; + tbody_3 = v236; + v240 = v239; + block = 1; + break; + case 1: + try { + v241 = ll_listnext__Record_index__Signed__iterable_0 ( v240 ); + host_dict_2 = host_dict_1; + tbody_4 = tbody_3; + host_0 = v241; + v242 = v240; + block = 2; + break; + } + catch (exc){ + if (isinstanceof(exc, exceptions_StopIteration)) + { + host_dict_3 = host_dict_1; + block = 3; + break; + } + throw(exc); + } + case 2: + v243 = create_elem ( __consts_0.const_str__22 ); + v244 = tbody_4; + v244.appendChild(v243); + v246 = create_elem ( __consts_0.const_str__23 ); + v247 = v246.style; + v247.background = __consts_0.const_str__31; + v249 = ll_dict_getitem__Dict_String__String__String ( host_dict_2,host_0 ); + v250 = create_text_elem ( v249 ); + v251 = v246; + v251.appendChild(v250); + v246.id = host_0; + v254 = v243; + v254.appendChild(v246); + v256 = v246; + v257 = new StringBuilder(); + v257.ll_append(__consts_0.const_str__32); + v259 = ll_str__StringR_StringConst_String ( undefined,host_0 ); + v257.ll_append(v259); + v257.ll_append(__consts_0.const_str__33); + v262 = v257.ll_build(); + v256.setAttribute(__consts_0.const_str__34,v262); + v264 = v246; + v264.setAttribute(__consts_0.const_str__35,__consts_0.const_str__36); + __consts_0.py____test_rsession_webjs_Globals.orsync_dots = 0; + __consts_0.py____test_rsession_webjs_Globals.orsync_done = false; + setTimeout ( 'update_rsync()',1000 ); + host_dict_1 = host_dict_2; + tbody_3 = tbody_4; + v240 = v242; + block = 1; + break; + case 3: + __consts_0.py____test_rsession_webjs_Globals.ohost_dict = host_dict_3; + v270 = ll_newdict__Dict_String__List_String__LlT ( undefined ); + __consts_0.py____test_rsession_webjs_Globals.ohost_pending = v270; + v272 = host_dict_3; + v273 = ll_dict_kvi__Dict_String__String__List_String_LlT_ ( v272,undefined,undefined ); + v274 = ll_listiter__Record_index__Signed__iterable_List_S ( undefined,v273 ); + v275 = v274; + block = 4; + break; + case 4: + try { + v276 = ll_listnext__Record_index__Signed__iterable_0 ( v275 ); + key_6 = v276; + v277 = v275; + block = 5; + break; + } + catch (exc){ + if (isinstanceof(exc, exceptions_StopIteration)) + { + block = 6; + break; + } + throw(exc); + } + case 5: + v278 = new Array(); + v278.length = 0; + v280 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; + v280[key_6]=v278; + v275 = v277; + block = 4; + break; + case 6: + return ( v234 ); + } + } +} + +function reshow_host () { + var v228,v229,v230,v231,v232,v233; + var block = 0; + for(;;){ + switch(block){ + case 0: + v229 = __consts_0.py____test_rsession_webjs_Globals.ohost; + v230 = ll_streq__String_String ( v229,__consts_0.const_str__12 ); + v231 = v230; + if (v231 == true) { - block = 3; + block = 2; break; } else{ - iter_1 = iter_0; - index_3 = v200; - l_4 = v199; block = 1; break; } case 1: - v205 = (index_3+1); - iter_1.index = v205; - v207 = l_4; - v208 = v207[index_3]; - v198 = v208; + v232 = __consts_0.py____test_rsession_webjs_Globals.ohost; + show_host ( v232 ); block = 2; break; case 2: - return ( v198 ); - case 3: - v209 = __consts_0.exceptions_StopIteration; - v210 = v209.meta; - v211 = v209; - etype_2 = v210; - evalue_2 = v211; - block = 4; - break; - case 4: - throw(evalue_2); - } - } -} - -function show_skip (item_name_0) { - var v25,v26,v27; - var block = 0; - for(;;){ - switch(block){ - case 0: - v26 = ll_dict_getitem__Dict_String__String__String ( __consts_0.const_tuple__31,item_name_0 ); - set_msgbox ( item_name_0,v26 ); - block = 1; - break; - case 1: - return ( v25 ); - } - } -} - -function create_elem (s_1) { - var v181,v182,v183; - var block = 0; - for(;;){ - switch(block){ - case 0: - v182 = __consts_0.Document; - v183 = v182.createElement(s_1); - v181 = v183; - block = 1; - break; - case 1: - return ( v181 ); + return ( v228 ); } } } @@ -1101,168 +1342,135 @@ function opt_scroll () { } } -function hide_messagebox () { - var v114,v115,v116,mbox_0,v117,v118,mbox_1,v119,v120,v121,v122; +function exceptions_StopIteration () { +} + +exceptions_StopIteration.prototype.toString = function (){ + return ( '' ); +} + +inherits(exceptions_StopIteration,exceptions_Exception); +function ll_dict_kvi__Dict_String__String__List_String_LlT_ (d_3,LIST_0,func_1) { + var v302,v303,v304,v305,v306,v307,i_0,it_0,result_0,v308,v309,v310,i_1,it_1,result_1,v311,v312,v313,v314,it_2,result_2,v315,v316; var block = 0; for(;;){ switch(block){ case 0: - v115 = __consts_0.Document; - v116 = v115.getElementById(__consts_0.const_str__27); - mbox_0 = v116; + v303 = d_3; + v304 = get_dict_len ( v303 ); + v305 = ll_newlist__List_String_LlT_Signed ( undefined,v304 ); + v306 = d_3; + v307 = dict_items_iterator ( v306 ); + i_0 = 0; + it_0 = v307; + result_0 = v305; block = 1; break; case 1: - v117 = mbox_0.childNodes; - v118 = ll_list_is_true__List_ExternalType_ ( v117 ); - if (v118 == true) + v308 = it_0; + v309 = v308.ll_go_next(); + v310 = v309; + if (v310 == true) { - mbox_1 = mbox_0; + i_1 = i_0; + it_1 = it_0; + result_1 = result_0; block = 3; break; } else{ + v302 = result_0; block = 2; break; } case 2: - return ( v114 ); + return ( v302 ); case 3: - v119 = mbox_1; - v120 = mbox_1.childNodes; - v121 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v120,0 ); - v119.removeChild(v121); - mbox_0 = mbox_1; - block = 1; + v311 = result_1; + v312 = it_1; + v313 = v312.ll_current_key(); + v311[i_1]=v313; + it_2 = it_1; + result_2 = result_1; + v315 = i_1; + block = 4; break; - } - } -} - -function exceptions_KeyError () { -} - -exceptions_KeyError.prototype.toString = function (){ - return ( '' ); -} - -inherits(exceptions_KeyError,exceptions_LookupError); -function hide_host () { - var v100,v101,v102,elem_5,v103,v104,v105,v106,v107,v108,v109,elem_6,v110,v111,v112,v113; - var block = 0; - for(;;){ - switch(block){ - case 0: - v101 = __consts_0.Document; - v102 = v101.getElementById(__consts_0.const_str__11); - elem_5 = v102; - block = 1; - break; - case 1: - v103 = elem_5.childNodes; - v104 = ll_len__List_ExternalType_ ( v103 ); - v105 = !!v104; - if (v105 == true) - { - elem_6 = elem_5; - block = 4; - break; - } - else{ - v106 = elem_5; - block = 2; - break; - } - case 2: - v107 = v106.style; - v107.visibility = __consts_0.const_str__10; - __consts_0.py____test_rsession_webjs_Globals.ohost = __consts_0.const_str__16; - block = 3; - break; - case 3: - return ( v100 ); case 4: - v110 = elem_6; - v111 = elem_6.childNodes; - v112 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v111,0 ); - v110.removeChild(v112); - elem_5 = elem_6; + v316 = (v315+1); + i_0 = v316; + it_0 = it_2; + result_0 = result_2; block = 1; break; } } } -function get_elem (el_0) { - var v296,v297,v298; +function key_pressed (key_7) { + var v286,v287,v288,v289,v290,v291,v292,v293,v294,v295,v296,v297,v298,v299,v300,v301; var block = 0; for(;;){ switch(block){ case 0: - v297 = __consts_0.Document; - v298 = v297.getElementById(el_0); - v296 = v298; - block = 1; - break; - case 1: - return ( v296 ); - } - } -} - -function ll_streq__String_String (s1_0,s2_0) { - var v218,v219,v220,v221,s2_1,v222,v223,v224,v225,v226,v227; - var block = 0; - for(;;){ - switch(block){ - case 0: - v219 = !!s1_0; - v220 = !v219; - v221 = v220; - if (v221 == true) + v287 = key_7.charCode; + v288 = (v287==115); + v289 = v288; + if (v289 == true) { - v225 = s2_0; - block = 3; + block = 2; break; } else{ - s2_1 = s2_0; - v222 = s1_0; block = 1; break; } case 1: - v223 = v222; - v224 = (v223==s2_1); - v218 = v224; - block = 2; - break; + return ( v286 ); case 2: - return ( v218 ); + v290 = __consts_0.Document; + v291 = v290.getElementById(__consts_0.const_str__27); + v292 = __consts_0.py____test_rsession_webjs_Options.oscroll; + v293 = v292; + if (v293 == true) + { + v298 = v291; + block = 4; + break; + } + else{ + v294 = v291; + block = 3; + break; + } case 3: - v226 = !!v225; - v227 = !v226; - v218 = v227; - block = 2; + v295 = v294; + v295.setAttribute(__consts_0.const_str__28,__consts_0.const_str__38); + __consts_0.py____test_rsession_webjs_Options.oscroll = true; + block = 1; + break; + case 4: + v299 = v298; + v299.removeAttribute(__consts_0.const_str__28); + __consts_0.py____test_rsession_webjs_Options.oscroll = false; + block = 1; break; } } } -function ll_listiter__Record_index__Signed__iterable_List_S (ITER_0,lst_0) { - var v194,v195,v196,v197; +function sessid_comeback (id_0) { + var v282,v283,v284,v285; var block = 0; for(;;){ switch(block){ case 0: - v195 = new Object(); - v195.iterable = lst_0; - v195.index = 0; - v194 = v195; + __consts_0.py____test_rsession_webjs_Globals.osessid = id_0; + v284 = __consts_0.ExportedMethods; + v285 = v284.show_all_statuses(id_0,comeback); block = 1; break; case 1: - return ( v194 ); + return ( v282 ); } } } @@ -1276,144 +1484,17 @@ py____test_rsession_webjs_Options.prototype.toString = function (){ } inherits(py____test_rsession_webjs_Options,Object); -function sessid_comeback (id_0) { - var v276,v277,v278,v279; +function update_rsync () { + var v317,v318,v319,v320,v321,v322,v323,v324,v325,elem_7,v326,v327,v328,v329,v330,v331,v332,v333,v334,elem_8,v335,v336,v337,v338,v339,v340,v341,v342,v343,v344,v345,text_0,elem_9,v346,v347,v348,v349,v350; var block = 0; for(;;){ switch(block){ case 0: - __consts_0.py____test_rsession_webjs_Globals.osessid = id_0; - v278 = __consts_0.ExportedMethods; - v279 = v278.show_all_statuses(id_0,comeback); - block = 1; - break; - case 1: - return ( v276 ); - } - } -} - -function host_init (host_dict_0) { - var v228,v229,v230,v231,v232,v233,host_dict_1,tbody_3,v234,v235,last_exc_value_1,host_dict_2,tbody_4,host_0,v236,v237,v238,v239,v240,v241,v242,v243,v244,v245,v246,v247,v248,v249,v250,v251,v252,v253,v254,v255,v256,v257,v258,v259,v260,v261,v262,host_dict_3,v263,v264,v265,v266,v267,v268,v269,v270,last_exc_value_2,key_4,v271,v272,v273,v274,v275; - var block = 0; - for(;;){ - switch(block){ - case 0: - v229 = __consts_0.Document; - v230 = v229.getElementById(__consts_0.const_str__32); - v231 = host_dict_0; - v232 = ll_dict_kvi__Dict_String__String__List_String_LlT_ ( v231,undefined,undefined ); - v233 = ll_listiter__Record_index__Signed__iterable_List_S ( undefined,v232 ); - host_dict_1 = host_dict_0; - tbody_3 = v230; - v234 = v233; - block = 1; - break; - case 1: - try { - v235 = ll_listnext__Record_index__Signed__iterable ( v234 ); - host_dict_2 = host_dict_1; - tbody_4 = tbody_3; - host_0 = v235; - v236 = v234; - block = 2; - break; - } - catch (exc){ - if (isinstanceof(exc, exceptions_StopIteration)) - { - host_dict_3 = host_dict_1; - block = 3; - break; - } - throw(exc); - } - case 2: - v237 = create_elem ( __consts_0.const_str__14 ); - v238 = tbody_4; - v238.appendChild(v237); - v240 = create_elem ( __consts_0.const_str__15 ); - v241 = v240.style; - v241.background = __consts_0.const_str__33; - v243 = ll_dict_getitem__Dict_String__String__String ( host_dict_2,host_0 ); - v244 = create_text_elem ( v243 ); - v245 = v240; - v245.appendChild(v244); - v240.id = host_0; - v248 = v237; - v248.appendChild(v240); - v250 = v240; - v251 = new StringBuilder(); - v251.ll_append(__consts_0.const_str__34); - v253 = ll_str__StringR_StringConst_String ( undefined,host_0 ); - v251.ll_append(v253); - v251.ll_append(__consts_0.const_str__35); - v256 = v251.ll_build(); - v250.setAttribute(__consts_0.const_str__36,v256); - v258 = v240; - v258.setAttribute(__consts_0.const_str__37,__consts_0.const_str__38); - __consts_0.py____test_rsession_webjs_Globals.orsync_dots = 0; - __consts_0.py____test_rsession_webjs_Globals.orsync_done = false; - setTimeout ( 'update_rsync()',1000 ); - host_dict_1 = host_dict_2; - tbody_3 = tbody_4; - v234 = v236; - block = 1; - break; - case 3: - __consts_0.py____test_rsession_webjs_Globals.ohost_dict = host_dict_3; - v264 = ll_newdict__Dict_String__List_String__LlT ( undefined ); - __consts_0.py____test_rsession_webjs_Globals.ohost_pending = v264; - v266 = host_dict_3; - v267 = ll_dict_kvi__Dict_String__String__List_String_LlT_ ( v266,undefined,undefined ); - v268 = ll_listiter__Record_index__Signed__iterable_List_S ( undefined,v267 ); - v269 = v268; - block = 4; - break; - case 4: - try { - v270 = ll_listnext__Record_index__Signed__iterable ( v269 ); - key_4 = v270; - v271 = v269; - block = 5; - break; - } - catch (exc){ - if (isinstanceof(exc, exceptions_StopIteration)) - { - block = 6; - break; - } - throw(exc); - } - case 5: - v272 = new Array(); - v272.length = 0; - v274 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; - v274[key_4]=v272; - v269 = v271; - block = 4; - break; - case 6: - return ( v228 ); - } - } -} - -function ll_dict_getitem__Dict_String__String__String (d_2,key_6) { - var v302,v303,v304,v305,v306,v307,v308,etype_3,evalue_3,key_7,v309,v310,v311; - var block = 0; - for(;;){ - switch(block){ - case 0: - v303 = d_2; - v304 = (v303[key_6]!=undefined); - v305 = v304; - if (v305 == true) + v318 = __consts_0.py____test_rsession_webjs_Globals.ofinished; + v319 = v318; + if (v319 == true) { - key_7 = key_6; - v309 = d_2; - block = 3; + block = 4; break; } else{ @@ -1421,37 +1502,214 @@ function ll_dict_getitem__Dict_String__String__String (d_2,key_6) { break; } case 1: - v306 = __consts_0.exceptions_KeyError; - v307 = v306.meta; - v308 = v306; - etype_3 = v307; - evalue_3 = v308; - block = 2; - break; + v320 = __consts_0.Document; + v321 = v320.getElementById(__consts_0.const_str__39); + v322 = __consts_0.py____test_rsession_webjs_Globals.orsync_done; + v323 = v322; + v324 = (v323==1); + v325 = v324; + if (v325 == true) + { + v347 = v321; + block = 6; + break; + } + else{ + elem_7 = v321; + block = 2; + break; + } case 2: - throw(evalue_3); + v326 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots; + v327 = ll_char_mul__Char_Signed ( '.',v326 ); + v328 = ll_strconcat__String_String ( __consts_0.const_str__40,v327 ); + v329 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots; + v330 = (v329+1); + __consts_0.py____test_rsession_webjs_Globals.orsync_dots = v330; + v332 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots; + v333 = (v332>5); + v334 = v333; + if (v334 == true) + { + text_0 = v328; + elem_9 = elem_7; + block = 5; + break; + } + else{ + elem_8 = elem_7; + v335 = v328; + block = 3; + break; + } case 3: - v310 = v309; - v311 = v310[key_7]; - v302 = v311; + v336 = new StringBuilder(); + v336.ll_append(__consts_0.const_str__41); + v338 = ll_str__StringR_StringConst_String ( undefined,v335 ); + v336.ll_append(v338); + v336.ll_append(__consts_0.const_str__42); + v341 = v336.ll_build(); + v342 = elem_8.childNodes; + v343 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v342,0 ); + v343.nodeValue = v341; + setTimeout ( 'update_rsync()',1000 ); block = 4; break; case 4: - return ( v302 ); + return ( v317 ); + case 5: + __consts_0.py____test_rsession_webjs_Globals.orsync_dots = 0; + elem_8 = elem_9; + v335 = text_0; + block = 3; + break; + case 6: + v348 = v347.childNodes; + v349 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v348,0 ); + v349.nodeValue = __consts_0.const_str__39; + block = 4; + break; + } + } +} + +function ll_streq__String_String (s1_0,s2_0) { + var v353,v354,v355,v356,s2_1,v357,v358,v359,v360,v361,v362; + var block = 0; + for(;;){ + switch(block){ + case 0: + v354 = !!s1_0; + v355 = !v354; + v356 = v355; + if (v356 == true) + { + v360 = s2_0; + block = 3; + break; + } + else{ + s2_1 = s2_0; + v357 = s1_0; + block = 1; + break; + } + case 1: + v358 = v357; + v359 = (v358==s2_1); + v353 = v359; + block = 2; + break; + case 2: + return ( v353 ); + case 3: + v361 = !!v360; + v362 = !v361; + v353 = v362; + block = 2; + break; + } + } +} + +function ll_newdict__Dict_String__List_String__LlT (DICT_0) { + var v351,v352; + var block = 0; + for(;;){ + switch(block){ + case 0: + v352 = new Object(); + v351 = v352; + block = 1; + break; + case 1: + return ( v351 ); + } + } +} + +function ll_char_mul__Char_Signed (ch_0,times_0) { + var v394,v395,v396,v397,ch_1,times_1,i_2,buf_0,v398,v399,v400,v401,v402,ch_2,times_2,i_3,buf_1,v403,v404,v405; + var block = 0; + for(;;){ + switch(block){ + case 0: + v395 = new StringBuilder(); + v396 = v395; + v396.ll_allocate(times_0); + ch_1 = ch_0; + times_1 = times_0; + i_2 = 0; + buf_0 = v395; + block = 1; + break; + case 1: + v398 = (i_2' ); -} - -inherits(exceptions_StopIteration,exceptions_Exception); -function ll_listnext__Record_index__Signed__iterable_0 (iter_2) { - var v415,v416,v417,v418,v419,v420,v421,iter_3,index_4,l_8,v422,v423,v424,v425,v426,v427,v428,etype_4,evalue_4; - var block = 0; - for(;;){ - switch(block){ - case 0: - v416 = iter_2.iterable; - v417 = iter_2.index; - v418 = v416; - v419 = v418.length; - v420 = (v417>=v419); - v421 = v420; - if (v421 == true) - { - block = 3; - break; - } - else{ - iter_3 = iter_2; - index_4 = v417; - l_8 = v416; - block = 1; - break; - } - case 1: - v422 = (index_4+1); - iter_3.index = v422; - v424 = l_8; - v425 = v424[index_4]; - v415 = v425; - block = 2; - break; - case 2: - return ( v415 ); - case 3: - v426 = __consts_0.exceptions_StopIteration; - v427 = v426.meta; - v428 = v426; - etype_4 = v427; - evalue_4 = v428; - block = 4; - break; - case 4: - throw(evalue_4); - } - } -} - -function update_rsync () { - var v354,v355,v356,v357,v358,v359,v360,v361,v362,elem_7,v363,v364,v365,v366,v367,v368,v369,v370,v371,elem_8,v372,v373,v374,v375,v376,v377,v378,v379,v380,v381,v382,text_0,elem_9,v383,v384,v385,v386,v387; - var block = 0; - for(;;){ - switch(block){ - case 0: - v355 = __consts_0.py____test_rsession_webjs_Globals.ofinished; - v356 = v355; - if (v356 == true) - { - block = 4; - break; - } - else{ - block = 1; - break; - } - case 1: - v357 = __consts_0.Document; - v358 = v357.getElementById(__consts_0.const_str__39); - v359 = __consts_0.py____test_rsession_webjs_Globals.orsync_done; - v360 = v359; - v361 = (v360==1); - v362 = v361; - if (v362 == true) - { - v384 = v358; - block = 6; - break; - } - else{ - elem_7 = v358; - block = 2; - break; - } - case 2: - v363 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots; - v364 = ll_char_mul__Char_Signed ( '.',v363 ); - v365 = ll_strconcat__String_String ( __consts_0.const_str__40,v364 ); - v366 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots; - v367 = (v366+1); - __consts_0.py____test_rsession_webjs_Globals.orsync_dots = v367; - v369 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots; - v370 = (v369>5); - v371 = v370; - if (v371 == true) - { - text_0 = v365; - elem_9 = elem_7; - block = 5; - break; - } - else{ - elem_8 = elem_7; - v372 = v365; - block = 3; - break; - } - case 3: - v373 = new StringBuilder(); - v373.ll_append(__consts_0.const_str__41); - v375 = ll_str__StringR_StringConst_String ( undefined,v372 ); - v373.ll_append(v375); - v373.ll_append(__consts_0.const_str__42); - v378 = v373.ll_build(); - v379 = elem_8.childNodes; - v380 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v379,0 ); - v380.nodeValue = v378; - setTimeout ( 'update_rsync()',1000 ); - block = 4; - break; - case 4: - return ( v354 ); - case 5: - __consts_0.py____test_rsession_webjs_Globals.orsync_dots = 0; - elem_8 = elem_9; - v372 = text_0; - block = 3; - break; - case 6: - v385 = v384.childNodes; - v386 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v385,0 ); - v386.nodeValue = __consts_0.const_str__39; + v391 = __consts_0.ExportedMethods; + v392 = __consts_0.py____test_rsession_webjs_Globals.osessid; + v393 = v391.show_all_statuses(v392,comeback); block = 4; break; } @@ -1714,17 +1810,17 @@ function update_rsync () { } function process (msg_0) { - var v429,v430,v431,v432,msg_1,v433,v434,v435,v436,v437,v438,v439,msg_2,v440,v441,v442,msg_3,v443,v444,v445,msg_4,v446,v447,v448,msg_5,v449,v450,v451,msg_6,v452,v453,v454,msg_7,v455,v456,v457,msg_8,v458,v459,v460,msg_9,v461,v462,v463,v464,v465,v466,v467,v468,v469,v470,v471,v472,v473,v474,v475,msg_10,v476,v477,v478,msg_11,v479,v480,v481,msg_12,module_part_0,v482,v483,v484,v485,v486,v487,v488,v489,v490,v491,v492,v493,v494,v495,v496,v497,v498,v499,v500,msg_13,v501,v502,v503,msg_14,v504,v505,v506,module_part_1,v507,v508,v509,v510,v511,v512,v513,v514,v515,msg_15,v516,v517,v518,v519,v520,v521,v522,v523,v524,v525,v526,v527,v528,v529,v530,v531,v532,v533,v534,v535,v536,v537,v538,v539,v540,v541,v542,v543,v544,v545,v546,v547,v548,v549,v550,v551,v552,v553,v554,v555,msg_16,v556,v557,v558,msg_17,v559,v560,v561,v562,v563,v564,msg_18,v565,v566,v567,v568,v569,v570,v571,v572,v573,v574,v575,v576,v577,v578,v579,v580,v581,v582,v583,msg_19,v584,v585,v586,v587,v588,v589,v590,v591,v592,v593,v594,v595,v596,v597,v598,v599,v600,v601,v602,v603,v604,v605,v606,v607,v608,v609,v610,v611,v612,v613,v614,v615,main_t_0,v616,v617,v618,v619; + var v445,v446,v447,v448,msg_1,v449,v450,v451,v452,v453,v454,v455,msg_2,v456,v457,v458,msg_3,v459,v460,v461,msg_4,v462,v463,v464,msg_5,v465,v466,v467,msg_6,v468,v469,v470,msg_7,v471,v472,v473,msg_8,v474,v475,v476,msg_9,v477,v478,v479,v480,v481,v482,v483,v484,v485,v486,v487,v488,v489,v490,v491,msg_10,v492,v493,v494,msg_11,v495,v496,v497,msg_12,module_part_0,v498,v499,v500,v501,v502,v503,v504,v505,v506,v507,v508,v509,v510,v511,v512,v513,v514,v515,v516,msg_13,v517,v518,v519,msg_14,v520,v521,v522,module_part_1,v523,v524,v525,v526,v527,v528,v529,v530,v531,msg_15,v532,v533,v534,v535,v536,v537,v538,v539,v540,v541,v542,v543,v544,v545,v546,v547,v548,v549,v550,v551,v552,v553,v554,v555,v556,v557,v558,v559,v560,v561,v562,v563,v564,v565,v566,v567,v568,v569,v570,v571,msg_16,v572,v573,v574,msg_17,v575,v576,v577,v578,v579,v580,msg_18,v581,v582,v583,v584,v585,v586,v587,v588,v589,v590,v591,v592,v593,v594,v595,v596,v597,v598,v599,msg_19,v600,v601,v602,v603,v604,v605,v606,v607,v608,v609,v610,v611,v612,v613,v614,v615,v616,v617,v618,v619,v620,v621,v622,v623,v624,v625,v626,v627,v628,v629,v630,v631,main_t_0,v632,v633,v634,v635; var block = 0; for(;;){ switch(block){ case 0: - v430 = get_dict_len ( msg_0 ); - v431 = (v430==0); - v432 = v431; - if (v432 == true) + v446 = get_dict_len ( msg_0 ); + v447 = (v446==0); + v448 = v447; + if (v448 == true) { - v429 = false; + v445 = false; block = 12; break; } @@ -1734,17 +1830,17 @@ function process (msg_0) { break; } case 1: - v433 = __consts_0.Document; - v434 = v433.getElementById(__consts_0.const_str__43); - v435 = __consts_0.Document; - v436 = v435.getElementById(__consts_0.const_str__44); - v437 = ll_dict_getitem__Dict_String__String__String ( msg_1,__consts_0.const_str__45 ); - v438 = ll_streq__String_String ( v437,__consts_0.const_str__46 ); - v439 = v438; - if (v439 == true) + v449 = __consts_0.Document; + v450 = v449.getElementById(__consts_0.const_str__43); + v451 = __consts_0.Document; + v452 = v451.getElementById(__consts_0.const_str__44); + v453 = ll_dict_getitem__Dict_String__String__String ( msg_1,__consts_0.const_str__45 ); + v454 = ll_streq__String_String ( v453,__consts_0.const_str__46 ); + v455 = v454; + if (v455 == true) { - main_t_0 = v436; - v616 = msg_1; + main_t_0 = v452; + v632 = msg_1; block = 29; break; } @@ -1754,10 +1850,10 @@ function process (msg_0) { break; } case 2: - v440 = ll_dict_getitem__Dict_String__String__String ( msg_2,__consts_0.const_str__45 ); - v441 = ll_streq__String_String ( v440,__consts_0.const_str__47 ); - v442 = v441; - if (v442 == true) + v456 = ll_dict_getitem__Dict_String__String__String ( msg_2,__consts_0.const_str__45 ); + v457 = ll_streq__String_String ( v456,__consts_0.const_str__47 ); + v458 = v457; + if (v458 == true) { msg_19 = msg_2; block = 28; @@ -1769,10 +1865,10 @@ function process (msg_0) { break; } case 3: - v443 = ll_dict_getitem__Dict_String__String__String ( msg_3,__consts_0.const_str__45 ); - v444 = ll_streq__String_String ( v443,__consts_0.const_str__48 ); - v445 = v444; - if (v445 == true) + v459 = ll_dict_getitem__Dict_String__String__String ( msg_3,__consts_0.const_str__45 ); + v460 = ll_streq__String_String ( v459,__consts_0.const_str__48 ); + v461 = v460; + if (v461 == true) { msg_18 = msg_3; block = 27; @@ -1784,10 +1880,10 @@ function process (msg_0) { break; } case 4: - v446 = ll_dict_getitem__Dict_String__String__String ( msg_4,__consts_0.const_str__45 ); - v447 = ll_streq__String_String ( v446,__consts_0.const_str__49 ); - v448 = v447; - if (v448 == true) + v462 = ll_dict_getitem__Dict_String__String__String ( msg_4,__consts_0.const_str__45 ); + v463 = ll_streq__String_String ( v462,__consts_0.const_str__49 ); + v464 = v463; + if (v464 == true) { msg_16 = msg_4; block = 24; @@ -1799,10 +1895,10 @@ function process (msg_0) { break; } case 5: - v449 = ll_dict_getitem__Dict_String__String__String ( msg_5,__consts_0.const_str__45 ); - v450 = ll_streq__String_String ( v449,__consts_0.const_str__50 ); - v451 = v450; - if (v451 == true) + v465 = ll_dict_getitem__Dict_String__String__String ( msg_5,__consts_0.const_str__45 ); + v466 = ll_streq__String_String ( v465,__consts_0.const_str__50 ); + v467 = v466; + if (v467 == true) { msg_15 = msg_5; block = 23; @@ -1814,10 +1910,10 @@ function process (msg_0) { break; } case 6: - v452 = ll_dict_getitem__Dict_String__String__String ( msg_6,__consts_0.const_str__45 ); - v453 = ll_streq__String_String ( v452,__consts_0.const_str__51 ); - v454 = v453; - if (v454 == true) + v468 = ll_dict_getitem__Dict_String__String__String ( msg_6,__consts_0.const_str__45 ); + v469 = ll_streq__String_String ( v468,__consts_0.const_str__51 ); + v470 = v469; + if (v470 == true) { msg_13 = msg_6; block = 20; @@ -1829,10 +1925,10 @@ function process (msg_0) { break; } case 7: - v455 = ll_dict_getitem__Dict_String__String__String ( msg_7,__consts_0.const_str__45 ); - v456 = ll_streq__String_String ( v455,__consts_0.const_str__52 ); - v457 = v456; - if (v457 == true) + v471 = ll_dict_getitem__Dict_String__String__String ( msg_7,__consts_0.const_str__45 ); + v472 = ll_streq__String_String ( v471,__consts_0.const_str__52 ); + v473 = v472; + if (v473 == true) { msg_10 = msg_7; block = 17; @@ -1844,10 +1940,10 @@ function process (msg_0) { break; } case 8: - v458 = ll_dict_getitem__Dict_String__String__String ( msg_8,__consts_0.const_str__45 ); - v459 = ll_streq__String_String ( v458,__consts_0.const_str__53 ); - v460 = v459; - if (v460 == true) + v474 = ll_dict_getitem__Dict_String__String__String ( msg_8,__consts_0.const_str__45 ); + v475 = ll_streq__String_String ( v474,__consts_0.const_str__53 ); + v476 = v475; + if (v476 == true) { block = 16; break; @@ -1858,24 +1954,24 @@ function process (msg_0) { break; } case 9: - v461 = ll_dict_getitem__Dict_String__String__String ( msg_9,__consts_0.const_str__45 ); - v462 = ll_streq__String_String ( v461,__consts_0.const_str__54 ); - v463 = v462; - if (v463 == true) + v477 = ll_dict_getitem__Dict_String__String__String ( msg_9,__consts_0.const_str__45 ); + v478 = ll_streq__String_String ( v477,__consts_0.const_str__54 ); + v479 = v478; + if (v479 == true) { block = 15; break; } else{ - v464 = msg_9; + v480 = msg_9; block = 10; break; } case 10: - v465 = ll_dict_getitem__Dict_String__String__String ( v464,__consts_0.const_str__45 ); - v466 = ll_streq__String_String ( v465,__consts_0.const_str__55 ); - v467 = v466; - if (v467 == true) + v481 = ll_dict_getitem__Dict_String__String__String ( v480,__consts_0.const_str__45 ); + v482 = ll_streq__String_String ( v481,__consts_0.const_str__55 ); + v483 = v482; + if (v483 == true) { block = 14; break; @@ -1885,25 +1981,25 @@ function process (msg_0) { break; } case 11: - v468 = __consts_0.py____test_rsession_webjs_Globals.odata_empty; - v469 = v468; - if (v469 == true) + v484 = __consts_0.py____test_rsession_webjs_Globals.odata_empty; + v485 = v484; + if (v485 == true) { block = 13; break; } else{ - v429 = true; + v445 = true; block = 12; break; } case 12: - return ( v429 ); + return ( v445 ); case 13: - v470 = __consts_0.Document; - v471 = v470.getElementById(__consts_0.const_str__27); - scroll_down_if_needed ( v471 ); - v429 = true; + v486 = __consts_0.Document; + v487 = v486.getElementById(__consts_0.const_str__7); + scroll_down_if_needed ( v487 ); + v445 = true; block = 12; break; case 14: @@ -1919,13 +2015,13 @@ function process (msg_0) { block = 11; break; case 17: - v476 = ll_dict_getitem__Dict_String__String__String ( msg_10,__consts_0.const_str__56 ); - v477 = get_elem ( v476 ); - v478 = !!v477; - if (v478 == true) + v492 = ll_dict_getitem__Dict_String__String__String ( msg_10,__consts_0.const_str__56 ); + v493 = get_elem ( v492 ); + v494 = !!v493; + if (v494 == true) { msg_12 = msg_10; - module_part_0 = v477; + module_part_0 = v493; block = 19; break; } @@ -1935,41 +2031,41 @@ function process (msg_0) { break; } case 18: - v479 = __consts_0.py____test_rsession_webjs_Globals.opending; - v480 = v479; - ll_append__List_Dict_String__String___Dict_String_ ( v480,msg_11 ); - v429 = true; + v495 = __consts_0.py____test_rsession_webjs_Globals.opending; + v496 = v495; + ll_append__List_Dict_String__String___Dict_String_ ( v496,msg_11 ); + v445 = true; block = 12; break; case 19: - v482 = create_elem ( __consts_0.const_str__14 ); - v483 = create_elem ( __consts_0.const_str__15 ); - v484 = ll_dict_getitem__Dict_String__String__String ( msg_12,__consts_0.const_str__57 ); - v485 = new Object(); - v485.item0 = v484; - v487 = v485.item0; - v488 = new StringBuilder(); - v488.ll_append(__consts_0.const_str__58); - v490 = ll_str__StringR_StringConst_String ( undefined,v487 ); - v488.ll_append(v490); - v488.ll_append(__consts_0.const_str__59); - v493 = v488.ll_build(); - v494 = create_text_elem ( v493 ); - v495 = v483; - v495.appendChild(v494); - v497 = v482; - v497.appendChild(v483); - v499 = module_part_0; - v499.appendChild(v482); + v498 = create_elem ( __consts_0.const_str__22 ); + v499 = create_elem ( __consts_0.const_str__23 ); + v500 = ll_dict_getitem__Dict_String__String__String ( msg_12,__consts_0.const_str__57 ); + v501 = new Object(); + v501.item0 = v500; + v503 = v501.item0; + v504 = new StringBuilder(); + v504.ll_append(__consts_0.const_str__58); + v506 = ll_str__StringR_StringConst_String ( undefined,v503 ); + v504.ll_append(v506); + v504.ll_append(__consts_0.const_str__59); + v509 = v504.ll_build(); + v510 = create_text_elem ( v509 ); + v511 = v499; + v511.appendChild(v510); + v513 = v498; + v513.appendChild(v499); + v515 = module_part_0; + v515.appendChild(v498); block = 11; break; case 20: - v501 = ll_dict_getitem__Dict_String__String__String ( msg_13,__consts_0.const_str__56 ); - v502 = get_elem ( v501 ); - v503 = !!v502; - if (v503 == true) + v517 = ll_dict_getitem__Dict_String__String__String ( msg_13,__consts_0.const_str__56 ); + v518 = get_elem ( v517 ); + v519 = !!v518; + if (v519 == true) { - module_part_1 = v502; + module_part_1 = v518; block = 22; break; } @@ -1979,75 +2075,75 @@ function process (msg_0) { break; } case 21: - v504 = __consts_0.py____test_rsession_webjs_Globals.opending; - v505 = v504; - ll_append__List_Dict_String__String___Dict_String_ ( v505,msg_14 ); - v429 = true; + v520 = __consts_0.py____test_rsession_webjs_Globals.opending; + v521 = v520; + ll_append__List_Dict_String__String___Dict_String_ ( v521,msg_14 ); + v445 = true; block = 12; break; case 22: - v507 = create_elem ( __consts_0.const_str__14 ); - v508 = create_elem ( __consts_0.const_str__15 ); - v509 = create_text_elem ( __consts_0.const_str__60 ); - v510 = v508; - v510.appendChild(v509); - v512 = v507; - v512.appendChild(v508); - v514 = module_part_1; - v514.appendChild(v507); + v523 = create_elem ( __consts_0.const_str__22 ); + v524 = create_elem ( __consts_0.const_str__23 ); + v525 = create_text_elem ( __consts_0.const_str__60 ); + v526 = v524; + v526.appendChild(v525); + v528 = v523; + v528.appendChild(v524); + v530 = module_part_1; + v530.appendChild(v523); block = 11; break; case 23: - v516 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__61 ); - v517 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__62 ); - v518 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__63 ); - v519 = new Object(); - v519.item0 = v516; - v519.item1 = v517; - v519.item2 = v518; - v523 = v519.item0; - v524 = v519.item1; - v525 = v519.item2; - v526 = new StringBuilder(); - v526.ll_append(__consts_0.const_str__64); - v528 = ll_str__StringR_StringConst_String ( undefined,v523 ); - v526.ll_append(v528); - v526.ll_append(__consts_0.const_str__65); - v531 = ll_str__StringR_StringConst_String ( undefined,v524 ); - v526.ll_append(v531); - v526.ll_append(__consts_0.const_str__66); - v534 = ll_str__StringR_StringConst_String ( undefined,v525 ); - v526.ll_append(v534); - v526.ll_append(__consts_0.const_str__67); - v537 = v526.ll_build(); + v532 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__61 ); + v533 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__62 ); + v534 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__63 ); + v535 = new Object(); + v535.item0 = v532; + v535.item1 = v533; + v535.item2 = v534; + v539 = v535.item0; + v540 = v535.item1; + v541 = v535.item2; + v542 = new StringBuilder(); + v542.ll_append(__consts_0.const_str__64); + v544 = ll_str__StringR_StringConst_String ( undefined,v539 ); + v542.ll_append(v544); + v542.ll_append(__consts_0.const_str__65); + v547 = ll_str__StringR_StringConst_String ( undefined,v540 ); + v542.ll_append(v547); + v542.ll_append(__consts_0.const_str__66); + v550 = ll_str__StringR_StringConst_String ( undefined,v541 ); + v542.ll_append(v550); + v542.ll_append(__consts_0.const_str__67); + v553 = v542.ll_build(); __consts_0.py____test_rsession_webjs_Globals.ofinished = true; - v539 = new StringBuilder(); - v539.ll_append(__consts_0.const_str__68); - v541 = ll_str__StringR_StringConst_String ( undefined,v537 ); - v539.ll_append(v541); - v543 = v539.ll_build(); - __consts_0.Document.title = v543; - v545 = new StringBuilder(); - v545.ll_append(__consts_0.const_str__41); - v547 = ll_str__StringR_StringConst_String ( undefined,v537 ); - v545.ll_append(v547); - v545.ll_append(__consts_0.const_str__42); - v550 = v545.ll_build(); - v551 = __consts_0.Document; - v552 = v551.getElementById(__consts_0.const_str__39); - v553 = v552.childNodes; - v554 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v553,0 ); - v554.nodeValue = v550; + v555 = new StringBuilder(); + v555.ll_append(__consts_0.const_str__68); + v557 = ll_str__StringR_StringConst_String ( undefined,v553 ); + v555.ll_append(v557); + v559 = v555.ll_build(); + __consts_0.Document.title = v559; + v561 = new StringBuilder(); + v561.ll_append(__consts_0.const_str__41); + v563 = ll_str__StringR_StringConst_String ( undefined,v553 ); + v561.ll_append(v563); + v561.ll_append(__consts_0.const_str__42); + v566 = v561.ll_build(); + v567 = __consts_0.Document; + v568 = v567.getElementById(__consts_0.const_str__39); + v569 = v568.childNodes; + v570 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v569,0 ); + v570.nodeValue = v566; block = 11; break; case 24: - v556 = ll_dict_getitem__Dict_String__String__String ( msg_16,__consts_0.const_str__69 ); - v557 = get_elem ( v556 ); - v558 = !!v557; - if (v558 == true) + v572 = ll_dict_getitem__Dict_String__String__String ( msg_16,__consts_0.const_str__69 ); + v573 = get_elem ( v572 ); + v574 = !!v573; + if (v574 == true) { - v562 = msg_16; - v563 = v557; + v578 = msg_16; + v579 = v573; block = 26; break; } @@ -2057,124 +2153,320 @@ function process (msg_0) { break; } case 25: - v559 = __consts_0.py____test_rsession_webjs_Globals.opending; - v560 = v559; - ll_append__List_Dict_String__String___Dict_String_ ( v560,msg_17 ); - v429 = true; + v575 = __consts_0.py____test_rsession_webjs_Globals.opending; + v576 = v575; + ll_append__List_Dict_String__String___Dict_String_ ( v576,msg_17 ); + v445 = true; block = 12; break; case 26: - add_received_item_outcome ( v562,v563 ); + add_received_item_outcome ( v578,v579 ); block = 11; break; case 27: - v565 = __consts_0.Document; - v566 = ll_dict_getitem__Dict_String__String__String ( msg_18,__consts_0.const_str__70 ); - v567 = v565.getElementById(v566); - v568 = v567.style; - v568.background = __consts_0.const_str__71; - v570 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict; - v571 = ll_dict_getitem__Dict_String__String__String ( msg_18,__consts_0.const_str__70 ); - v572 = ll_dict_getitem__Dict_String__String__String ( v570,v571 ); - v573 = new Object(); - v573.item0 = v572; - v575 = v573.item0; - v576 = new StringBuilder(); - v577 = ll_str__StringR_StringConst_String ( undefined,v575 ); - v576.ll_append(v577); - v576.ll_append(__consts_0.const_str__72); - v580 = v576.ll_build(); - v581 = v567.childNodes; - v582 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v581,0 ); - v582.nodeValue = v580; + v581 = __consts_0.Document; + v582 = ll_dict_getitem__Dict_String__String__String ( msg_18,__consts_0.const_str__70 ); + v583 = v581.getElementById(v582); + v584 = v583.style; + v584.background = __consts_0.const_str__71; + v586 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict; + v587 = ll_dict_getitem__Dict_String__String__String ( msg_18,__consts_0.const_str__70 ); + v588 = ll_dict_getitem__Dict_String__String__String ( v586,v587 ); + v589 = new Object(); + v589.item0 = v588; + v591 = v589.item0; + v592 = new StringBuilder(); + v593 = ll_str__StringR_StringConst_String ( undefined,v591 ); + v592.ll_append(v593); + v592.ll_append(__consts_0.const_str__72); + v596 = v592.ll_build(); + v597 = v583.childNodes; + v598 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v597,0 ); + v598.nodeValue = v596; block = 11; break; case 28: - v584 = __consts_0.Document; - v585 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__70 ); - v586 = v584.getElementById(v585); - v587 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; - v588 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__70 ); - v589 = ll_dict_getitem__Dict_String__List_String___String ( v587,v588 ); - v590 = v589; - v591 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__56 ); - ll_prepend__List_String__String ( v590,v591 ); - v593 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; - v594 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__70 ); - v595 = ll_dict_getitem__Dict_String__List_String___String ( v593,v594 ); - v596 = ll_len__List_String_ ( v595 ); - v597 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict; - v598 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__70 ); - v599 = ll_dict_getitem__Dict_String__String__String ( v597,v598 ); - v600 = new Object(); - v600.item0 = v599; - v600.item1 = v596; - v603 = v600.item0; - v604 = v600.item1; - v605 = new StringBuilder(); - v606 = ll_str__StringR_StringConst_String ( undefined,v603 ); - v605.ll_append(v606); - v605.ll_append(__consts_0.const_str__73); - v609 = ll_int_str__IntegerR_SignedConst_Signed ( undefined,v604 ); - v605.ll_append(v609); - v605.ll_append(__consts_0.const_str__42); - v612 = v605.ll_build(); - v613 = v586.childNodes; - v614 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v613,0 ); - v614.nodeValue = v612; + v600 = __consts_0.Document; + v601 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__70 ); + v602 = v600.getElementById(v601); + v603 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; + v604 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__70 ); + v605 = ll_dict_getitem__Dict_String__List_String___String ( v603,v604 ); + v606 = v605; + v607 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__56 ); + ll_prepend__List_String__String ( v606,v607 ); + v609 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; + v610 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__70 ); + v611 = ll_dict_getitem__Dict_String__List_String___String ( v609,v610 ); + v612 = ll_len__List_String_ ( v611 ); + v613 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict; + v614 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__70 ); + v615 = ll_dict_getitem__Dict_String__String__String ( v613,v614 ); + v616 = new Object(); + v616.item0 = v615; + v616.item1 = v612; + v619 = v616.item0; + v620 = v616.item1; + v621 = new StringBuilder(); + v622 = ll_str__StringR_StringConst_String ( undefined,v619 ); + v621.ll_append(v622); + v621.ll_append(__consts_0.const_str__73); + v625 = ll_int_str__IntegerR_SignedConst_Signed ( undefined,v620 ); + v621.ll_append(v625); + v621.ll_append(__consts_0.const_str__42); + v628 = v621.ll_build(); + v629 = v602.childNodes; + v630 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v629,0 ); + v630.nodeValue = v628; block = 11; break; case 29: - v617 = make_module_box ( v616 ); - v618 = main_t_0; - v618.appendChild(v617); + v633 = make_module_box ( v632 ); + v634 = main_t_0; + v634.appendChild(v633); block = 11; break; } } } +function ll_len__List_Dict_String__String__ (l_5) { + var v406,v407,v408; + var block = 0; + for(;;){ + switch(block){ + case 0: + v407 = l_5; + v408 = v407.length; + v406 = v408; + block = 1; + break; + case 1: + return ( v406 ); + } + } +} + +function ll_append__List_Dict_String__String___Dict_String_ (l_9,newitem_0) { + var v659,v660,v661,v662,v663,v664,v665,v666; + var block = 0; + for(;;){ + switch(block){ + case 0: + v660 = l_9; + v661 = v660.length; + v662 = l_9; + v663 = (v661+1); + v662.length = v663; + v665 = l_9; + v665[v661]=newitem_0; + block = 1; + break; + case 1: + return ( v659 ); + } + } +} + +function ll_int_str__IntegerR_SignedConst_Signed (repr_0,i_6) { + var v834,v835; + var block = 0; + for(;;){ + switch(block){ + case 0: + v835 = ll_int2dec__Signed ( i_6 ); + v834 = v835; + block = 1; + break; + case 1: + return ( v834 ); + } + } +} + +function ll_listslice_startonly__List_Dict_String__String__ (RESLIST_0,l1_0,start_0) { + var v409,v410,v411,v412,v413,v414,v415,v416,v417,v418,l1_1,i_4,j_0,l_6,len1_0,v419,v420,l1_2,i_5,j_1,l_7,len1_1,v421,v422,v423,v424,v425,v426; + var block = 0; + for(;;){ + switch(block){ + case 0: + v410 = l1_0; + v411 = v410.length; + v412 = (start_0>=0); + undefined; + v414 = (start_0<=v411); + undefined; + v416 = (v411-start_0); + undefined; + v418 = ll_newlist__List_Dict_String__String__LlT_Signed ( undefined,v416 ); + l1_1 = l1_0; + i_4 = start_0; + j_0 = 0; + l_6 = v418; + len1_0 = v411; + block = 1; + break; + case 1: + v419 = (i_4=v435); + v437 = v436; + if (v437 == true) + { + block = 3; + break; + } + else{ + iter_3 = iter_2; + index_4 = v433; + l_8 = v432; + block = 1; + break; + } + case 1: + v438 = (index_4+1); + iter_3.index = v438; + v440 = l_8; + v441 = v440[index_4]; + v431 = v441; + block = 2; + break; + case 2: + return ( v431 ); + case 3: + v442 = __consts_0.exceptions_StopIteration; + v443 = v442.meta; + v444 = v442; + etype_4 = v443; + evalue_4 = v444; + block = 4; + break; + case 4: + throw(evalue_4); + } + } +} + function show_interrupt () { - var v647,v648,v649,v650,v651,v652,v653,v654; + var v651,v652,v653,v654,v655,v656,v657,v658; var block = 0; for(;;){ switch(block){ case 0: __consts_0.py____test_rsession_webjs_Globals.ofinished = true; __consts_0.Document.title = __consts_0.const_str__74; - v650 = __consts_0.Document; - v651 = v650.getElementById(__consts_0.const_str__39); - v652 = v651.childNodes; - v653 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v652,0 ); - v653.nodeValue = __consts_0.const_str__75; + v654 = __consts_0.Document; + v655 = v654.getElementById(__consts_0.const_str__39); + v656 = v655.childNodes; + v657 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v656,0 ); + v657.nodeValue = __consts_0.const_str__75; block = 1; break; case 1: - return ( v647 ); + return ( v651 ); + } + } +} + +function ll_listiter__Record_index__Signed__iterable_List_D (ITER_1,lst_1) { + var v427,v428,v429,v430; + var block = 0; + for(;;){ + switch(block){ + case 0: + v428 = new Object(); + v428.iterable = lst_1; + v428.index = 0; + v427 = v428; + block = 1; + break; + case 1: + return ( v427 ); } } } function ll_prepend__List_String__String (l_10,newitem_1) { - var v811,v812,v813,v814,v815,v816,l_11,newitem_2,dst_0,v817,v818,newitem_3,v819,v820,v821,l_12,newitem_4,dst_1,v822,v823,v824,v825,v826; + var v815,v816,v817,v818,v819,v820,l_11,newitem_2,dst_0,v821,v822,newitem_3,v823,v824,v825,l_12,newitem_4,dst_1,v826,v827,v828,v829,v830; var block = 0; for(;;){ switch(block){ case 0: - v812 = l_10; - v813 = v812.length; - v814 = l_10; - v815 = (v813+1); - v814.length = v815; + v816 = l_10; + v817 = v816.length; + v818 = l_10; + v819 = (v817+1); + v818.length = v819; l_11 = l_10; newitem_2 = newitem_1; - dst_0 = v813; + dst_0 = v817; block = 1; break; case 1: - v817 = (dst_0>0); - v818 = v817; - if (v818 == true) + v821 = (dst_0>0); + v822 = v821; + if (v822 == true) { l_12 = l_11; newitem_4 = newitem_2; @@ -2184,297 +2476,59 @@ function ll_prepend__List_String__String (l_10,newitem_1) { } else{ newitem_3 = newitem_2; - v819 = l_11; + v823 = l_11; block = 2; break; } case 2: - v820 = v819; - v820[0]=newitem_3; + v824 = v823; + v824[0]=newitem_3; block = 3; break; case 3: - return ( v811 ); + return ( v815 ); case 4: - v822 = (dst_1-1); - v823 = l_12; - v824 = l_12; - v825 = v824[v822]; - v823[dst_1]=v825; + v826 = (dst_1-1); + v827 = l_12; + v828 = l_12; + v829 = v828[v826]; + v827[dst_1]=v829; l_11 = l_12; newitem_2 = newitem_4; - dst_0 = v822; + dst_0 = v826; block = 1; break; } } } -function scroll_down_if_needed (mbox_2) { - var v632,v633,v634,v635,v636,v637,v638; +function ll_len__List_String_ (l_13) { + var v831,v832,v833; var block = 0; for(;;){ switch(block){ case 0: - v633 = __consts_0.py____test_rsession_webjs_Options.oscroll; - v634 = v633; - if (v634 == true) - { - v635 = mbox_2; - block = 2; - break; - } - else{ - block = 1; - break; - } - case 1: - return ( v632 ); - case 2: - v636 = v635.parentNode; - v637 = v636; - v637.scrollIntoView(); - block = 1; - break; - } - } -} - -function ll_newdict__Dict_String__List_String__LlT (DICT_0) { - var v388,v389; - var block = 0; - for(;;){ - switch(block){ - case 0: - v389 = new Object(); - v388 = v389; + v832 = l_13; + v833 = v832.length; + v831 = v833; block = 1; break; case 1: - return ( v388 ); - } - } -} - -function ll_dict_kvi__Dict_String__String__List_String_LlT_ (d_3,LIST_0,func_1) { - var v339,v340,v341,v342,v343,v344,i_0,it_0,result_0,v345,v346,v347,i_1,it_1,result_1,v348,v349,v350,v351,it_2,result_2,v352,v353; - var block = 0; - for(;;){ - switch(block){ - case 0: - v340 = d_3; - v341 = get_dict_len ( v340 ); - v342 = ll_newlist__List_String_LlT_Signed ( undefined,v341 ); - v343 = d_3; - v344 = dict_items_iterator ( v343 ); - i_0 = 0; - it_0 = v344; - result_0 = v342; - block = 1; - break; - case 1: - v345 = it_0; - v346 = v345.ll_go_next(); - v347 = v346; - if (v347 == true) - { - i_1 = i_0; - it_1 = it_0; - result_1 = result_0; - block = 3; - break; - } - else{ - v339 = result_0; - block = 2; - break; - } - case 2: - return ( v339 ); - case 3: - v348 = result_1; - v349 = it_1; - v350 = v349.ll_current_key(); - v348[i_1]=v350; - it_2 = it_1; - result_2 = result_1; - v352 = i_1; - block = 4; - break; - case 4: - v353 = (v352+1); - i_0 = v353; - it_0 = it_2; - result_0 = result_2; - block = 1; - break; - } - } -} - -function ll_listiter__Record_index__Signed__iterable_List_D (ITER_1,lst_1) { - var v411,v412,v413,v414; - var block = 0; - for(;;){ - switch(block){ - case 0: - v412 = new Object(); - v412.iterable = lst_1; - v412.index = 0; - v411 = v412; - block = 1; - break; - case 1: - return ( v411 ); - } - } -} - -function ll_append__List_Dict_String__String___Dict_String_ (l_9,newitem_0) { - var v655,v656,v657,v658,v659,v660,v661,v662; - var block = 0; - for(;;){ - switch(block){ - case 0: - v656 = l_9; - v657 = v656.length; - v658 = l_9; - v659 = (v657+1); - v658.length = v659; - v661 = l_9; - v661[v657]=newitem_0; - block = 1; - break; - case 1: - return ( v655 ); - } - } -} - -function ll_len__List_Dict_String__String__ (l_5) { - var v390,v391,v392; - var block = 0; - for(;;){ - switch(block){ - case 0: - v391 = l_5; - v392 = v391.length; - v390 = v392; - block = 1; - break; - case 1: - return ( v390 ); - } - } -} - -function show_crash () { - var v639,v640,v641,v642,v643,v644,v645,v646; - var block = 0; - for(;;){ - switch(block){ - case 0: - __consts_0.py____test_rsession_webjs_Globals.ofinished = true; - __consts_0.Document.title = __consts_0.const_str__76; - v642 = __consts_0.Document; - v643 = v642.getElementById(__consts_0.const_str__39); - v644 = v643.childNodes; - v645 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v644,0 ); - v645.nodeValue = __consts_0.const_str__77; - block = 1; - break; - case 1: - return ( v639 ); - } - } -} - -function ll_listslice_startonly__List_Dict_String__String__ (RESLIST_0,l1_0,start_0) { - var v393,v394,v395,v396,v397,v398,v399,v400,v401,v402,l1_1,i_2,j_0,l_6,len1_0,v403,v404,l1_2,i_3,j_1,l_7,len1_1,v405,v406,v407,v408,v409,v410; - var block = 0; - for(;;){ - switch(block){ - case 0: - v394 = l1_0; - v395 = v394.length; - v396 = (start_0>=0); - undefined; - v398 = (start_0<=v395); - undefined; - v400 = (v395-start_0); - undefined; - v402 = ll_newlist__List_Dict_String__String__LlT_Signed ( undefined,v400 ); - l1_1 = l1_0; - i_2 = start_0; - j_0 = 0; - l_6 = v402; - len1_0 = v395; - block = 1; - break; - case 1: - v403 = (i_20); - undefined; - v946 = (length_4-1); - v947 = l_18; - v948 = v947[v946]; - ll_null_item__List_String_ ( l_18 ); - res_0 = v948; - newlength_0 = v946; - v950 = l_18; - block = 2; - break; - case 2: - v951 = v950; - v951.length = newlength_0; - v941 = res_0; - block = 3; - break; - case 3: - return ( v941 ); - } - } -} - -function ll_strlen__String (obj_1) { - var v900,v901,v902; - var block = 0; - for(;;){ - switch(block){ - case 0: - v901 = obj_1; - v902 = v901.length; - v900 = v902; - block = 1; - break; - case 1: - return ( v900 ); - } - } -} - -function ll_newlist__List_Dict_String__String__LlT_Signed (self_1,length_1) { var v896,v897; var block = 0; for(;;){ switch(block){ case 0: - v897 = ll_newlist__List_Dict_String__String__LlT_Signed_0 ( undefined,length_1 ); + v897 = i_7.toString(); v896 = v897; block = 1; break; @@ -3010,143 +2838,330 @@ function ll_newlist__List_Dict_String__String__LlT_Signed (self_1,length_1) { } function skip_come_back (msg_32) { - var v937,v938,v939,v940; + var v941,v942,v943,v944; var block = 0; for(;;){ switch(block){ case 0: - v938 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__57 ); - v939 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__100 ); - __consts_0.const_tuple__31[v939]=v938; + v942 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__57 ); + v943 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__94 ); + __consts_0.const_tuple[v943]=v942; block = 1; break; case 1: - return ( v937 ); + return ( v941 ); } } } -function ll_newlist__List_String_LlT_Signed (LIST_1,length_0) { - var v892,v893,v894,v895; +function show_crash () { + var v643,v644,v645,v646,v647,v648,v649,v650; var block = 0; for(;;){ switch(block){ case 0: - v893 = new Array(); - v894 = v893; - v894.length = length_0; - v892 = v893; + __consts_0.py____test_rsession_webjs_Globals.ofinished = true; + __consts_0.Document.title = __consts_0.const_str__95; + v646 = __consts_0.Document; + v647 = v646.getElementById(__consts_0.const_str__39); + v648 = v647.childNodes; + v649 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v648,0 ); + v649.nodeValue = __consts_0.const_str__96; block = 1; break; case 1: - return ( v892 ); + return ( v643 ); } } } function ll_getitem__dum_nocheckConst_List_ExternalType__Si (func_2,l_14,index_5) { - var v923,v924,v925,v926,v927,l_15,index_6,length_2,v928,v929,v930,v931,index_7,v932,v933,v934,l_16,length_3,v935,v936; + var v927,v928,v929,v930,v931,l_15,index_6,length_3,v932,v933,v934,v935,index_7,v936,v937,v938,l_16,length_4,v939,v940; var block = 0; for(;;){ switch(block){ case 0: - v924 = l_14; - v925 = v924.length; - v926 = (index_5<0); - v927 = v926; - if (v927 == true) + v928 = l_14; + v929 = v928.length; + v930 = (index_5<0); + v931 = v930; + if (v931 == true) { l_16 = l_14; - length_3 = v925; - v935 = index_5; + length_4 = v929; + v939 = index_5; block = 4; break; } else{ l_15 = l_14; index_6 = index_5; - length_2 = v925; + length_3 = v929; block = 1; break; } case 1: - v928 = (index_6>=0); + v932 = (index_6>=0); undefined; - v930 = (index_60); + undefined; + v950 = (length_5-1); + v951 = l_18; + v952 = v951[v950]; + ll_null_item__List_String_ ( l_18 ); + res_0 = v952; + newlength_0 = v950; + v954 = l_18; + block = 2; + break; + case 2: + v955 = v954; + v955.length = newlength_0; + v945 = res_0; + block = 3; + break; + case 3: + return ( v945 ); + } + } +} + +function make_module_box (msg_30) { + var v836,v837,v838,v839,v840,v841,v842,v843,v844,v845,v846,v847,v848,v849,v850,v851,v852,v853,v854,v855,v856,v857,v858,v859,v860,v861,v862,v863,v864,v865,v866,v867,v868,v869,v870,v871,v872,v873,v874,v875,v876,v877,v878,v879,v880,v881,v882,v883,v884,v885,v886,v887,v888,v889,v890,v891,v892,v893,v894,v895; + var block = 0; + for(;;){ + switch(block){ + case 0: + v837 = create_elem ( __consts_0.const_str__22 ); + v838 = create_elem ( __consts_0.const_str__23 ); + v839 = v837; + v839.appendChild(v838); + v841 = v838; + v842 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__97 ); + v843 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__98 ); + v844 = new Object(); + v844.item0 = v842; + v844.item1 = v843; + v847 = v844.item0; + v848 = v844.item1; + v849 = new StringBuilder(); + v850 = ll_str__StringR_StringConst_String ( undefined,v847 ); + v849.ll_append(v850); + v849.ll_append(__consts_0.const_str__99); + v853 = ll_str__StringR_StringConst_String ( undefined,v848 ); + v849.ll_append(v853); + v849.ll_append(__consts_0.const_str__42); + v856 = v849.ll_build(); + v857 = create_text_elem ( v856 ); + v841.appendChild(v857); + v859 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__98 ); + v860 = ll_int__String_Signed ( v859,10 ); + v861 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__56 ); + __consts_0.const_tuple__88[v861]=v860; + v863 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__97 ); + v864 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__56 ); + __consts_0.const_tuple__87[v864]=v863; + v866 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__56 ); + v867 = ll_strconcat__String_String ( __consts_0.const_str__86,v866 ); + v838.id = v867; + v869 = v838; + v870 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__56 ); + v871 = new Object(); + v871.item0 = v870; + v873 = v871.item0; + v874 = new StringBuilder(); + v874.ll_append(__consts_0.const_str__76); + v876 = ll_str__StringR_StringConst_String ( undefined,v873 ); + v874.ll_append(v876); + v874.ll_append(__consts_0.const_str__33); + v879 = v874.ll_build(); + v869.setAttribute(__consts_0.const_str__34,v879); + v881 = v838; + v881.setAttribute(__consts_0.const_str__35,__consts_0.const_str__77); + v883 = create_elem ( __consts_0.const_str__23 ); + v884 = v837; + v884.appendChild(v883); + v886 = create_elem ( __consts_0.const_str__100 ); + v887 = v883; + v887.appendChild(v886); + v889 = create_elem ( __consts_0.const_str__21 ); + v890 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__56 ); + v889.id = v890; + v892 = v886; + v892.appendChild(v889); + v894 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__56 ); + __consts_0.const_tuple__85[v894]=0; + v836 = v837; + block = 1; + break; + case 1: + return ( v836 ); + } + } +} + +function ll_strlen__String (obj_1) { + var v904,v905,v906; + var block = 0; + for(;;){ + switch(block){ + case 0: + v905 = obj_1; + v906 = v905.length; + v904 = v906; + block = 1; + break; + case 1: + return ( v904 ); + } + } +} + +function ll_newlist__List_Dict_String__String__LlT_Signed_0 (LIST_2,length_2) { + var v900,v901,v902,v903; + var block = 0; + for(;;){ + switch(block){ + case 0: + v901 = new Array(); + v902 = v901; + v902.length = length_2; + v900 = v901; + block = 1; + break; + case 1: + return ( v900 ); } } } function fail_come_back (msg_31) { - var v903,v904,v905,v906,v907,v908,v909,v910,v911,v912; + var v907,v908,v909,v910,v911,v912,v913,v914,v915,v916; var block = 0; for(;;){ switch(block){ case 0: - v904 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__101 ); - v905 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__102 ); - v906 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__103 ); - v907 = new Object(); - v907.item0 = v904; - v907.item1 = v905; - v907.item2 = v906; - v911 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__100 ); - __consts_0.const_tuple[v911]=v907; + v908 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__101 ); + v909 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__102 ); + v910 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__103 ); + v911 = new Object(); + v911.item0 = v908; + v911.item1 = v909; + v911.item2 = v910; + v915 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__94 ); + __consts_0.const_tuple__2[v915]=v911; block = 1; break; case 1: - return ( v903 ); + return ( v907 ); + } + } +} + +function ll_dict_getitem__Dict_String__Signed__String (d_4,key_8) { + var v917,v918,v919,v920,v921,v922,v923,etype_5,evalue_5,key_9,v924,v925,v926; + var block = 0; + for(;;){ + switch(block){ + case 0: + v918 = d_4; + v919 = (v918[key_8]!=undefined); + v920 = v919; + if (v920 == true) + { + key_9 = key_8; + v924 = d_4; + block = 3; + break; + } + else{ + block = 1; + break; + } + case 1: + v921 = __consts_0.exceptions_KeyError; + v922 = v921.meta; + v923 = v921; + etype_5 = v922; + evalue_5 = v923; + block = 2; + break; + case 2: + throw(evalue_5); + case 3: + v925 = v924; + v926 = v925[key_9]; + v917 = v926; + block = 4; + break; + case 4: + return ( v917 ); + } + } +} + +function ll_null_item__List_String_ (lst_2) { + var v957,v958; + var block = 0; + for(;;){ + switch(block){ + case 0: + undefined; + block = 1; + break; + case 1: + return ( v957 ); } } } function ll_int__String_Signed (s_2,base_0) { - var v953,v954,v955,v956,v957,v958,etype_6,evalue_6,s_3,base_1,v959,s_4,base_2,v960,v961,s_5,base_3,v962,v963,s_6,base_4,i_8,strlen_0,v964,v965,s_7,base_5,i_9,strlen_1,v966,v967,v968,v969,v970,s_8,base_6,i_10,strlen_2,v971,v972,v973,v974,s_9,base_7,i_11,strlen_3,v975,v976,v977,v978,s_10,base_8,val_0,i_12,sign_0,strlen_4,v979,v980,s_11,val_1,i_13,sign_1,strlen_5,v981,v982,val_2,sign_2,v983,v984,v985,v986,v987,v988,v989,v990,v991,v992,s_12,val_3,i_14,sign_3,strlen_6,v993,v994,v995,v996,s_13,val_4,sign_4,strlen_7,v997,v998,s_14,base_9,val_5,i_15,sign_5,strlen_8,v999,v1000,v1001,v1002,v1003,s_15,base_10,c_0,val_6,i_16,sign_6,strlen_9,v1004,v1005,s_16,base_11,c_1,val_7,i_17,sign_7,strlen_10,v1006,v1007,s_17,base_12,c_2,val_8,i_18,sign_8,strlen_11,v1008,s_18,base_13,c_3,val_9,i_19,sign_9,strlen_12,v1009,v1010,s_19,base_14,val_10,i_20,sign_10,strlen_13,v1011,v1012,s_20,base_15,val_11,i_21,digit_0,sign_11,strlen_14,v1013,v1014,s_21,base_16,i_22,digit_1,sign_12,strlen_15,v1015,v1016,v1017,v1018,s_22,base_17,c_4,val_12,i_23,sign_13,strlen_16,v1019,s_23,base_18,c_5,val_13,i_24,sign_14,strlen_17,v1020,v1021,s_24,base_19,val_14,i_25,sign_15,strlen_18,v1022,v1023,v1024,s_25,base_20,c_6,val_15,i_26,sign_16,strlen_19,v1025,s_26,base_21,c_7,val_16,i_27,sign_17,strlen_20,v1026,v1027,s_27,base_22,val_17,i_28,sign_18,strlen_21,v1028,v1029,v1030,s_28,base_23,strlen_22,v1031,v1032,s_29,base_24,strlen_23,v1033,v1034,s_30,base_25,i_29,strlen_24,v1035,v1036,v1037,v1038,s_31,base_26,strlen_25,v1039,v1040; + var v959,v960,v961,v962,v963,v964,etype_6,evalue_6,s_3,base_1,v965,s_4,base_2,v966,v967,s_5,base_3,v968,v969,s_6,base_4,i_8,strlen_0,v970,v971,s_7,base_5,i_9,strlen_1,v972,v973,v974,v975,v976,s_8,base_6,i_10,strlen_2,v977,v978,v979,v980,s_9,base_7,i_11,strlen_3,v981,v982,v983,v984,s_10,base_8,val_0,i_12,sign_0,strlen_4,v985,v986,s_11,val_1,i_13,sign_1,strlen_5,v987,v988,val_2,sign_2,v989,v990,v991,v992,v993,v994,v995,v996,v997,v998,s_12,val_3,i_14,sign_3,strlen_6,v999,v1000,v1001,v1002,s_13,val_4,sign_4,strlen_7,v1003,v1004,s_14,base_9,val_5,i_15,sign_5,strlen_8,v1005,v1006,v1007,v1008,v1009,s_15,base_10,c_0,val_6,i_16,sign_6,strlen_9,v1010,v1011,s_16,base_11,c_1,val_7,i_17,sign_7,strlen_10,v1012,v1013,s_17,base_12,c_2,val_8,i_18,sign_8,strlen_11,v1014,s_18,base_13,c_3,val_9,i_19,sign_9,strlen_12,v1015,v1016,s_19,base_14,val_10,i_20,sign_10,strlen_13,v1017,v1018,s_20,base_15,val_11,i_21,digit_0,sign_11,strlen_14,v1019,v1020,s_21,base_16,i_22,digit_1,sign_12,strlen_15,v1021,v1022,v1023,v1024,s_22,base_17,c_4,val_12,i_23,sign_13,strlen_16,v1025,s_23,base_18,c_5,val_13,i_24,sign_14,strlen_17,v1026,v1027,s_24,base_19,val_14,i_25,sign_15,strlen_18,v1028,v1029,v1030,s_25,base_20,c_6,val_15,i_26,sign_16,strlen_19,v1031,s_26,base_21,c_7,val_16,i_27,sign_17,strlen_20,v1032,v1033,s_27,base_22,val_17,i_28,sign_18,strlen_21,v1034,v1035,v1036,s_28,base_23,strlen_22,v1037,v1038,s_29,base_24,strlen_23,v1039,v1040,s_30,base_25,i_29,strlen_24,v1041,v1042,v1043,v1044,s_31,base_26,strlen_25,v1045,v1046; var block = 0; for(;;){ switch(block){ case 0: - v954 = (2<=base_0); - v955 = v954; - if (v955 == true) + v960 = (2<=base_0); + v961 = v960; + if (v961 == true) { s_3 = s_2; base_1 = base_0; @@ -3158,25 +3173,25 @@ function ll_int__String_Signed (s_2,base_0) { break; } case 1: - v956 = __consts_0.exceptions_ValueError; - v957 = v956.meta; - v958 = v956; - etype_6 = v957; - evalue_6 = v958; + v962 = __consts_0.exceptions_ValueError; + v963 = v962.meta; + v964 = v962; + etype_6 = v963; + evalue_6 = v964; block = 2; break; case 2: throw(evalue_6); case 3: - v959 = (base_1<=36); + v965 = (base_1<=36); s_4 = s_3; base_2 = base_1; - v960 = v959; + v966 = v965; block = 4; break; case 4: - v961 = v960; - if (v961 == true) + v967 = v966; + if (v967 == true) { s_5 = s_4; base_3 = base_2; @@ -3188,18 +3203,18 @@ function ll_int__String_Signed (s_2,base_0) { break; } case 5: - v962 = s_5; - v963 = v962.length; + v968 = s_5; + v969 = v968.length; s_6 = s_5; base_4 = base_3; i_8 = 0; - strlen_0 = v963; + strlen_0 = v969; block = 6; break; case 6: - v964 = (i_8=base_15); - v1014 = v1013; - if (v1014 == true) + v1019 = (digit_0>=base_15); + v1020 = v1019; + if (v1020 == true) { s_11 = s_20; val_1 = val_11; @@ -3536,24 +3551,24 @@ function ll_int__String_Signed (s_2,base_0) { digit_1 = digit_0; sign_12 = sign_11; strlen_15 = strlen_14; - v1015 = val_11; + v1021 = val_11; block = 26; break; } case 26: - v1016 = (v1015*base_16); - v1017 = (v1016+digit_1); - v1018 = (i_22+1); + v1022 = (v1021*base_16); + v1023 = (v1022+digit_1); + v1024 = (i_22+1); s_10 = s_21; base_8 = base_16; - val_0 = v1017; - i_12 = v1018; + val_0 = v1023; + i_12 = v1024; sign_0 = sign_12; strlen_4 = strlen_15; block = 11; break; case 27: - v1019 = (c_4<=90); + v1025 = (c_4<=90); s_23 = s_22; base_18 = base_17; c_5 = c_4; @@ -3561,12 +3576,12 @@ function ll_int__String_Signed (s_2,base_0) { i_24 = i_23; sign_14 = sign_13; strlen_17 = strlen_16; - v1020 = v1019; + v1026 = v1025; block = 28; break; case 28: - v1021 = v1020; - if (v1021 == true) + v1027 = v1026; + if (v1027 == true) { s_24 = s_23; base_19 = base_18; @@ -3574,7 +3589,7 @@ function ll_int__String_Signed (s_2,base_0) { i_25 = i_24; sign_15 = sign_14; strlen_18 = strlen_17; - v1022 = c_5; + v1028 = c_5; block = 29; break; } @@ -3590,19 +3605,19 @@ function ll_int__String_Signed (s_2,base_0) { break; } case 29: - v1023 = (v1022-65); - v1024 = (v1023+10); + v1029 = (v1028-65); + v1030 = (v1029+10); s_20 = s_24; base_15 = base_19; val_11 = val_14; i_21 = i_25; - digit_0 = v1024; + digit_0 = v1030; sign_11 = sign_15; strlen_14 = strlen_18; block = 25; break; case 30: - v1025 = (c_6<=122); + v1031 = (c_6<=122); s_26 = s_25; base_21 = base_20; c_7 = c_6; @@ -3610,12 +3625,12 @@ function ll_int__String_Signed (s_2,base_0) { i_27 = i_26; sign_17 = sign_16; strlen_20 = strlen_19; - v1026 = v1025; + v1032 = v1031; block = 31; break; case 31: - v1027 = v1026; - if (v1027 == true) + v1033 = v1032; + if (v1033 == true) { s_27 = s_26; base_22 = base_21; @@ -3623,7 +3638,7 @@ function ll_int__String_Signed (s_2,base_0) { i_28 = i_27; sign_18 = sign_17; strlen_21 = strlen_20; - v1028 = c_7; + v1034 = c_7; block = 32; break; } @@ -3639,48 +3654,48 @@ function ll_int__String_Signed (s_2,base_0) { break; } case 32: - v1029 = (v1028-97); - v1030 = (v1029+10); + v1035 = (v1034-97); + v1036 = (v1035+10); s_20 = s_27; base_15 = base_22; val_11 = val_17; i_21 = i_28; - digit_0 = v1030; + digit_0 = v1036; sign_11 = sign_18; strlen_14 = strlen_21; block = 25; break; case 33: - v1032 = (v1031+1); + v1038 = (v1037+1); s_10 = s_28; base_8 = base_23; val_0 = 0; - i_12 = v1032; + i_12 = v1038; sign_0 = 1; strlen_4 = strlen_22; block = 11; break; case 34: - v1034 = (v1033+1); + v1040 = (v1039+1); s_10 = s_29; base_8 = base_24; val_0 = 0; - i_12 = v1034; + i_12 = v1040; sign_0 = -1; strlen_4 = strlen_23; block = 11; break; case 35: - v1035 = s_30; - v1036 = v1035.charAt(i_29); - v1037 = (v1036==' '); - v1038 = v1037; - if (v1038 == true) + v1041 = s_30; + v1042 = v1041.charAt(i_29); + v1043 = (v1042==' '); + v1044 = v1043; + if (v1044 == true) { s_31 = s_30; base_26 = base_25; strlen_25 = strlen_24; - v1039 = i_29; + v1045 = i_29; block = 36; break; } @@ -3693,10 +3708,10 @@ function ll_int__String_Signed (s_2,base_0) { break; } case 36: - v1040 = (v1039+1); + v1046 = (v1045+1); s_6 = s_31; base_4 = base_26; - i_8 = v1040; + i_8 = v1046; strlen_0 = strlen_25; block = 6; break; @@ -3704,21 +3719,6 @@ function ll_int__String_Signed (s_2,base_0) { } } -function ll_null_item__List_String_ (lst_2) { - var v1041,v1042; - var block = 0; - for(;;){ - switch(block){ - case 0: - undefined; - block = 1; - break; - case 1: - return ( v1041 ); - } - } -} - function exceptions_ValueError () { } @@ -3743,14 +3743,6 @@ exceptions_Exception_meta.prototype.toString = function (){ } inherits(exceptions_Exception_meta,Object_meta); -function exceptions_StopIteration_meta () { -} - -exceptions_StopIteration_meta.prototype.toString = function (){ - return ( '' ); -} - -inherits(exceptions_StopIteration_meta,exceptions_Exception_meta); function exceptions_StandardError_meta () { } @@ -3767,6 +3759,14 @@ exceptions_ValueError_meta.prototype.toString = function (){ } inherits(exceptions_ValueError_meta,exceptions_StandardError_meta); +function py____test_rsession_webjs_Globals_meta () { +} + +py____test_rsession_webjs_Globals_meta.prototype.toString = function (){ + return ( '' ); +} + +inherits(py____test_rsession_webjs_Globals_meta,Object_meta); function py____test_rsession_webjs_Options_meta () { } @@ -3791,148 +3791,148 @@ exceptions_KeyError_meta.prototype.toString = function (){ } inherits(exceptions_KeyError_meta,exceptions_LookupError_meta); -function py____test_rsession_webjs_Globals_meta () { +function exceptions_StopIteration_meta () { } -py____test_rsession_webjs_Globals_meta.prototype.toString = function (){ - return ( '' ); +exceptions_StopIteration_meta.prototype.toString = function (){ + return ( '' ); } -inherits(py____test_rsession_webjs_Globals_meta,Object_meta); +inherits(exceptions_StopIteration_meta,exceptions_Exception_meta); __consts_0 = {}; __consts_0.const_str__66 = ' failures, '; -__consts_0.const_str__34 = "show_host('"; +__consts_0.const_str__32 = "show_host('"; __consts_0.const_str__65 = ' run, '; -__consts_0.exceptions_KeyError__112 = exceptions_KeyError; -__consts_0.exceptions_KeyError_meta = new exceptions_KeyError_meta(); -__consts_0.exceptions_ValueError__106 = exceptions_ValueError; -__consts_0.exceptions_ValueError_meta = new exceptions_ValueError_meta(); -__consts_0.const_str__83 = 'a'; +__consts_0.py____test_rsession_webjs_Options__108 = py____test_rsession_webjs_Options; +__consts_0.py____test_rsession_webjs_Options_meta = new py____test_rsession_webjs_Options_meta(); +__consts_0.py____test_rsession_webjs_Options = new py____test_rsession_webjs_Options(); +__consts_0.const_str__81 = 'a'; __consts_0.const_str__42 = ']'; +__consts_0.const_tuple__13 = undefined; +__consts_0.py____test_rsession_webjs_Globals__115 = py____test_rsession_webjs_Globals; +__consts_0.py____test_rsession_webjs_Globals_meta = new py____test_rsession_webjs_Globals_meta(); +__consts_0.const_tuple__15 = undefined; +__consts_0.const_list__114 = []; +__consts_0.const_str__12 = ''; +__consts_0.py____test_rsession_webjs_Globals = new py____test_rsession_webjs_Globals(); __consts_0.const_str__49 = 'ReceivedItemOutcome'; -__consts_0.const_str__78 = "show_info('"; -__consts_0.const_str__58 = '- skipped ('; -__consts_0.const_str__38 = 'hide_host()'; -__consts_0.const_str__79 = 'hide_info()'; -__consts_0.const_str__29 = '#message'; +__consts_0.const_str__76 = "show_info('"; +__consts_0.const_str__36 = 'hide_host()'; +__consts_0.const_str__77 = 'hide_info()'; +__consts_0.const_str__10 = '#message'; __consts_0.ExportedMethods = new ExportedMethods(); -__consts_0.const_str__12 = 'tbody'; -__consts_0.const_tuple__31 = {}; +__consts_0.const_str__21 = 'tbody'; +__consts_0.const_str__95 = 'Py.test [crashed]'; __consts_0.const_str__59 = ')'; __consts_0.const_str__44 = 'main_table'; __consts_0.const_str__75 = 'Tests [interrupted]'; -__consts_0.const_str__35 = "')"; +__consts_0.exceptions_KeyError__112 = exceptions_KeyError; +__consts_0.const_str__33 = "')"; +__consts_0.exceptions_StopIteration__110 = exceptions_StopIteration; +__consts_0.exceptions_StopIteration_meta = new exceptions_StopIteration_meta(); __consts_0.const_str__53 = 'RsyncFinished'; -__consts_0.const_str__88 = '_txt_'; -__consts_0.const_tuple__26 = undefined; -__consts_0.const_tuple__24 = undefined; -__consts_0.py____test_rsession_webjs_Globals__115 = py____test_rsession_webjs_Globals; -__consts_0.py____test_rsession_webjs_Globals_meta = new py____test_rsession_webjs_Globals_meta(); -__consts_0.const_list__114 = []; -__consts_0.const_str__16 = ''; -__consts_0.py____test_rsession_webjs_Globals = new py____test_rsession_webjs_Globals(); -__consts_0.const_tuple__87 = {}; +__consts_0.const_str__86 = '_txt_'; +__consts_0.const_tuple__85 = {}; __consts_0.const_str__102 = 'stdout'; __consts_0.const_str = 'aa'; -__consts_0.const_str__67 = ' skipped'; -__consts_0.const_str__48 = 'HostReady'; +__consts_0.const_list = undefined; +__consts_0.exceptions_StopIteration = new exceptions_StopIteration(); __consts_0.const_str__64 = 'FINISHED '; __consts_0.const_str__40 = 'Rsyncing'; -__consts_0.const_str__2 = 'info'; -__consts_0.const_str__15 = 'td'; -__consts_0.const_str__23 = 'true'; -__consts_0.exceptions_KeyError = new exceptions_KeyError(); -__consts_0.const_str__86 = 'F'; -__consts_0.const_str__37 = 'onmouseout'; +__consts_0.const_str__17 = 'info'; +__consts_0.const_str__25 = 'hidden'; +__consts_0.const_str__38 = 'true'; +__consts_0.exceptions_ValueError__106 = exceptions_ValueError; +__consts_0.exceptions_ValueError_meta = new exceptions_ValueError_meta(); +__consts_0.const_str__84 = 'F'; +__consts_0.const_str__35 = 'onmouseout'; __consts_0.const_str__45 = 'type'; -__consts_0.const_str__97 = 'length'; -__consts_0.const_str__80 = 'passed'; -__consts_0.const_str__95 = '.'; +__consts_0.const_str__98 = 'length'; +__consts_0.const_str__78 = 'passed'; +__consts_0.const_str__93 = '.'; __consts_0.const_str__51 = 'FailedTryiter'; -__consts_0.const_str__33 = '#ff0000'; -__consts_0.const_str__20 = 'checked'; -__consts_0.const_str__27 = 'messagebox'; +__consts_0.const_tuple__88 = {}; +__consts_0.const_str__31 = '#ff0000'; +__consts_0.const_str__28 = 'checked'; +__consts_0.const_str__7 = 'messagebox'; __consts_0.const_str__56 = 'fullitemname'; -__consts_0.const_str__99 = 'table'; +__consts_0.const_str__100 = 'table'; __consts_0.const_str__68 = 'Py.test '; __consts_0.const_str__63 = 'skips'; __consts_0.const_str__55 = 'CrashedExecution'; -__consts_0.exceptions_StopIteration__108 = exceptions_StopIteration; -__consts_0.exceptions_StopIteration_meta = new exceptions_StopIteration_meta(); -__consts_0.const_str__9 = '\n'; -__consts_0.const_str__14 = 'tr'; -__consts_0.const_str__28 = 'pre'; +__consts_0.const_str__6 = '\n'; +__consts_0.const_str__8 = 'pre'; __consts_0.const_str__74 = 'Py.test [interrupted]'; -__consts_0.const_str__7 = '\n======== Stdout: ========\n'; +__consts_0.const_str__4 = '\n======== Stdout: ========\n'; __consts_0.const_str__71 = '#00ff00'; -__consts_0.const_str__4 = 'beige'; -__consts_0.const_str__94 = 's'; -__consts_0.const_tuple = {}; +__consts_0.const_str__19 = 'beige'; +__consts_0.const_str__92 = 's'; +__consts_0.const_tuple__2 = {}; __consts_0.const_str__101 = 'traceback'; __consts_0.const_str__43 = 'testmain'; -__consts_0.const_str__93 = "javascript:show_skip('"; +__consts_0.const_str__91 = "javascript:show_skip('"; __consts_0.const_str__73 = '['; -__consts_0.const_str__77 = 'Tests [crashed]'; +__consts_0.const_str__96 = 'Tests [crashed]'; +__consts_0.exceptions_KeyError_meta = new exceptions_KeyError_meta(); __consts_0.const_str__57 = 'reason'; -__consts_0.const_str__84 = "javascript:show_traceback('"; +__consts_0.const_str__82 = "javascript:show_traceback('"; __consts_0.const_str__39 = 'Tests'; +__consts_0.const_tuple = {}; __consts_0.const_str__61 = 'run'; __consts_0.const_str__52 = 'SkippedTryiter'; -__consts_0.const_str__82 = 'None'; -__consts_0.const_str__21 = 'True'; +__consts_0.const_str__80 = 'None'; +__consts_0.const_str__29 = 'True'; +__consts_0.const_str__89 = '/'; +__consts_0.const_str__58 = '- skipped ('; __consts_0.const_str__70 = 'hostkey'; __consts_0.const_str__62 = 'fails'; __consts_0.const_str__46 = 'ItemStart'; -__consts_0.const_str__96 = 'itemname'; +__consts_0.const_str__97 = 'itemname'; __consts_0.const_str__50 = 'TestFinished'; -__consts_0.const_str__11 = 'jobs'; -__consts_0.py____test_rsession_webjs_Options__110 = py____test_rsession_webjs_Options; -__consts_0.const_list = undefined; -__consts_0.const_str__8 = '\n========== Stderr: ==========\n'; -__consts_0.exceptions_ValueError = new exceptions_ValueError(); +__consts_0.const_str__20 = 'jobs'; +__consts_0.const_str__5 = '\n========== Stderr: ==========\n'; +__consts_0.exceptions_KeyError = new exceptions_KeyError(); +__consts_0.const_str__67 = ' skipped'; +__consts_0.const_tuple__87 = {}; __consts_0.const_str__103 = 'stderr'; -__consts_0.const_str__85 = 'href'; -__consts_0.const_tuple__89 = {}; -__consts_0.const_str__3 = 'visible'; -__consts_0.const_str__92 = 'False'; -__consts_0.py____test_rsession_webjs_Options_meta = new py____test_rsession_webjs_Options_meta(); -__consts_0.const_str__36 = 'onmouseover'; +__consts_0.const_str__83 = 'href'; +__consts_0.const_str__18 = 'visible'; +__consts_0.const_str__90 = 'False'; +__consts_0.const_str__48 = 'HostRSyncRootReady'; +__consts_0.const_str__34 = 'onmouseover'; __consts_0.const_str__60 = '- FAILED TO LOAD MODULE'; -__consts_0.const_str__98 = '[0/'; -__consts_0.const_tuple__90 = {}; +__consts_0.const_str__99 = '[0/'; __consts_0.const_str__47 = 'SendItem'; __consts_0.const_str__69 = 'fullmodulename'; -__consts_0.const_str__81 = 'skipped'; -__consts_0.const_str__32 = 'hostsbody'; +__consts_0.const_str__79 = 'skipped'; +__consts_0.const_str__30 = 'hostsbody'; __consts_0.const_str__72 = '[0]'; -__consts_0.const_str__10 = 'hidden'; -__consts_0.const_str__6 = '====== Traceback: =========\n'; -__consts_0.exceptions_StopIteration = new exceptions_StopIteration(); -__consts_0.const_str__100 = 'item_name'; +__consts_0.const_str__23 = 'td'; +__consts_0.const_str__3 = '====== Traceback: =========\n'; +__consts_0.const_str__22 = 'tr'; +__consts_0.const_str__94 = 'item_name'; __consts_0.const_str__41 = 'Tests ['; __consts_0.Document = document; -__consts_0.const_str__91 = '/'; -__consts_0.py____test_rsession_webjs_Options = new py____test_rsession_webjs_Options(); -__consts_0.const_str__76 = 'Py.test [crashed]'; +__consts_0.exceptions_ValueError = new exceptions_ValueError(); __consts_0.const_str__54 = 'InterruptedExecution'; -__consts_0.const_str__19 = 'opt_scroll'; -__consts_0.exceptions_KeyError_meta.class_ = __consts_0.exceptions_KeyError__112; -__consts_0.exceptions_ValueError_meta.class_ = __consts_0.exceptions_ValueError__106; +__consts_0.const_str__27 = 'opt_scroll'; +__consts_0.py____test_rsession_webjs_Options_meta.class_ = __consts_0.py____test_rsession_webjs_Options__108; +__consts_0.py____test_rsession_webjs_Options.meta = __consts_0.py____test_rsession_webjs_Options_meta; +__consts_0.py____test_rsession_webjs_Options.oscroll = true; __consts_0.py____test_rsession_webjs_Globals_meta.class_ = __consts_0.py____test_rsession_webjs_Globals__115; __consts_0.py____test_rsession_webjs_Globals.odata_empty = true; -__consts_0.py____test_rsession_webjs_Globals.osessid = __consts_0.const_str__16; -__consts_0.py____test_rsession_webjs_Globals.ohost = __consts_0.const_str__16; +__consts_0.py____test_rsession_webjs_Globals.osessid = __consts_0.const_str__12; +__consts_0.py____test_rsession_webjs_Globals.ohost = __consts_0.const_str__12; __consts_0.py____test_rsession_webjs_Globals.orsync_dots = 0; __consts_0.py____test_rsession_webjs_Globals.ofinished = false; -__consts_0.py____test_rsession_webjs_Globals.ohost_dict = __consts_0.const_tuple__24; +__consts_0.py____test_rsession_webjs_Globals.ohost_dict = __consts_0.const_tuple__13; __consts_0.py____test_rsession_webjs_Globals.meta = __consts_0.py____test_rsession_webjs_Globals_meta; __consts_0.py____test_rsession_webjs_Globals.opending = __consts_0.const_list__114; __consts_0.py____test_rsession_webjs_Globals.orsync_done = false; -__consts_0.py____test_rsession_webjs_Globals.ohost_pending = __consts_0.const_tuple__26; -__consts_0.exceptions_KeyError.meta = __consts_0.exceptions_KeyError_meta; -__consts_0.exceptions_StopIteration_meta.class_ = __consts_0.exceptions_StopIteration__108; -__consts_0.exceptions_ValueError.meta = __consts_0.exceptions_ValueError_meta; -__consts_0.py____test_rsession_webjs_Options_meta.class_ = __consts_0.py____test_rsession_webjs_Options__110; +__consts_0.py____test_rsession_webjs_Globals.ohost_pending = __consts_0.const_tuple__15; +__consts_0.exceptions_StopIteration_meta.class_ = __consts_0.exceptions_StopIteration__110; __consts_0.exceptions_StopIteration.meta = __consts_0.exceptions_StopIteration_meta; -__consts_0.py____test_rsession_webjs_Options.meta = __consts_0.py____test_rsession_webjs_Options_meta; -__consts_0.py____test_rsession_webjs_Options.oscroll = true; +__consts_0.exceptions_ValueError_meta.class_ = __consts_0.exceptions_ValueError__106; +__consts_0.exceptions_KeyError_meta.class_ = __consts_0.exceptions_KeyError__112; +__consts_0.exceptions_KeyError.meta = __consts_0.exceptions_KeyError_meta; +__consts_0.exceptions_ValueError.meta = __consts_0.exceptions_ValueError_meta; diff --git a/py/test/rsession/webjs.py b/py/test/rsession/webjs.py index 8429ac1b6..0fc309965 100644 --- a/py/test/rsession/webjs.py +++ b/py/test/rsession/webjs.py @@ -185,7 +185,7 @@ def process(msg): host_elem.childNodes[0].nodeValue = '%s[%s]' % ( glob.host_dict[msg['hostkey']], count) - elif msg['type'] == 'HostReady': + elif msg['type'] == 'HostRSyncRootReady': host_elem = dom.document.getElementById(msg['hostkey']) host_elem.style.background = \ "#00ff00"