From ae3e6b9bf0bce66112a7e428c686f49509638d77 Mon Sep 17 00:00:00 2001 From: fijal Date: Sun, 18 Mar 2007 23:53:14 +0100 Subject: [PATCH] [svn r40739] Make FAILED TO LOAD MODULE clickable --HG-- branch : trunk --- py/test/rsession/web.py | 7 +- py/test/rsession/webdata/source.js | 5874 ++++++++++++++-------------- py/test/rsession/webjs.py | 8 +- 3 files changed, 2923 insertions(+), 2966 deletions(-) diff --git a/py/test/rsession/web.py b/py/test/rsession/web.py index aa4dc2770..cf3ba70e4 100644 --- a/py/test/rsession/web.py +++ b/py/test/rsession/web.py @@ -276,7 +276,7 @@ class ExportedMethods(BasicExternal): def repr_source(self, relline, source): lines = [] - for num, line in enumerate(source.split("\n")): + for num, line in enumerate(str(source).split("\n")): if num == relline: lines.append(">>>>" + line) else: @@ -289,7 +289,10 @@ class ExportedMethods(BasicExternal): def report_FailedTryiter(self, event): fullitemname = "/".join(event.item.listnames()) - self.fail_reasons[fullitemname] = '' + self.fail_reasons[fullitemname] = self.repr_failure_tblong( + event.item, event.excinfo, event.excinfo.traceback) + self.stdout[fullitemname] = '' + self.stderr[fullitemname] = '' self.pending_events.put(event) def report_ItemStart(self, event): diff --git a/py/test/rsession/webdata/source.js b/py/test/rsession/webdata/source.js index fa6e39c51..073f4296d 100644 --- a/py/test/rsession/webdata/source.js +++ b/py/test/rsession/webdata/source.js @@ -49,11 +49,11 @@ function strcmp(s1, s2) { } function startswith(s1, s2) { - if (s1.lengths1.length) { + if (s2.length > s1.length) { return(false); } - for (i = s1.length-s2.length; i=0); - undefined; - l_2 = l_1; - index_1 = index_0; - block = 1; - break; - case 1: - v229 = l_2; - v230 = v229.length; - v231 = (index_1' ); -} - -inherits(py____test_rsession_webjs_Globals,Object); -function ll_len__List_ExternalType_ (l_0) { - var v223,v224,v225; +function ll_getitem_nonneg__dum_nocheckConst_List_ExternalType__Signed (l_2,index_1) { + var v175,v176,l_3,index_2,v178,v179,v180,index_3,v182,v183,v184; var block = 0; for(;;){ switch(block){ case 0: - v224 = l_0; - v225 = v224.length; - v223 = v225; + v176 = (index_1>=0); + undefined; + l_3 = l_2; + index_2 = index_1; block = 1; break; case 1: - return ( v223 ); - } - } -} - -function ll_dict_getitem__Dict_String__List_String___String (d_1,key_4) { - var v281,v282,v283,v284,v285,v286,v287,etype_1,evalue_1,key_5,v288,v289,v290; - var block = 0; - for(;;){ - switch(block){ - case 0: - v282 = d_1; - v283 = (v282[key_4]!=undefined); - v284 = v283; - if (v284 == true) - { - key_5 = key_4; - v288 = d_1; - block = 3; - break; - } - else{ - block = 1; - break; - } - case 1: - v285 = __consts_0.exceptions_KeyError; - v286 = v285.meta; - v287 = v285; - etype_1 = v286; - evalue_1 = v287; + v178 = l_3; + v179 = v178.length; + v180 = (index_25); - v367 = v366; - if (v367 == true) - { - text_0 = v361; - elem_9 = elem_7; - block = 5; - break; - } - else{ - elem_8 = elem_7; - v368 = v361; - block = 3; - break; - } - case 3: - v369 = new StringBuilder(); - v369.ll_append(__consts_0.const_str__37); - v371 = ll_str__StringR_StringConst_String ( undefined,v368 ); - v369.ll_append(v371); - v369.ll_append(__consts_0.const_str__38); - v374 = v369.ll_build(); - v375 = elem_8.childNodes; - v376 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v375,0 ); - v376.nodeValue = v374; - setTimeout ( 'update_rsync()',1000 ); - block = 4; - break; - case 4: - return ( v350 ); - case 5: - __consts_0.py____test_rsession_webjs_Globals.orsync_dots = 0; - elem_8 = elem_9; - v368 = text_0; - block = 3; - break; - case 6: - v381 = v380.childNodes; - v382 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v381,0 ); - v382.nodeValue = __consts_0.const_str__35; - block = 4; - break; - } - } -} - -function set_msgbox (item_name_2,data_3) { - var v250,v251,item_name_3,data_4,msgbox_0,v252,v253,v254,item_name_4,data_5,msgbox_1,v255,v256,v257,v258,v259,v260,v261,v262,v263,v264,v265,v266,item_name_5,data_6,msgbox_2,v267,v268,v269,v270; - var block = 0; - for(;;){ - switch(block){ - case 0: - v251 = get_elem ( __consts_0.const_str__39 ); - item_name_3 = item_name_2; - data_4 = data_3; - msgbox_0 = v251; - block = 1; - break; - case 1: - v252 = msgbox_0.childNodes; - v253 = ll_len__List_ExternalType_ ( v252 ); - v254 = !!v253; - if (v254 == 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: - v255 = create_elem ( __consts_0.const_str__40 ); - v256 = ll_strconcat__String_String ( item_name_4,__consts_0.const_str__17 ); - v257 = ll_strconcat__String_String ( v256,data_5 ); - v258 = create_text_elem ( v257 ); - v259 = v255; - v259.appendChild(v258); - v261 = msgbox_1; - v261.appendChild(v255); - v263 = __consts_0.Window.location; - v264 = v263; - v264.assign(__consts_0.const_str__42); - __consts_0.py____test_rsession_webjs_Globals.odata_empty = false; + v183 = v182; + v184 = v183[index_3]; + v175 = v184; block = 3; break; case 3: - return ( v250 ); - case 4: - v267 = msgbox_2; - v268 = msgbox_2.childNodes; - v269 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v268,0 ); - v267.removeChild(v269); - item_name_3 = item_name_5; - data_4 = data_6; - msgbox_0 = msgbox_2; - block = 1; - break; + return ( v175 ); } } } -function ll_listnext__Record_index__Signed__iterable (iter_0) { - var v295,v296,v297,v298,v299,v300,v301,iter_1,index_3,l_4,v302,v303,v304,v305,v306,v307,v308,etype_2,evalue_2; +function ll_str__StringR_StringConst_String (s_1) { + var v198; var block = 0; for(;;){ switch(block){ case 0: - v296 = iter_0.iterable; - v297 = iter_0.index; - v298 = v296; - v299 = v298.length; - v300 = (v297>=v299); - v301 = v300; - if (v301 == true) + v198 = s_1; + block = 1; + break; + case 1: + return ( v198 ); + } + } +} + +function create_text_elem (txt_0) { + var v166,v167,v168; + var block = 0; + for(;;){ + switch(block){ + case 0: + v167 = __consts_0.Document; + v168 = v167.createTextNode(txt_0); + v166 = v168; + block = 1; + break; + case 1: + return ( v166 ); + } + } +} + +function reshow_host () { + var v170,v171,v172,v173; + var block = 0; + for(;;){ + switch(block){ + case 0: + v170 = __consts_0.py____test_rsession_webjs_Globals.ohost; + v171 = ll_streq__String_String ( v170,__consts_0.const_str__10 ); + v172 = v171; + if (v172 == false) { - block = 3; - break; - } - else{ - iter_1 = iter_0; - index_3 = v297; - l_4 = v296; block = 1; break; } + block = 2; + break; case 1: - v302 = (index_3+1); - iter_1.index = v302; - v304 = l_4; - v305 = v304[index_3]; - v295 = v305; + v173 = __consts_0.py____test_rsession_webjs_Globals.ohost; + show_host ( v173 ); block = 2; break; case 2: - return ( v295 ); - case 3: - v306 = __consts_0.exceptions_StopIteration; - v307 = v306.meta; - v308 = v306; - etype_2 = v307; - evalue_2 = v308; - block = 4; + return ( undefined ); + } + } +} + +function opt_scroll () { + var v124,v125; + var block = 0; + for(;;){ + switch(block){ + case 0: + v124 = __consts_0.py____test_rsession_webjs_Options.oscroll; + v125 = v124; + if (v125 == false) + { + block = 1; + break; + } + block = 3; break; - case 4: - throw(evalue_2); + case 1: + __consts_0.py____test_rsession_webjs_Options.oscroll = true; + block = 2; + break; + case 3: + __consts_0.py____test_rsession_webjs_Options.oscroll = false; + block = 2; + break; + case 2: + return ( undefined ); + } + } +} + +function ll_listiter__Record_index__Signed__iterable_List_String_ (lst_0) { + var v148,v149; + var block = 0; + for(;;){ + switch(block){ + case 0: + v149 = new Object(); + v149.iterable = lst_0; + v149.index = 0; + v148 = v149; + block = 1; + break; + case 1: + return ( v148 ); + } + } +} + +function hide_info () { + var v65,v66,v67; + var block = 0; + for(;;){ + switch(block){ + case 0: + v65 = __consts_0.Document; + v66 = v65.getElementById(__consts_0.const_str__17); + v67 = v66.style; + v67.visibility = __consts_0.const_str__9; + block = 1; + break; + case 1: + return ( undefined ); + } + } +} + +function ll_list_is_true__List_ExternalType_ (l_0) { + var v128,v129,v130,v131,v132,v133,v134; + var block = 0; + for(;;){ + switch(block){ + case 0: + v129 = !!l_0; + v130 = v129; + v128 = v129; + if (v130 == false) + { + block = 1; + break; + } + v131 = l_0; + block = 2; + break; + case 2: + v132 = v131; + v133 = v132.length; + v134 = (v133!=0); + v128 = v134; + block = 1; + break; + case 1: + return ( v128 ); + } + } +} + +function create_elem (s_0) { + var v135,v136,v137; + var block = 0; + for(;;){ + switch(block){ + case 0: + v136 = __consts_0.Document; + v137 = v136.createElement(s_0); + v135 = v137; + block = 1; + break; + case 1: + return ( v135 ); } } } @@ -1446,117 +831,810 @@ exceptions_StopIteration.prototype.toString = function (){ } inherits(exceptions_StopIteration,exceptions_Exception); +function show_info (data_0) { + var v47,v48,v49,data_1,info_0,v51,v52,v53,info_1,v54,v55,v56,v58,data_2,info_2,v60,v61,v62; + var block = 0; + for(;;){ + switch(block){ + case 0: + v47 = __consts_0.Document; + v48 = v47.getElementById(__consts_0.const_str__17); + v49 = v48.style; + v49.visibility = __consts_0.const_str__7; + data_1 = data_0; + info_0 = v48; + block = 1; + break; + case 1: + v51 = info_0.childNodes; + v52 = ll_len__List_ExternalType_ ( v51 ); + v53 = !!v52; + info_1 = info_0; + v54 = data_1; + if (v53 == false) + { + block = 2; + break; + } + data_2 = data_1; + info_2 = info_0; + block = 4; + break; + case 2: + v55 = create_text_elem ( v54 ); + v56 = info_1; + v56.appendChild(v55); + v58 = info_1.style; + v58.backgroundColor = __consts_0.const_str__18; + block = 3; + break; + case 4: + v60 = info_2; + v61 = info_2.childNodes; + v62 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalType__Signed ( v61,0 ); + v60.removeChild(v62); + data_1 = data_2; + info_0 = info_2; + block = 1; + break; + case 3: + return ( undefined ); + } + } +} + +function set_msgbox (item_name_2,data_3) { + var v200,item_name_3,data_4,msgbox_0,v201,v202,v203,item_name_4,data_5,msgbox_1,v204,v205,v206,v207,v208,v210,v212,v213,item_name_5,data_6,msgbox_2,v216,v217,v218; + var block = 0; + for(;;){ + switch(block){ + case 0: + v200 = get_elem ( __consts_0.const_str__19 ); + item_name_3 = item_name_2; + data_4 = data_3; + msgbox_0 = v200; + block = 1; + break; + case 1: + v201 = msgbox_0.childNodes; + v202 = ll_len__List_ExternalType_ ( v201 ); + v203 = !!v202; + item_name_4 = item_name_3; + data_5 = data_4; + msgbox_1 = msgbox_0; + if (v203 == false) + { + block = 2; + break; + } + item_name_5 = item_name_3; + data_6 = data_4; + msgbox_2 = msgbox_0; + block = 4; + break; + case 2: + v204 = create_elem ( __consts_0.const_str__20 ); + v205 = ll_strconcat__String_String ( item_name_4,__consts_0.const_str__15 ); + v206 = ll_strconcat__String_String ( v205,data_5 ); + v207 = create_text_elem ( v206 ); + v208 = v204; + v208.appendChild(v207); + v210 = msgbox_1; + v210.appendChild(v204); + v212 = __consts_0.Window.location; + v213 = v212; + v213.assign(__consts_0.const_str__22); + __consts_0.py____test_rsession_webjs_Globals.odata_empty = false; + block = 3; + break; + case 4: + v216 = msgbox_2; + v217 = msgbox_2.childNodes; + v218 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalType__Signed ( v217,0 ); + v216.removeChild(v218); + item_name_3 = item_name_5; + data_4 = data_6; + msgbox_0 = msgbox_2; + block = 1; + break; + case 3: + return ( undefined ); + } + } +} + +function ll_strconcat__String_String (obj_0,arg0_0) { + var v233,v234,v235; + var block = 0; + for(;;){ + switch(block){ + case 0: + v234 = obj_0; + v235 = (v234+arg0_0); + v233 = v235; + block = 1; + break; + case 1: + return ( v233 ); + } + } +} + +function ll_len__List_ExternalType_ (l_4) { + var v185,v186,v187; + var block = 0; + for(;;){ + switch(block){ + case 0: + v186 = l_4; + v187 = v186.length; + v185 = v187; + block = 1; + break; + case 1: + return ( v185 ); + } + } +} + +function show_skip (item_name_0) { + var v26; + var block = 0; + for(;;){ + switch(block){ + case 0: + v26 = ll_dict_getitem__Dict_String__String__String ( __consts_0.const_tuple__23,item_name_0 ); + set_msgbox ( item_name_0,v26 ); + block = 1; + break; + case 1: + return ( undefined ); + } + } +} + +function py____test_rsession_webjs_Globals () { + this.odata_empty = false; + this.osessid = __consts_0.const_str__10; + this.ohost = __consts_0.const_str__10; + 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 hide_messagebox () { - var v114,v115,v116,mbox_0,v117,v118,mbox_1,v119,v120,v121,v122; + var v115,v116,mbox_0,v117,v118,mbox_1,v119,v120,v121; var block = 0; for(;;){ switch(block){ case 0: v115 = __consts_0.Document; - v116 = v115.getElementById(__consts_0.const_str__39); + v116 = v115.getElementById(__consts_0.const_str__19); mbox_0 = v116; block = 1; break; case 1: v117 = mbox_0.childNodes; v118 = ll_list_is_true__List_ExternalType_ ( v117 ); - if (v118 == true) + if (v118 == false) { - mbox_1 = mbox_0; - block = 3; - break; - } - else{ block = 2; break; } - case 2: - return ( v114 ); + mbox_1 = mbox_0; + block = 3; + break; case 3: v119 = mbox_1; v120 = mbox_1.childNodes; - v121 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v120,0 ); + v121 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalType__Signed ( v120,0 ); v119.removeChild(v121); mbox_0 = mbox_1; block = 1; break; + case 2: + return ( undefined ); + } + } +} + +function ll_dict_getitem__Dict_String__Record_item2__Str_String (d_1,key_2) { + var v188,v189,v190,v191,v192,v193,v194,etype_2,evalue_2,key_3,v195,v196,v197; + var block = 0; + for(;;){ + switch(block){ + case 0: + v189 = d_1; + v190 = (v189[key_2]!=undefined); + v191 = v190; + if (v191 == false) + { + block = 1; + break; + } + key_3 = key_2; + v195 = d_1; + block = 3; + break; + case 1: + v192 = __consts_0.exceptions_KeyError; + v193 = v192.meta; + v194 = v192; + etype_2 = v193; + evalue_2 = v194; + block = 2; + break; + case 3: + v196 = v195; + v197 = v196[key_3]; + v188 = v197; + block = 4; + break; + case 2: + throw(evalue_2); + case 4: + return ( v188 ); + } + } +} + +function exceptions_KeyError () { +} + +exceptions_KeyError.prototype.toString = function (){ + return ( '' ); +} + +inherits(exceptions_KeyError,exceptions_LookupError); +function ll_listnext__Record_index__Signed__iterable (iter_0) { + var v152,v153,v154,v155,v156,v157,v158,iter_1,index_0,l_1,v159,v161,v162,v163,v164,v165,etype_1,evalue_1; + var block = 0; + for(;;){ + switch(block){ + case 0: + v153 = iter_0.iterable; + v154 = iter_0.index; + v155 = v153; + v156 = v155.length; + v157 = (v154>=v156); + v158 = v157; + iter_1 = iter_0; + index_0 = v154; + l_1 = v153; + if (v158 == false) + { + block = 1; + break; + } + block = 3; + break; + case 1: + v159 = (index_0+1); + iter_1.index = v159; + v161 = l_1; + v162 = v161[index_0]; + v152 = v162; + block = 2; + break; + case 3: + v163 = __consts_0.exceptions_StopIteration; + v164 = v163.meta; + v165 = v163; + etype_1 = v164; + evalue_1 = v165; + block = 4; + break; + case 4: + throw(evalue_1); + case 2: + return ( v152 ); + } + } +} + +function main () { + var v16,v17,v18,v19,v21,v22,v23; + var block = 0; + for(;;){ + switch(block){ + case 0: + __consts_0.py____test_rsession_webjs_Globals.ofinished = false; + v16 = __consts_0.ExportedMethods; + v17 = v16.show_hosts(host_init); + v18 = __consts_0.ExportedMethods; + v19 = v18.show_sessid(sessid_comeback); + __consts_0.Document.onkeypress = key_pressed; + v21 = __consts_0.Document; + v22 = v21.getElementById(__consts_0.const_str__29); + v23 = v22; + v23.setAttribute(__consts_0.const_str__30,__consts_0.const_str__31); + block = 1; + break; + case 1: + return ( undefined ); } } } function ll_streq__String_String (s1_0,s2_0) { - var v315,v316,v317,v318,s2_1,v319,v320,v321,v322,v323,v324; + var v220,v221,v222,v223,s2_1,v224,v225,v226,v227,v228,v229; var block = 0; for(;;){ switch(block){ case 0: - v316 = !!s1_0; - v317 = !v316; - v318 = v317; - if (v318 == true) + v221 = !!s1_0; + v222 = !v221; + v223 = v222; + s2_1 = s2_0; + v224 = s1_0; + if (v223 == false) { - v322 = s2_0; - block = 3; - break; - } - else{ - s2_1 = s2_0; - v319 = s1_0; block = 1; break; } + v227 = s2_0; + block = 3; + break; case 1: - v320 = v319; - v321 = (v320==s2_1); - v315 = v321; + v225 = v224; + v226 = (v225==s2_1); + v220 = v226; + block = 2; + break; + case 3: + v228 = !!v227; + v229 = !v228; + v220 = v229; block = 2; break; case 2: - return ( v315 ); + return ( v220 ); + } + } +} + +function host_init (host_dict_0) { + var v247,v248,v249,v250,v251,host_dict_1,tbody_3,v252,v253,last_exc_value_1,host_dict_2,tbody_4,host_0,v254,v255,v256,v258,v259,v261,v262,v263,v266,v268,v269,v271,v274,v276,host_dict_3,v282,v284,v285,v286,v287,v288,last_exc_value_2,key_6,v289,v290,v292; + var block = 0; + for(;;){ + switch(block){ + case 0: + v247 = __consts_0.Document; + v248 = v247.getElementById(__consts_0.const_str__32); + v249 = host_dict_0; + v250 = ll_dict_kvi__Dict_String__String__List_String_LlT_dum_keysConst ( v249 ); + v251 = ll_listiter__Record_index__Signed__iterable_List_String_ ( v250 ); + host_dict_1 = host_dict_0; + tbody_3 = v248; + v252 = v251; + block = 1; + break; + case 1: + try { + v253 = ll_listnext__Record_index__Signed__iterable ( v252 ); + host_dict_2 = host_dict_1; + tbody_4 = tbody_3; + host_0 = v253; + v254 = v252; + block = 2; + break; + } + catch (exc){ + if (isinstanceof(exc, exceptions_StopIteration)) + { + host_dict_3 = host_dict_1; + block = 3; + break; + } + throw(exc); + } + case 2: + v255 = create_elem ( __consts_0.const_str__5 ); + v256 = tbody_4; + v256.appendChild(v255); + v258 = create_elem ( __consts_0.const_str__6 ); + v259 = v258.style; + v259.background = __consts_0.const_str__33; + v261 = ll_dict_getitem__Dict_String__String__String ( host_dict_2,host_0 ); + v262 = create_text_elem ( v261 ); + v263 = v258; + v263.appendChild(v262); + v258.id = host_0; + v266 = v255; + v266.appendChild(v258); + v268 = v258; + v269 = new StringBuilder(); + v269.ll_append(__consts_0.const_str__34); + v271 = ll_str__StringR_StringConst_String ( host_0 ); + v269.ll_append(v271); + v269.ll_append(__consts_0.const_str__35); + v274 = v269.ll_build(); + v268.setAttribute(__consts_0.const_str__36,v274); + v276 = v258; + v276.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; + v252 = v254; + block = 1; + break; case 3: - v323 = !!v322; - v324 = !v323; - v315 = v324; + __consts_0.py____test_rsession_webjs_Globals.ohost_dict = host_dict_3; + v282 = ll_newdict__Dict_String__List_String__LlT ( ); + __consts_0.py____test_rsession_webjs_Globals.ohost_pending = v282; + v284 = host_dict_3; + v285 = ll_dict_kvi__Dict_String__String__List_String_LlT_dum_keysConst ( v284 ); + v286 = ll_listiter__Record_index__Signed__iterable_List_String_ ( v285 ); + v287 = v286; + block = 4; + break; + case 4: + try { + v288 = ll_listnext__Record_index__Signed__iterable ( v287 ); + key_6 = v288; + v289 = v287; + block = 5; + break; + } + catch (exc){ + if (isinstanceof(exc, exceptions_StopIteration)) + { + block = 6; + break; + } + throw(exc); + } + case 5: + v290 = new Array(); + v290.length = 0; + v292 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; + v292[key_6]=v290; + v287 = v289; + block = 4; + break; + case 6: + return ( undefined ); + } + } +} + +function get_elem (el_0) { + var v230,v231,v232; + var block = 0; + for(;;){ + switch(block){ + case 0: + v231 = __consts_0.Document; + v232 = v231.getElementById(el_0); + v230 = v232; + block = 1; + break; + case 1: + return ( v230 ); + } + } +} + +function py____test_rsession_webjs_Options () { + this.oscroll = false; +} + +py____test_rsession_webjs_Options.prototype.toString = function (){ + return ( '' ); +} + +inherits(py____test_rsession_webjs_Options,Object); +function ll_dict_getitem__Dict_String__String__String (d_2,key_4) { + var v236,v237,v238,v239,v240,v241,v242,etype_3,evalue_3,key_5,v243,v244,v245; + var block = 0; + for(;;){ + switch(block){ + case 0: + v237 = d_2; + v238 = (v237[key_4]!=undefined); + v239 = v238; + if (v239 == false) + { + block = 1; + break; + } + key_5 = key_4; + v243 = d_2; + block = 3; + break; + case 1: + v240 = __consts_0.exceptions_KeyError; + v241 = v240.meta; + v242 = v240; + etype_3 = v241; + evalue_3 = v242; block = 2; break; + case 3: + v244 = v243; + v245 = v244[key_5]; + v236 = v245; + block = 4; + break; + case 2: + throw(evalue_3); + case 4: + return ( v236 ); + } + } +} + +function key_pressed (key_7) { + var v299,v300,v301,v302,v303,v304,v305,v306,v307,v310,v311; + var block = 0; + for(;;){ + switch(block){ + case 0: + v299 = key_7.charCode; + v300 = (v299==115); + v301 = v300; + if (v301 == false) + { + block = 1; + break; + } + block = 2; + break; + case 2: + v302 = __consts_0.Document; + v303 = v302.getElementById(__consts_0.const_str__29); + v304 = __consts_0.py____test_rsession_webjs_Options.oscroll; + v305 = v304; + v306 = v303; + if (v305 == false) + { + block = 3; + break; + } + v310 = v303; + block = 4; + break; + case 3: + v307 = v306; + v307.setAttribute(__consts_0.const_str__30,__consts_0.const_str__39); + __consts_0.py____test_rsession_webjs_Options.oscroll = true; + block = 1; + break; + case 4: + v311 = v310; + v311.removeAttribute(__consts_0.const_str__30); + __consts_0.py____test_rsession_webjs_Options.oscroll = false; + block = 1; + break; + case 1: + return ( undefined ); + } + } +} + +function update_rsync () { + var v337,v338,v339,v340,v341,v342,v343,v344,elem_7,v345,v346,v347,v348,v349,v351,v352,v353,elem_8,v354,v355,v357,v360,v361,v362,text_0,elem_9,v366,v367,v368; + var block = 0; + for(;;){ + switch(block){ + case 0: + v337 = __consts_0.py____test_rsession_webjs_Globals.ofinished; + v338 = v337; + if (v338 == false) + { + block = 1; + break; + } + block = 4; + break; + case 1: + v339 = __consts_0.Document; + v340 = v339.getElementById(__consts_0.const_str__40); + v341 = __consts_0.py____test_rsession_webjs_Globals.orsync_done; + v342 = v341; + v343 = (v342==1); + v344 = v343; + elem_7 = v340; + if (v344 == false) + { + block = 2; + break; + } + v366 = v340; + block = 6; + break; + case 2: + v345 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots; + v346 = ll_char_mul__Char_Signed ( '.',v345 ); + v347 = ll_strconcat__String_String ( __consts_0.const_str__41,v346 ); + v348 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots; + v349 = (v348+1); + __consts_0.py____test_rsession_webjs_Globals.orsync_dots = v349; + v351 = __consts_0.py____test_rsession_webjs_Globals.orsync_dots; + v352 = (v351>5); + v353 = v352; + elem_8 = elem_7; + v354 = v347; + if (v353 == false) + { + block = 3; + break; + } + text_0 = v347; + elem_9 = elem_7; + block = 5; + break; + case 3: + v355 = new StringBuilder(); + v355.ll_append(__consts_0.const_str__42); + v357 = ll_str__StringR_StringConst_String ( v354 ); + v355.ll_append(v357); + v355.ll_append(__consts_0.const_str__43); + v360 = v355.ll_build(); + v361 = elem_8.childNodes; + v362 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalType__Signed ( v361,0 ); + v362.nodeValue = v360; + setTimeout ( 'update_rsync()',1000 ); + block = 4; + break; + case 5: + __consts_0.py____test_rsession_webjs_Globals.orsync_dots = 0; + elem_8 = elem_9; + v354 = text_0; + block = 3; + break; + case 6: + v367 = v366.childNodes; + v368 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalType__Signed ( v367,0 ); + v368.nodeValue = __consts_0.const_str__40; + block = 4; + break; + case 4: + return ( undefined ); + } + } +} + +function sessid_comeback (id_0) { + var v296,v297; + var block = 0; + for(;;){ + switch(block){ + case 0: + __consts_0.py____test_rsession_webjs_Globals.osessid = id_0; + v296 = __consts_0.ExportedMethods; + v297 = v296.show_all_statuses(id_0,comeback); + block = 1; + break; + case 1: + return ( undefined ); + } + } +} + +function ll_dict_kvi__Dict_String__String__List_String_LlT_dum_keysConst (d_3) { + var v314,v315,v316,v317,v318,v319,i_0,it_0,length_0,result_0,v320,v321,v322,result_1,v323,v324,v325,v326,v327,v328,v329,etype_4,evalue_4,i_1,it_1,length_1,result_2,v330,v331,v332,it_2,length_2,result_3,v334,v335; + var block = 0; + for(;;){ + switch(block){ + case 0: + v315 = d_3; + v316 = get_dict_len ( v315 ); + v317 = ll_newlist__List_String_LlT_Signed ( v316 ); + v318 = d_3; + v319 = dict_items_iterator ( v318 ); + i_0 = 0; + it_0 = v319; + length_0 = v316; + result_0 = v317; + block = 1; + break; + case 1: + v320 = it_0; + v321 = v320.ll_go_next(); + v322 = v321; + result_1 = result_0; + v323 = i_0; + v324 = length_0; + if (v322 == false) + { + block = 2; + break; + } + i_1 = i_0; + it_1 = it_0; + length_1 = length_0; + result_2 = result_0; + block = 6; + break; + case 2: + v325 = (v323==v324); + v326 = v325; + if (v326 == false) + { + block = 3; + break; + } + v314 = result_1; + block = 5; + break; + case 3: + v327 = __consts_0.py____magic_assertion_AssertionError; + v328 = v327.meta; + v329 = v327; + etype_4 = v328; + evalue_4 = v329; + block = 4; + break; + case 6: + v330 = result_2; + v331 = it_1; + v332 = v331.ll_current_key(); + v330[i_1]=v332; + it_2 = it_1; + length_2 = length_1; + result_3 = result_2; + v334 = i_1; + block = 7; + break; + case 7: + v335 = (v334+1); + i_0 = v335; + it_0 = it_2; + length_0 = length_2; + result_0 = result_3; + block = 1; + break; + case 4: + throw(evalue_4); + case 5: + return ( v314 ); } } } function comeback (msglist_0) { - var v196,v197,v198,v199,msglist_1,v200,v201,v202,v203,msglist_2,v204,v205,last_exc_value_3,msglist_3,v206,v207,v208,v209,msglist_4,v210,v211,v212,v213,v214,v215,last_exc_value_4,v216,v217,v218,v219,v220,v221,v222; + var v385,v386,v387,msglist_1,v388,v389,v390,v391,msglist_2,v392,v393,last_exc_value_3,msglist_3,v394,v395,v396,v397,msglist_4,v398,v401,v402,v403,last_exc_value_4,v404,v405,v406,v407,v408,v409,v410; var block = 0; for(;;){ switch(block){ case 0: - v197 = ll_len__List_Dict_String__String__ ( msglist_0 ); - v198 = (v197==0); - v199 = v198; - if (v199 == true) + v385 = ll_len__List_Dict_String__String__ ( msglist_0 ); + v386 = (v385==0); + v387 = v386; + msglist_1 = msglist_0; + if (v387 == false) { - block = 4; - break; - } - else{ - msglist_1 = msglist_0; block = 1; break; } + block = 4; + break; case 1: - v200 = __consts_0.py____test_rsession_webjs_Globals.opending; - v201 = 0; - v202 = ll_listslice_startonly__List_Dict_String__String__ ( undefined,v200,v201 ); - v203 = ll_listiter__Record_index__Signed__iterable_List_D ( undefined,v202 ); + v388 = __consts_0.py____test_rsession_webjs_Globals.opending; + v389 = 0; + v390 = ll_listslice_startonly__List_Dict_String__String__LlT_List_Dict_String__String___Signed ( v388,v389 ); + v391 = ll_listiter__Record_index__Signed__iterable_List_Dict_String__String__ ( v390 ); msglist_2 = msglist_1; - v204 = v203; + v392 = v391; block = 2; break; case 2: try { - v205 = ll_listnext__Record_index__Signed__iterable_0 ( v204 ); + v393 = ll_listnext__Record_index__Signed__iterable_0 ( v392 ); msglist_3 = msglist_2; - v206 = v204; - v207 = v205; + v394 = v392; + v395 = v393; block = 3; break; } @@ -1570,34 +1648,30 @@ function comeback (msglist_0) { throw(exc); } case 3: - v208 = process ( v207 ); - v209 = v208; - if (v209 == true) + v396 = process ( v395 ); + v397 = v396; + if (v397 == false) { - msglist_2 = msglist_3; - v204 = v206; - block = 2; - break; - } - else{ block = 4; break; } - case 4: - return ( v196 ); + msglist_2 = msglist_3; + v392 = v394; + block = 2; + break; case 5: - v210 = new Array(); - v210.length = 0; - __consts_0.py____test_rsession_webjs_Globals.opending = v210; - v213 = ll_listiter__Record_index__Signed__iterable_List_D ( undefined,msglist_4 ); - v214 = v213; + v398 = new Array(); + v398.length = 0; + __consts_0.py____test_rsession_webjs_Globals.opending = v398; + v401 = ll_listiter__Record_index__Signed__iterable_List_Dict_String__String__ ( msglist_4 ); + v402 = v401; block = 6; break; case 6: try { - v215 = ll_listnext__Record_index__Signed__iterable_0 ( v214 ); - v216 = v214; - v217 = v215; + v403 = ll_listnext__Record_index__Signed__iterable_0 ( v402 ); + v404 = v402; + v405 = v403; block = 7; break; } @@ -1610,481 +1684,293 @@ function comeback (msglist_0) { throw(exc); } case 7: - v218 = process ( v217 ); - v219 = v218; - if (v219 == true) + v406 = process ( v405 ); + v407 = v406; + if (v407 == false) { - v214 = v216; - block = 6; - break; - } - else{ block = 4; break; } + v402 = v404; + block = 6; + break; case 8: - v220 = __consts_0.ExportedMethods; - v221 = __consts_0.py____test_rsession_webjs_Globals.osessid; - v222 = v220.show_all_statuses(v221,comeback); - block = 4; - break; - } - } -} - -function ll_dict_kvi__Dict_String__String__List_String_LlT_ (d_2,LIST_0,func_1) { - var v325,v326,v327,v328,v329,v330,i_0,it_0,result_0,v331,v332,v333,i_1,it_1,result_1,v334,v335,v336,v337,it_2,result_2,v338,v339; - var block = 0; - for(;;){ - switch(block){ - case 0: - v326 = d_2; - v327 = get_dict_len ( v326 ); - v328 = ll_newlist__List_String_LlT_Signed ( undefined,v327 ); - v329 = d_2; - v330 = dict_items_iterator ( v329 ); - i_0 = 0; - it_0 = v330; - result_0 = v328; - block = 1; - break; - case 1: - v331 = it_0; - v332 = v331.ll_go_next(); - v333 = v332; - if (v333 == true) - { - i_1 = i_0; - it_1 = it_0; - result_1 = result_0; - block = 3; - break; - } - else{ - v325 = result_0; - block = 2; - break; - } - case 2: - return ( v325 ); - case 3: - v334 = result_1; - v335 = it_1; - v336 = v335.ll_current_key(); - v334[i_1]=v336; - it_2 = it_1; - result_2 = result_1; - v338 = i_1; + v408 = __consts_0.ExportedMethods; + v409 = __consts_0.py____test_rsession_webjs_Globals.osessid; + v410 = v408.show_all_statuses(v409,comeback); block = 4; break; case 4: - v339 = (v338+1); - i_0 = v339; - it_0 = it_2; - result_0 = result_2; - block = 1; - break; + return ( undefined ); } } } -function exceptions_KeyError () { -} - -exceptions_KeyError.prototype.toString = function (){ - return ( '' ); -} - -inherits(exceptions_KeyError,exceptions_LookupError); -function py____test_rsession_webjs_Options () { - this.oscroll = false; -} - -py____test_rsession_webjs_Options.prototype.toString = function (){ - return ( '' ); -} - -inherits(py____test_rsession_webjs_Options,Object); -function ll_listnext__Record_index__Signed__iterable_0 (iter_2) { - var v429,v430,v431,v432,v433,v434,v435,iter_3,index_4,l_8,v436,v437,v438,v439,v440,v441,v442,etype_4,evalue_4; +function ll_newdict__Dict_String__List_String__LlT () { + var v370,v371; var block = 0; for(;;){ switch(block){ case 0: - v430 = iter_2.iterable; - v431 = iter_2.index; - v432 = v430; - v433 = v432.length; - v434 = (v431>=v433); - v435 = v434; - if (v435 == true) + v371 = new Object(); + v370 = v371; + block = 1; + break; + case 1: + return ( v370 ); + } + } +} + +function ll_newlist__List_String_LlT_Signed (length_3) { + var v411,v412,v413; + var block = 0; + for(;;){ + switch(block){ + case 0: + v412 = new Array(); + v413 = v412; + v413.length = length_3; + v411 = v412; + block = 1; + break; + case 1: + return ( v411 ); + } + } +} + +function ll_listslice_startonly__List_Dict_String__String__LlT_List_Dict_String__String___Signed (l1_0,start_0) { + var v418,v419,v420,v421,v423,v425,v427,l1_1,i_4,j_0,l_6,len1_0,v428,v429,l1_2,i_5,j_1,l_7,len1_1,v430,v431,v432,v434,v435; + var block = 0; + for(;;){ + switch(block){ + case 0: + v419 = l1_0; + v420 = v419.length; + v421 = (start_0>=0); + undefined; + v423 = (start_0<=v420); + undefined; + v425 = (v420-start_0); + undefined; + v427 = ll_newlist__List_Dict_String__String__LlT_Signed ( v425 ); + l1_1 = l1_0; + i_4 = start_0; + j_0 = 0; + l_6 = v427; + len1_0 = v420; + block = 1; + break; + case 1: + v428 = (i_4' ); } +inherits(exceptions_AssertionError,exceptions_StandardError); function process (msg_0) { - var v443,v444,v445,v446,msg_1,v447,v448,v449,v450,v451,v452,v453,msg_2,v454,v455,v456,msg_3,v457,v458,v459,msg_4,v460,v461,v462,msg_5,v463,v464,v465,msg_6,v466,v467,v468,msg_7,v469,v470,v471,msg_8,v472,v473,v474,msg_9,v475,v476,v477,v478,v479,v480,v481,v482,v483,v484,v485,v486,v487,v488,v489,msg_10,v490,v491,v492,msg_11,v493,v494,v495,msg_12,module_part_0,v496,v497,v498,v499,v500,v501,v502,v503,v504,v505,v506,v507,v508,v509,v510,v511,v512,v513,v514,msg_13,v515,v516,v517,msg_14,v518,v519,v520,module_part_1,v521,v522,v523,v524,v525,v526,v527,v528,v529,msg_15,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,v556,v557,v558,v559,v560,v561,v562,v563,v564,v565,v566,v567,v568,v569,msg_16,v570,v571,v572,msg_17,v573,v574,v575,v576,v577,v578,msg_18,v579,v580,v581,v582,v583,v584,v585,v586,v587,v588,v589,v590,v591,v592,v593,v594,v595,v596,v597,msg_19,v598,v599,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,main_t_0,v630,v631,v632,v633; + var v454,v455,v456,v457,msg_1,v458,v459,v460,v461,v462,v463,v464,msg_2,v465,v466,v467,msg_3,v468,v469,v470,msg_4,v471,v472,v473,msg_5,v474,v475,v476,msg_6,v477,v478,v479,msg_7,v480,v481,v482,msg_8,v483,v484,v485,msg_9,v486,v487,v488,v489,v490,v491,v492,v493,v494,v495,v496,msg_10,v501,v502,v503,msg_11,v504,v505,msg_12,module_part_0,v507,v508,v509,v510,v512,v513,v515,v518,v519,v520,v522,v524,msg_13,v526,v527,v528,msg_14,v529,v530,msg_15,module_part_1,v532,v533,v534,v535,v536,v537,v539,v540,v542,v545,v547,v548,v550,v552,v554,v556,v557,v558,msg_16,v559,v560,v561,v562,v566,v567,v568,v569,v571,v574,v577,v580,v582,v584,v586,v588,v590,v593,v594,v595,v596,v597,msg_17,v599,v600,v601,msg_18,v602,v603,v605,v606,msg_19,v608,v609,v610,v611,v613,v614,v615,v616,v618,v619,v620,v623,v624,v625,msg_20,v627,v628,v629,v630,v631,v632,v633,v634,v636,v637,v638,v639,v640,v641,v642,v643,v646,v647,v648,v649,v652,v655,v656,v657,main_t_0,v659,v660,v661; var block = 0; for(;;){ switch(block){ case 0: - v444 = get_dict_len ( msg_0 ); - v445 = (v444==0); - v446 = v445; - if (v446 == true) + v455 = get_dict_len ( msg_0 ); + v456 = (v455==0); + v457 = v456; + msg_1 = msg_0; + if (v457 == false) { - v443 = false; - block = 12; - break; - } - else{ - msg_1 = msg_0; block = 1; break; } + v454 = false; + block = 12; + break; case 1: - v447 = __consts_0.Document; - v448 = v447.getElementById(__consts_0.const_str__44); - v449 = __consts_0.Document; - v450 = v449.getElementById(__consts_0.const_str__45); - v451 = ll_dict_getitem__Dict_String__String__String ( msg_1,__consts_0.const_str__46 ); - v452 = ll_streq__String_String ( v451,__consts_0.const_str__47 ); - v453 = v452; - if (v453 == true) + v458 = __consts_0.Document; + v459 = v458.getElementById(__consts_0.const_str__45); + v460 = __consts_0.Document; + v461 = v460.getElementById(__consts_0.const_str__46); + v462 = ll_dict_getitem__Dict_String__String__String ( msg_1,__consts_0.const_str__47 ); + v463 = ll_streq__String_String ( v462,__consts_0.const_str__48 ); + v464 = v463; + msg_2 = msg_1; + if (v464 == false) { - main_t_0 = v450; - v630 = msg_1; - block = 29; - break; - } - else{ - msg_2 = msg_1; block = 2; break; } + main_t_0 = v461; + v659 = msg_1; + block = 29; + break; case 2: - v454 = ll_dict_getitem__Dict_String__String__String ( msg_2,__consts_0.const_str__46 ); - v455 = ll_streq__String_String ( v454,__consts_0.const_str__48 ); - v456 = v455; - if (v456 == true) + v465 = ll_dict_getitem__Dict_String__String__String ( msg_2,__consts_0.const_str__47 ); + v466 = ll_streq__String_String ( v465,__consts_0.const_str__49 ); + v467 = v466; + msg_3 = msg_2; + if (v467 == false) { - msg_19 = msg_2; - block = 28; - break; - } - else{ - msg_3 = msg_2; block = 3; break; } + msg_20 = msg_2; + block = 28; + break; case 3: - v457 = ll_dict_getitem__Dict_String__String__String ( msg_3,__consts_0.const_str__46 ); - v458 = ll_streq__String_String ( v457,__consts_0.const_str__49 ); - v459 = v458; - if (v459 == true) + v468 = ll_dict_getitem__Dict_String__String__String ( msg_3,__consts_0.const_str__47 ); + v469 = ll_streq__String_String ( v468,__consts_0.const_str__50 ); + v470 = v469; + msg_4 = msg_3; + if (v470 == false) { - msg_18 = msg_3; - block = 27; - break; - } - else{ - msg_4 = msg_3; block = 4; break; } + msg_19 = msg_3; + block = 27; + break; case 4: - v460 = ll_dict_getitem__Dict_String__String__String ( msg_4,__consts_0.const_str__46 ); - v461 = ll_streq__String_String ( v460,__consts_0.const_str__50 ); - v462 = v461; - if (v462 == true) + v471 = ll_dict_getitem__Dict_String__String__String ( msg_4,__consts_0.const_str__47 ); + v472 = ll_streq__String_String ( v471,__consts_0.const_str__51 ); + v473 = v472; + msg_5 = msg_4; + if (v473 == false) { - msg_16 = msg_4; - block = 24; - break; - } - else{ - msg_5 = msg_4; block = 5; break; } + msg_17 = msg_4; + block = 24; + break; case 5: - v463 = ll_dict_getitem__Dict_String__String__String ( msg_5,__consts_0.const_str__46 ); - v464 = ll_streq__String_String ( v463,__consts_0.const_str__51 ); - v465 = v464; - if (v465 == true) + v474 = ll_dict_getitem__Dict_String__String__String ( msg_5,__consts_0.const_str__47 ); + v475 = ll_streq__String_String ( v474,__consts_0.const_str__52 ); + v476 = v475; + msg_6 = msg_5; + if (v476 == false) { - msg_15 = msg_5; - block = 23; - break; - } - else{ - msg_6 = msg_5; block = 6; break; } + msg_16 = msg_5; + block = 23; + break; case 6: - v466 = ll_dict_getitem__Dict_String__String__String ( msg_6,__consts_0.const_str__46 ); - v467 = ll_streq__String_String ( v466,__consts_0.const_str__52 ); - v468 = v467; - if (v468 == true) + v477 = ll_dict_getitem__Dict_String__String__String ( msg_6,__consts_0.const_str__47 ); + v478 = ll_streq__String_String ( v477,__consts_0.const_str__53 ); + v479 = v478; + msg_7 = msg_6; + if (v479 == false) { - msg_13 = msg_6; - block = 20; - break; - } - else{ - msg_7 = msg_6; block = 7; break; } + msg_13 = msg_6; + block = 20; + break; case 7: - v469 = ll_dict_getitem__Dict_String__String__String ( msg_7,__consts_0.const_str__46 ); - v470 = ll_streq__String_String ( v469,__consts_0.const_str__53 ); - v471 = v470; - if (v471 == true) + v480 = ll_dict_getitem__Dict_String__String__String ( msg_7,__consts_0.const_str__47 ); + v481 = ll_streq__String_String ( v480,__consts_0.const_str__54 ); + v482 = v481; + msg_8 = msg_7; + if (v482 == false) { - msg_10 = msg_7; - block = 17; - break; - } - else{ - msg_8 = msg_7; block = 8; break; } + msg_10 = msg_7; + block = 17; + break; case 8: - v472 = ll_dict_getitem__Dict_String__String__String ( msg_8,__consts_0.const_str__46 ); - v473 = ll_streq__String_String ( v472,__consts_0.const_str__54 ); - v474 = v473; - if (v474 == true) + v483 = ll_dict_getitem__Dict_String__String__String ( msg_8,__consts_0.const_str__47 ); + v484 = ll_streq__String_String ( v483,__consts_0.const_str__55 ); + v485 = v484; + msg_9 = msg_8; + if (v485 == false) { - block = 16; - break; - } - else{ - msg_9 = msg_8; block = 9; break; } + block = 16; + break; case 9: - v475 = ll_dict_getitem__Dict_String__String__String ( msg_9,__consts_0.const_str__46 ); - v476 = ll_streq__String_String ( v475,__consts_0.const_str__55 ); - v477 = v476; - if (v477 == true) + v486 = ll_dict_getitem__Dict_String__String__String ( msg_9,__consts_0.const_str__47 ); + v487 = ll_streq__String_String ( v486,__consts_0.const_str__56 ); + v488 = v487; + v489 = msg_9; + if (v488 == false) { - block = 15; - break; - } - else{ - v478 = msg_9; block = 10; break; } + block = 15; + break; case 10: - v479 = ll_dict_getitem__Dict_String__String__String ( v478,__consts_0.const_str__46 ); - v480 = ll_streq__String_String ( v479,__consts_0.const_str__56 ); - v481 = v480; - if (v481 == true) + v490 = ll_dict_getitem__Dict_String__String__String ( v489,__consts_0.const_str__47 ); + v491 = ll_streq__String_String ( v490,__consts_0.const_str__57 ); + v492 = v491; + if (v492 == false) { - block = 14; - break; - } - else{ block = 11; break; } + block = 14; + break; case 11: - v482 = __consts_0.py____test_rsession_webjs_Globals.odata_empty; - v483 = v482; - if (v483 == true) + v493 = __consts_0.py____test_rsession_webjs_Globals.odata_empty; + v494 = v493; + v454 = true; + if (v494 == false) { - block = 13; - break; - } - else{ - v443 = true; block = 12; break; } - case 12: - return ( v443 ); + block = 13; + break; case 13: - v484 = __consts_0.Document; - v485 = v484.getElementById(__consts_0.const_str__39); - scroll_down_if_needed ( v485 ); - v443 = true; + v495 = __consts_0.Document; + v496 = v495.getElementById(__consts_0.const_str__19); + scroll_down_if_needed ( v496 ); + v454 = true; block = 12; break; case 14: @@ -2100,1467 +1986,1666 @@ function process (msg_0) { block = 11; break; case 17: - v490 = ll_dict_getitem__Dict_String__String__String ( msg_10,__consts_0.const_str__57 ); - v491 = get_elem ( v490 ); - v492 = !!v491; - if (v492 == true) + v501 = ll_dict_getitem__Dict_String__String__String ( msg_10,__consts_0.const_str__58 ); + v502 = get_elem ( v501 ); + v503 = !!v502; + msg_11 = msg_10; + if (v503 == false) { - msg_12 = msg_10; - module_part_0 = v491; - block = 19; - break; - } - else{ - msg_11 = msg_10; block = 18; break; } + msg_12 = msg_10; + module_part_0 = v502; + block = 19; + break; case 18: - v493 = __consts_0.py____test_rsession_webjs_Globals.opending; - v494 = v493; - ll_append__List_Dict_String__String___Dict_String_ ( v494,msg_11 ); - v443 = true; + v504 = __consts_0.py____test_rsession_webjs_Globals.opending; + v505 = v504; + ll_append__List_Dict_String__String___Dict_String__String_ ( v505,msg_11 ); + v454 = true; block = 12; break; case 19: - v496 = create_elem ( __consts_0.const_str__19 ); - v497 = create_elem ( __consts_0.const_str__20 ); - v498 = ll_dict_getitem__Dict_String__String__String ( msg_12,__consts_0.const_str__58 ); - v499 = new Object(); - v499.item0 = v498; - v501 = v499.item0; - v502 = new StringBuilder(); - v502.ll_append(__consts_0.const_str__59); - v504 = ll_str__StringR_StringConst_String ( undefined,v501 ); - v502.ll_append(v504); - v502.ll_append(__consts_0.const_str__60); - v507 = v502.ll_build(); - v508 = create_text_elem ( v507 ); - v509 = v497; - v509.appendChild(v508); - v511 = v496; - v511.appendChild(v497); - v513 = module_part_0; - v513.appendChild(v496); + v507 = create_elem ( __consts_0.const_str__5 ); + v508 = create_elem ( __consts_0.const_str__6 ); + v509 = ll_dict_getitem__Dict_String__String__String ( msg_12,__consts_0.const_str__59 ); + v510 = new Object(); + v510.item0 = v509; + v512 = v510.item0; + v513 = new StringBuilder(); + v513.ll_append(__consts_0.const_str__60); + v515 = ll_str__StringR_StringConst_String ( v512 ); + v513.ll_append(v515); + v513.ll_append(__consts_0.const_str__61); + v518 = v513.ll_build(); + v519 = create_text_elem ( v518 ); + v520 = v508; + v520.appendChild(v519); + v522 = v507; + v522.appendChild(v508); + v524 = module_part_0; + v524.appendChild(v507); block = 11; break; case 20: - v515 = ll_dict_getitem__Dict_String__String__String ( msg_13,__consts_0.const_str__57 ); - v516 = get_elem ( v515 ); - v517 = !!v516; - if (v517 == true) + v526 = ll_dict_getitem__Dict_String__String__String ( msg_13,__consts_0.const_str__58 ); + v527 = get_elem ( v526 ); + v528 = !!v527; + msg_14 = msg_13; + if (v528 == false) { - module_part_1 = v516; - block = 22; - break; - } - else{ - msg_14 = msg_13; block = 21; break; } + msg_15 = msg_13; + module_part_1 = v527; + block = 22; + break; case 21: - v518 = __consts_0.py____test_rsession_webjs_Globals.opending; - v519 = v518; - ll_append__List_Dict_String__String___Dict_String_ ( v519,msg_14 ); - v443 = true; + v529 = __consts_0.py____test_rsession_webjs_Globals.opending; + v530 = v529; + ll_append__List_Dict_String__String___Dict_String__String_ ( v530,msg_14 ); + v454 = true; block = 12; break; case 22: - v521 = create_elem ( __consts_0.const_str__19 ); - v522 = create_elem ( __consts_0.const_str__20 ); - v523 = create_text_elem ( __consts_0.const_str__61 ); - v524 = v522; - v524.appendChild(v523); - v526 = v521; - v526.appendChild(v522); - v528 = module_part_1; - v528.appendChild(v521); + v532 = create_elem ( __consts_0.const_str__5 ); + v533 = create_elem ( __consts_0.const_str__6 ); + v534 = create_elem ( __consts_0.const_str__62 ); + v535 = v534; + v536 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__58 ); + v537 = new Object(); + v537.item0 = v536; + v539 = v537.item0; + v540 = new StringBuilder(); + v540.ll_append(__consts_0.const_str__63); + v542 = ll_str__StringR_StringConst_String ( v539 ); + v540.ll_append(v542); + v540.ll_append(__consts_0.const_str__35); + v545 = v540.ll_build(); + v535.setAttribute(__consts_0.const_str__64,v545); + v547 = create_text_elem ( __consts_0.const_str__65 ); + v548 = v534; + v548.appendChild(v547); + v550 = v533; + v550.appendChild(v534); + v552 = v532; + v552.appendChild(v533); + v554 = module_part_1; + v554.appendChild(v532); + v556 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__58 ); + v557 = __consts_0.ExportedMethods; + v558 = v557.show_fail(v556,fail_come_back); block = 11; break; case 23: - v530 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__62 ); - v531 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__63 ); - v532 = ll_dict_getitem__Dict_String__String__String ( msg_15,__consts_0.const_str__64 ); - v533 = new Object(); - v533.item0 = v530; - v533.item1 = v531; - v533.item2 = v532; - v537 = v533.item0; - v538 = v533.item1; - v539 = v533.item2; - v540 = new StringBuilder(); - v540.ll_append(__consts_0.const_str__65); - v542 = ll_str__StringR_StringConst_String ( undefined,v537 ); - v540.ll_append(v542); - v540.ll_append(__consts_0.const_str__66); - v545 = ll_str__StringR_StringConst_String ( undefined,v538 ); - v540.ll_append(v545); - v540.ll_append(__consts_0.const_str__67); - v548 = ll_str__StringR_StringConst_String ( undefined,v539 ); - v540.ll_append(v548); - v540.ll_append(__consts_0.const_str__68); - v551 = v540.ll_build(); + v559 = ll_dict_getitem__Dict_String__String__String ( msg_16,__consts_0.const_str__66 ); + v560 = ll_dict_getitem__Dict_String__String__String ( msg_16,__consts_0.const_str__67 ); + v561 = ll_dict_getitem__Dict_String__String__String ( msg_16,__consts_0.const_str__68 ); + v562 = new Object(); + v562.item0 = v559; + v562.item1 = v560; + v562.item2 = v561; + v566 = v562.item0; + v567 = v562.item1; + v568 = v562.item2; + v569 = new StringBuilder(); + v569.ll_append(__consts_0.const_str__69); + v571 = ll_str__StringR_StringConst_String ( v566 ); + v569.ll_append(v571); + v569.ll_append(__consts_0.const_str__70); + v574 = ll_str__StringR_StringConst_String ( v567 ); + v569.ll_append(v574); + v569.ll_append(__consts_0.const_str__71); + v577 = ll_str__StringR_StringConst_String ( v568 ); + v569.ll_append(v577); + v569.ll_append(__consts_0.const_str__72); + v580 = v569.ll_build(); __consts_0.py____test_rsession_webjs_Globals.ofinished = true; - v553 = new StringBuilder(); - v553.ll_append(__consts_0.const_str__69); - v555 = ll_str__StringR_StringConst_String ( undefined,v551 ); - v553.ll_append(v555); - v557 = v553.ll_build(); - __consts_0.Document.title = v557; - v559 = new StringBuilder(); - v559.ll_append(__consts_0.const_str__37); - v561 = ll_str__StringR_StringConst_String ( undefined,v551 ); - v559.ll_append(v561); - v559.ll_append(__consts_0.const_str__38); - v564 = v559.ll_build(); - v565 = __consts_0.Document; - v566 = v565.getElementById(__consts_0.const_str__35); - v567 = v566.childNodes; - v568 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v567,0 ); - v568.nodeValue = v564; + v582 = new StringBuilder(); + v582.ll_append(__consts_0.const_str__73); + v584 = ll_str__StringR_StringConst_String ( v580 ); + v582.ll_append(v584); + v586 = v582.ll_build(); + __consts_0.Document.title = v586; + v588 = new StringBuilder(); + v588.ll_append(__consts_0.const_str__42); + v590 = ll_str__StringR_StringConst_String ( v580 ); + v588.ll_append(v590); + v588.ll_append(__consts_0.const_str__43); + v593 = v588.ll_build(); + v594 = __consts_0.Document; + v595 = v594.getElementById(__consts_0.const_str__40); + v596 = v595.childNodes; + v597 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalType__Signed ( v596,0 ); + v597.nodeValue = v593; block = 11; break; case 24: - v570 = ll_dict_getitem__Dict_String__String__String ( msg_16,__consts_0.const_str__70 ); - v571 = get_elem ( v570 ); - v572 = !!v571; - if (v572 == true) + v599 = ll_dict_getitem__Dict_String__String__String ( msg_17,__consts_0.const_str__74 ); + v600 = get_elem ( v599 ); + v601 = !!v600; + msg_18 = msg_17; + if (v601 == false) { - v576 = msg_16; - v577 = v571; - block = 26; - break; - } - else{ - msg_17 = msg_16; block = 25; break; } + v605 = msg_17; + v606 = v600; + block = 26; + break; case 25: - v573 = __consts_0.py____test_rsession_webjs_Globals.opending; - v574 = v573; - ll_append__List_Dict_String__String___Dict_String_ ( v574,msg_17 ); - v443 = true; + v602 = __consts_0.py____test_rsession_webjs_Globals.opending; + v603 = v602; + ll_append__List_Dict_String__String___Dict_String__String_ ( v603,msg_18 ); + v454 = true; block = 12; break; case 26: - add_received_item_outcome ( v576,v577 ); + add_received_item_outcome ( v605,v606 ); block = 11; break; case 27: - v579 = __consts_0.Document; - v580 = ll_dict_getitem__Dict_String__String__String ( msg_18,__consts_0.const_str__71 ); - v581 = v579.getElementById(v580); - v582 = v581.style; - v582.background = __consts_0.const_str__72; - v584 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict; - v585 = ll_dict_getitem__Dict_String__String__String ( msg_18,__consts_0.const_str__71 ); - v586 = ll_dict_getitem__Dict_String__String__String ( v584,v585 ); - v587 = new Object(); - v587.item0 = v586; - v589 = v587.item0; - v590 = new StringBuilder(); - v591 = ll_str__StringR_StringConst_String ( undefined,v589 ); - v590.ll_append(v591); - v590.ll_append(__consts_0.const_str__73); - v594 = v590.ll_build(); - v595 = v581.childNodes; - v596 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v595,0 ); - v596.nodeValue = v594; + v608 = __consts_0.Document; + v609 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__75 ); + v610 = v608.getElementById(v609); + v611 = v610.style; + v611.background = __consts_0.const_str__76; + v613 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict; + v614 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__75 ); + v615 = ll_dict_getitem__Dict_String__String__String ( v613,v614 ); + v616 = new Object(); + v616.item0 = v615; + v618 = v616.item0; + v619 = new StringBuilder(); + v620 = ll_str__StringR_StringConst_String ( v618 ); + v619.ll_append(v620); + v619.ll_append(__consts_0.const_str__77); + v623 = v619.ll_build(); + v624 = v610.childNodes; + v625 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalType__Signed ( v624,0 ); + v625.nodeValue = v623; block = 11; break; case 28: - v598 = __consts_0.Document; - v599 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__71 ); - v600 = v598.getElementById(v599); - v601 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; - v602 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__71 ); - v603 = ll_dict_getitem__Dict_String__List_String___String ( v601,v602 ); - v604 = v603; - v605 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__57 ); - ll_prepend__List_String__String ( v604,v605 ); - v607 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; - v608 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__71 ); - v609 = ll_dict_getitem__Dict_String__List_String___String ( v607,v608 ); - v610 = ll_len__List_String_ ( v609 ); - v611 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict; - v612 = ll_dict_getitem__Dict_String__String__String ( msg_19,__consts_0.const_str__71 ); - v613 = ll_dict_getitem__Dict_String__String__String ( v611,v612 ); - v614 = new Object(); - v614.item0 = v613; - v614.item1 = v610; - v617 = v614.item0; - v618 = v614.item1; - v619 = new StringBuilder(); - v620 = ll_str__StringR_StringConst_String ( undefined,v617 ); - v619.ll_append(v620); - v619.ll_append(__consts_0.const_str__74); - v623 = ll_int_str__IntegerR_SignedConst_Signed ( undefined,v618 ); - v619.ll_append(v623); - v619.ll_append(__consts_0.const_str__38); - v626 = v619.ll_build(); - v627 = v600.childNodes; - v628 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v627,0 ); - v628.nodeValue = v626; + v627 = __consts_0.Document; + v628 = ll_dict_getitem__Dict_String__String__String ( msg_20,__consts_0.const_str__75 ); + v629 = v627.getElementById(v628); + v630 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; + v631 = ll_dict_getitem__Dict_String__String__String ( msg_20,__consts_0.const_str__75 ); + v632 = ll_dict_getitem__Dict_String__List_String___String ( v630,v631 ); + v633 = v632; + v634 = ll_dict_getitem__Dict_String__String__String ( msg_20,__consts_0.const_str__58 ); + ll_prepend__List_String__String ( v633,v634 ); + v636 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; + v637 = ll_dict_getitem__Dict_String__String__String ( msg_20,__consts_0.const_str__75 ); + v638 = ll_dict_getitem__Dict_String__List_String___String ( v636,v637 ); + v639 = ll_len__List_String_ ( v638 ); + v640 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict; + v641 = ll_dict_getitem__Dict_String__String__String ( msg_20,__consts_0.const_str__75 ); + v642 = ll_dict_getitem__Dict_String__String__String ( v640,v641 ); + v643 = new Object(); + v643.item0 = v642; + v643.item1 = v639; + v646 = v643.item0; + v647 = v643.item1; + v648 = new StringBuilder(); + v649 = ll_str__StringR_StringConst_String ( v646 ); + v648.ll_append(v649); + v648.ll_append(__consts_0.const_str__78); + v652 = ll_int_str__IntegerR_SignedConst_Signed ( v647 ); + v648.ll_append(v652); + v648.ll_append(__consts_0.const_str__43); + v655 = v648.ll_build(); + v656 = v629.childNodes; + v657 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalType__Signed ( v656,0 ); + v657.nodeValue = v655; block = 11; break; case 29: - v631 = make_module_box ( v630 ); - v632 = main_t_0; - v632.appendChild(v631); + v660 = make_module_box ( v659 ); + v661 = main_t_0; + v661.appendChild(v660); block = 11; break; + case 12: + return ( v454 ); } } } -function ll_int_str__IntegerR_SignedConst_Signed (repr_0,i_6) { - var v838,v839; +function ll_len__List_Dict_String__String__ (l_5) { + var v415,v416,v417; var block = 0; for(;;){ switch(block){ case 0: - v839 = ll_int2dec__Signed ( i_6 ); - v838 = v839; + v416 = l_5; + v417 = v416.length; + v415 = v417; block = 1; break; case 1: - return ( v838 ); + return ( v415 ); } } } -function scroll_down_if_needed (mbox_2) { - var v638,v639,v640,v641,v642,v643,v644; +function make_module_box (msg_32) { + var v877,v878,v879,v880,v882,v883,v884,v885,v888,v889,v890,v891,v894,v897,v898,v900,v901,v902,v904,v905,v907,v908,v910,v911,v912,v914,v915,v917,v920,v922,v924,v925,v927,v928,v930,v931,v933,v935; var block = 0; for(;;){ switch(block){ case 0: - v639 = __consts_0.py____test_rsession_webjs_Options.oscroll; - v640 = v639; - if (v640 == true) - { - v641 = mbox_2; - block = 2; - break; - } - else{ - block = 1; - break; - } - case 1: - return ( v638 ); - case 2: - v642 = v641.parentNode; - v643 = v642; - v643.scrollIntoView(); - block = 1; - break; - } - } -} - -function ll_len__List_String_ (l_13) { - var v835,v836,v837; - var block = 0; - for(;;){ - switch(block){ - case 0: - v836 = l_13; - v837 = v836.length; - v835 = v837; + v878 = create_elem ( __consts_0.const_str__5 ); + v879 = create_elem ( __consts_0.const_str__6 ); + v880 = v878; + v880.appendChild(v879); + v882 = v879; + v883 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__79 ); + v884 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__80 ); + v885 = new Object(); + v885.item0 = v883; + v885.item1 = v884; + v888 = v885.item0; + v889 = v885.item1; + v890 = new StringBuilder(); + v891 = ll_str__StringR_StringConst_String ( v888 ); + v890.ll_append(v891); + v890.ll_append(__consts_0.const_str__81); + v894 = ll_str__StringR_StringConst_String ( v889 ); + v890.ll_append(v894); + v890.ll_append(__consts_0.const_str__43); + v897 = v890.ll_build(); + v898 = create_text_elem ( v897 ); + v882.appendChild(v898); + v900 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__80 ); + v901 = ll_int__String_Signed ( v900,10 ); + v902 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__58 ); + __consts_0.const_tuple__82[v902]=v901; + v904 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__79 ); + v905 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__58 ); + __consts_0.const_tuple__83[v905]=v904; + v907 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__58 ); + v908 = ll_strconcat__String_String ( __consts_0.const_str__84,v907 ); + v879.id = v908; + v910 = v879; + v911 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__58 ); + v912 = new Object(); + v912.item0 = v911; + v914 = v912.item0; + v915 = new StringBuilder(); + v915.ll_append(__consts_0.const_str__85); + v917 = ll_str__StringR_StringConst_String ( v914 ); + v915.ll_append(v917); + v915.ll_append(__consts_0.const_str__35); + v920 = v915.ll_build(); + v910.setAttribute(__consts_0.const_str__36,v920); + v922 = v879; + v922.setAttribute(__consts_0.const_str__37,__consts_0.const_str__86); + v924 = create_elem ( __consts_0.const_str__6 ); + v925 = v878; + v925.appendChild(v924); + v927 = create_elem ( __consts_0.const_str__87 ); + v928 = v924; + v928.appendChild(v927); + v930 = create_elem ( __consts_0.const_str__3 ); + v931 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__58 ); + v930.id = v931; + v933 = v927; + v933.appendChild(v930); + v935 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__58 ); + __consts_0.const_tuple__88[v935]=0; + v877 = v878; block = 1; break; case 1: - return ( v835 ); - } - } -} - -function show_interrupt () { - var v653,v654,v655,v656,v657,v658,v659,v660; - 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__75; - v656 = __consts_0.Document; - v657 = v656.getElementById(__consts_0.const_str__35); - v658 = v657.childNodes; - v659 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v658,0 ); - v659.nodeValue = __consts_0.const_str__76; - block = 1; - break; - case 1: - return ( v653 ); + return ( v877 ); } } } function ll_prepend__List_String__String (l_10,newitem_1) { - var v819,v820,v821,v822,v823,v824,l_11,newitem_2,dst_0,v825,v826,newitem_3,v827,v828,v829,l_12,newitem_4,dst_1,v830,v831,v832,v833,v834; + var v857,v858,v859,v860,l_11,newitem_2,dst_0,v862,v863,newitem_3,v864,v865,l_12,newitem_4,dst_1,v867,v868,v869,v870; var block = 0; for(;;){ switch(block){ case 0: - v820 = l_10; - v821 = v820.length; - v822 = l_10; - v823 = (v821+1); - v822.length = v823; + v857 = l_10; + v858 = v857.length; + v859 = l_10; + v860 = (v858+1); + v859.length = v860; l_11 = l_10; newitem_2 = newitem_1; - dst_0 = v821; + dst_0 = v858; block = 1; break; case 1: - v825 = (dst_0>0); - v826 = v825; - if (v826 == true) + v862 = (dst_0>0); + v863 = v862; + newitem_3 = newitem_2; + v864 = l_11; + if (v863 == false) { - l_12 = l_11; - newitem_4 = newitem_2; - dst_1 = dst_0; - block = 4; - break; - } - else{ - newitem_3 = newitem_2; - v827 = l_11; block = 2; break; } + l_12 = l_11; + newitem_4 = newitem_2; + dst_1 = dst_0; + block = 4; + break; case 2: - v828 = v827; - v828[0]=newitem_3; + v865 = v864; + v865[0]=newitem_3; block = 3; break; - case 3: - return ( v819 ); case 4: - v830 = (dst_1-1); - v831 = l_12; - v832 = l_12; - v833 = v832[v830]; - v831[dst_1]=v833; + v867 = (dst_1-1); + v868 = l_12; + v869 = l_12; + v870 = v869[v867]; + v868[dst_1]=v870; l_11 = l_12; newitem_2 = newitem_4; - dst_0 = v830; + dst_0 = v867; block = 1; break; - } - } -} - -function make_module_box (msg_30) { - var 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,v896,v897,v898,v899; - var block = 0; - for(;;){ - switch(block){ - case 0: - v841 = create_elem ( __consts_0.const_str__19 ); - v842 = create_elem ( __consts_0.const_str__20 ); - v843 = v841; - v843.appendChild(v842); - v845 = v842; - v846 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__77 ); - v847 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__78 ); - v848 = new Object(); - v848.item0 = v846; - v848.item1 = v847; - v851 = v848.item0; - v852 = v848.item1; - v853 = new StringBuilder(); - v854 = ll_str__StringR_StringConst_String ( undefined,v851 ); - v853.ll_append(v854); - v853.ll_append(__consts_0.const_str__79); - v857 = ll_str__StringR_StringConst_String ( undefined,v852 ); - v853.ll_append(v857); - v853.ll_append(__consts_0.const_str__38); - v860 = v853.ll_build(); - v861 = create_text_elem ( v860 ); - v845.appendChild(v861); - v863 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__78 ); - v864 = ll_int__String_Signed ( v863,10 ); - v865 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 ); - __consts_0.const_tuple__80[v865]=v864; - v867 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__77 ); - v868 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 ); - __consts_0.const_tuple__81[v868]=v867; - v870 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 ); - v871 = ll_strconcat__String_String ( __consts_0.const_str__82,v870 ); - v842.id = v871; - v873 = v842; - v874 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 ); - v875 = new Object(); - v875.item0 = v874; - v877 = v875.item0; - v878 = new StringBuilder(); - v878.ll_append(__consts_0.const_str__83); - v880 = ll_str__StringR_StringConst_String ( undefined,v877 ); - v878.ll_append(v880); - v878.ll_append(__consts_0.const_str__27); - v883 = v878.ll_build(); - v873.setAttribute(__consts_0.const_str__28,v883); - v885 = v842; - v885.setAttribute(__consts_0.const_str__29,__consts_0.const_str__84); - v887 = create_elem ( __consts_0.const_str__20 ); - v888 = v841; - v888.appendChild(v887); - v890 = create_elem ( __consts_0.const_str__85 ); - v891 = v887; - v891.appendChild(v890); - v893 = create_elem ( __consts_0.const_str__18 ); - v894 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 ); - v893.id = v894; - v896 = v890; - v896.appendChild(v893); - v898 = ll_dict_getitem__Dict_String__String__String ( msg_30,__consts_0.const_str__57 ); - __consts_0.const_tuple__86[v898]=0; - v840 = v841; - block = 1; - break; - case 1: - return ( v840 ); - } - } -} - -function add_received_item_outcome (msg_20,module_part_2) { - var v669,v670,v671,v672,msg_21,module_part_3,v673,v674,v675,v676,v677,v678,v679,v680,v681,v682,v683,v684,v685,v686,v687,v688,v689,v690,v691,msg_22,module_part_4,item_name_6,td_0,v692,v693,v694,v695,msg_23,module_part_5,item_name_7,td_1,v696,v697,v698,v699,v700,v701,v702,v703,v704,v705,v706,v707,v708,v709,v710,v711,v712,v713,v714,v715,v716,v717,msg_24,module_part_6,td_2,v718,v719,v720,v721,v722,module_part_7,td_3,v723,v724,v725,v726,v727,v728,v729,v730,v731,v732,v733,v734,v735,v736,v737,v738,v739,v740,v741,v742,v743,v744,v745,v746,v747,v748,v749,v750,v751,v752,v753,v754,v755,v756,v757,msg_25,module_part_8,td_4,v758,v759,v760,msg_26,module_part_9,item_name_8,td_5,v761,v762,v763,v764,msg_27,module_part_10,item_name_9,td_6,v765,v766,v767,v768,v769,v770,v771,v772,v773,v774,v775,v776,v777,v778,v779,v780,v781,v782,v783,v784,msg_28,module_part_11,td_7,v785,v786,v787,msg_29,module_part_12,v788,v789,v790,v791,v792,v793,v794,v795,v796,v797,v798,v799,v800,v801,v802,v803,v804,v805,v806,v807,v808,v809,v810,v811,v812,v813,v814,v815,v816,v817,v818; - var block = 0; - for(;;){ - switch(block){ - case 0: - v670 = ll_dict_getitem__Dict_String__String__String ( msg_20,__consts_0.const_str__71 ); - v671 = ll_strlen__String ( v670 ); - v672 = !!v671; - if (v672 == true) - { - msg_29 = msg_20; - module_part_12 = module_part_2; - block = 11; - break; - } - else{ - msg_21 = msg_20; - module_part_3 = module_part_2; - block = 1; - break; - } - case 1: - v673 = create_elem ( __consts_0.const_str__20 ); - v674 = v673; - v675 = ll_dict_getitem__Dict_String__String__String ( msg_21,__consts_0.const_str__57 ); - v676 = new Object(); - v676.item0 = v675; - v678 = v676.item0; - v679 = new StringBuilder(); - v679.ll_append(__consts_0.const_str__83); - v681 = ll_str__StringR_StringConst_String ( undefined,v678 ); - v679.ll_append(v681); - v679.ll_append(__consts_0.const_str__27); - v684 = v679.ll_build(); - v674.setAttribute(__consts_0.const_str__28,v684); - v686 = v673; - v686.setAttribute(__consts_0.const_str__29,__consts_0.const_str__84); - v688 = ll_dict_getitem__Dict_String__String__String ( msg_21,__consts_0.const_str__57 ); - v689 = ll_dict_getitem__Dict_String__String__String ( msg_21,__consts_0.const_str__87 ); - v690 = ll_streq__String_String ( v689,__consts_0.const_str__6 ); - v691 = v690; - if (v691 == true) - { - msg_28 = msg_21; - module_part_11 = module_part_3; - td_7 = v673; - block = 10; - break; - } - else{ - msg_22 = msg_21; - module_part_4 = module_part_3; - item_name_6 = v688; - td_0 = v673; - block = 2; - break; - } - case 2: - v692 = ll_dict_getitem__Dict_String__String__String ( msg_22,__consts_0.const_str__88 ); - v693 = ll_streq__String_String ( v692,__consts_0.const_str__89 ); - v694 = !v693; - v695 = v694; - if (v695 == true) - { - msg_26 = msg_22; - module_part_9 = module_part_4; - item_name_8 = item_name_6; - td_5 = td_0; - block = 8; - break; - } - else{ - msg_23 = msg_22; - module_part_5 = module_part_4; - item_name_7 = item_name_6; - td_1 = td_0; - block = 3; - break; - } case 3: - v696 = create_elem ( __consts_0.const_str__90 ); - v697 = v696; - v698 = ll_dict_getitem__Dict_String__String__String ( msg_23,__consts_0.const_str__57 ); - v699 = new Object(); - v699.item0 = v698; - v701 = v699.item0; - v702 = new StringBuilder(); - v702.ll_append(__consts_0.const_str__91); - v704 = ll_str__StringR_StringConst_String ( undefined,v701 ); - v702.ll_append(v704); - v702.ll_append(__consts_0.const_str__27); - v707 = v702.ll_build(); - v697.setAttribute(__consts_0.const_str__92,v707); - v709 = create_text_elem ( __consts_0.const_str__93 ); - v710 = v696; - v710.setAttribute(__consts_0.const_str__94,__consts_0.const_str__95); - v712 = v696; - v712.appendChild(v709); - v714 = td_1; - v714.appendChild(v696); - v716 = __consts_0.ExportedMethods; - v717 = v716.show_fail(item_name_7,fail_come_back); - msg_24 = msg_23; - module_part_6 = module_part_5; - td_2 = td_1; - block = 4; - break; - case 4: - v718 = ll_dict_getitem__Dict_String__String__String ( msg_24,__consts_0.const_str__70 ); - v719 = ll_dict_getitem__Dict_String__Signed__String ( __consts_0.const_tuple__86,v718 ); - v720 = (v719%50); - v721 = (v720==0); - v722 = v721; - if (v722 == true) - { - msg_25 = msg_24; - module_part_8 = module_part_6; - td_4 = td_2; - block = 7; - break; - } - else{ - module_part_7 = module_part_6; - td_3 = td_2; - v723 = msg_24; - block = 5; - break; - } - case 5: - v724 = ll_dict_getitem__Dict_String__String__String ( v723,__consts_0.const_str__70 ); - v725 = ll_dict_getitem__Dict_String__Signed__String ( __consts_0.const_tuple__86,v724 ); - v726 = (v725+1); - __consts_0.const_tuple__86[v724]=v726; - v728 = ll_strconcat__String_String ( __consts_0.const_str__82,v724 ); - v729 = get_elem ( v728 ); - v730 = ll_dict_getitem__Dict_String__String__String ( __consts_0.const_tuple__81,v724 ); - v731 = ll_dict_getitem__Dict_String__Signed__String ( __consts_0.const_tuple__86,v724 ); - v732 = ll_dict_getitem__Dict_String__Signed__String ( __consts_0.const_tuple__80,v724 ); - v733 = new Object(); - v733.item0 = v730; - v733.item1 = v731; - v733.item2 = v732; - v737 = v733.item0; - v738 = v733.item1; - v739 = v733.item2; - v740 = new StringBuilder(); - v741 = ll_str__StringR_StringConst_String ( undefined,v737 ); - v740.ll_append(v741); - v740.ll_append(__consts_0.const_str__74); - v744 = v738.toString(); - v740.ll_append(v744); - v740.ll_append(__consts_0.const_str__96); - v747 = v739.toString(); - v740.ll_append(v747); - v740.ll_append(__consts_0.const_str__38); - v750 = v740.ll_build(); - v751 = v729.childNodes; - v752 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v751,0 ); - v752.nodeValue = v750; - v754 = module_part_7.childNodes; - v755 = ll_getitem__dum_nocheckConst_List_ExternalType__Si ( undefined,v754,-1 ); - v756 = v755; - v756.appendChild(td_3); - block = 6; - break; - case 6: - return ( v669 ); - case 7: - v758 = create_elem ( __consts_0.const_str__19 ); - v759 = module_part_8; - v759.appendChild(v758); - module_part_7 = module_part_8; - td_3 = td_4; - v723 = msg_25; - block = 5; - break; - case 8: - v761 = ll_dict_getitem__Dict_String__String__String ( msg_26,__consts_0.const_str__88 ); - v762 = ll_streq__String_String ( v761,__consts_0.const_str__97 ); - v763 = !v762; - v764 = v763; - if (v764 == true) - { - msg_27 = msg_26; - module_part_10 = module_part_9; - item_name_9 = item_name_8; - td_6 = td_5; - block = 9; - break; - } - else{ - msg_23 = msg_26; - module_part_5 = module_part_9; - item_name_7 = item_name_8; - td_1 = td_5; - block = 3; - break; - } - case 9: - v765 = __consts_0.ExportedMethods; - v766 = v765.show_skip(item_name_9,skip_come_back); - v767 = create_elem ( __consts_0.const_str__90 ); - v768 = v767; - v769 = ll_dict_getitem__Dict_String__String__String ( msg_27,__consts_0.const_str__57 ); - v770 = new Object(); - v770.item0 = v769; - v772 = v770.item0; - v773 = new StringBuilder(); - v773.ll_append(__consts_0.const_str__98); - v775 = ll_str__StringR_StringConst_String ( undefined,v772 ); - v773.ll_append(v775); - v773.ll_append(__consts_0.const_str__27); - v778 = v773.ll_build(); - v768.setAttribute(__consts_0.const_str__92,v778); - v780 = create_text_elem ( __consts_0.const_str__99 ); - v781 = v767; - v781.appendChild(v780); - v783 = td_6; - v783.appendChild(v767); - msg_24 = msg_27; - module_part_6 = module_part_10; - td_2 = td_6; - block = 4; - break; - case 10: - v785 = create_text_elem ( __consts_0.const_str__100 ); - v786 = td_7; - v786.appendChild(v785); - msg_24 = msg_28; - module_part_6 = module_part_11; - td_2 = td_7; - block = 4; - break; - case 11: - v788 = __consts_0.Document; - v789 = ll_dict_getitem__Dict_String__String__String ( msg_29,__consts_0.const_str__71 ); - v790 = v788.getElementById(v789); - v791 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; - v792 = ll_dict_getitem__Dict_String__String__String ( msg_29,__consts_0.const_str__71 ); - v793 = ll_dict_getitem__Dict_String__List_String___String ( v791,v792 ); - v794 = v793; - v795 = ll_pop_default__dum_nocheckConst_List_String_ ( undefined,v794 ); - v796 = __consts_0.py____test_rsession_webjs_Globals.ohost_pending; - v797 = ll_dict_getitem__Dict_String__String__String ( msg_29,__consts_0.const_str__71 ); - v798 = ll_dict_getitem__Dict_String__List_String___String ( v796,v797 ); - v799 = ll_len__List_String_ ( v798 ); - v800 = __consts_0.py____test_rsession_webjs_Globals.ohost_dict; - v801 = ll_dict_getitem__Dict_String__String__String ( msg_29,__consts_0.const_str__71 ); - v802 = ll_dict_getitem__Dict_String__String__String ( v800,v801 ); - v803 = new Object(); - v803.item0 = v802; - v803.item1 = v799; - v806 = v803.item0; - v807 = v803.item1; - v808 = new StringBuilder(); - v809 = ll_str__StringR_StringConst_String ( undefined,v806 ); - v808.ll_append(v809); - v808.ll_append(__consts_0.const_str__74); - v812 = ll_int_str__IntegerR_SignedConst_Signed ( undefined,v807 ); - v808.ll_append(v812); - v808.ll_append(__consts_0.const_str__38); - v815 = v808.ll_build(); - v816 = v790.childNodes; - v817 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v816,0 ); - v817.nodeValue = v815; - msg_21 = msg_29; - module_part_3 = module_part_12; - block = 1; - break; - } - } -} - -function ll_int__String_Signed (s_2,base_0) { - var v902,v903,v904,v905,v906,v907,etype_5,evalue_5,s_3,base_1,v908,s_4,base_2,v909,v910,s_5,base_3,v911,v912,s_6,base_4,i_8,strlen_0,v913,v914,s_7,base_5,i_9,strlen_1,v915,v916,v917,v918,v919,s_8,base_6,i_10,strlen_2,v920,v921,v922,v923,s_9,base_7,i_11,strlen_3,v924,v925,v926,v927,s_10,base_8,val_0,i_12,sign_0,strlen_4,v928,v929,s_11,val_1,i_13,sign_1,strlen_5,v930,v931,val_2,sign_2,v932,v933,v934,v935,v936,v937,v938,v939,v940,v941,s_12,val_3,i_14,sign_3,strlen_6,v942,v943,v944,v945,s_13,val_4,sign_4,strlen_7,v946,v947,s_14,base_9,val_5,i_15,sign_5,strlen_8,v948,v949,v950,v951,v952,s_15,base_10,c_0,val_6,i_16,sign_6,strlen_9,v953,v954,s_16,base_11,c_1,val_7,i_17,sign_7,strlen_10,v955,v956,s_17,base_12,c_2,val_8,i_18,sign_8,strlen_11,v957,s_18,base_13,c_3,val_9,i_19,sign_9,strlen_12,v958,v959,s_19,base_14,val_10,i_20,sign_10,strlen_13,v960,v961,s_20,base_15,val_11,i_21,digit_0,sign_11,strlen_14,v962,v963,s_21,base_16,i_22,digit_1,sign_12,strlen_15,v964,v965,v966,v967,s_22,base_17,c_4,val_12,i_23,sign_13,strlen_16,v968,s_23,base_18,c_5,val_13,i_24,sign_14,strlen_17,v969,v970,s_24,base_19,val_14,i_25,sign_15,strlen_18,v971,v972,v973,s_25,base_20,c_6,val_15,i_26,sign_16,strlen_19,v974,s_26,base_21,c_7,val_16,i_27,sign_17,strlen_20,v975,v976,s_27,base_22,val_17,i_28,sign_18,strlen_21,v977,v978,v979,s_28,base_23,strlen_22,v980,v981,s_29,base_24,strlen_23,v982,v983,s_30,base_25,i_29,strlen_24,v984,v985,v986,v987,s_31,base_26,strlen_25,v988,v989; - var block = 0; - for(;;){ - switch(block){ - case 0: - v903 = (2<=base_0); - v904 = v903; - if (v904 == true) - { - s_3 = s_2; - base_1 = base_0; - block = 3; - break; - } - else{ - block = 1; - break; - } - case 1: - v905 = __consts_0.exceptions_ValueError; - v906 = v905.meta; - v907 = v905; - etype_5 = v906; - evalue_5 = v907; - block = 2; - break; - case 2: - throw(evalue_5); - case 3: - v908 = (base_1<=36); - s_4 = s_3; - base_2 = base_1; - v909 = v908; - block = 4; - break; - case 4: - v910 = v909; - if (v910 == true) - { - s_5 = s_4; - base_3 = base_2; - block = 5; - break; - } - else{ - block = 1; - break; - } - case 5: - v911 = s_5; - v912 = v911.length; - s_6 = s_5; - base_4 = base_3; - i_8 = 0; - strlen_0 = v912; - block = 6; - break; - case 6: - v913 = (i_8=base_15); - v963 = v962; - if (v963 == true) - { - s_11 = s_20; - val_1 = val_11; - i_13 = i_21; - sign_1 = sign_11; - strlen_5 = strlen_14; - block = 12; - break; - } - else{ - s_21 = s_20; - base_16 = base_15; - i_22 = i_21; - digit_1 = digit_0; - sign_12 = sign_11; - strlen_15 = strlen_14; - v964 = val_11; - block = 26; - break; - } - case 26: - v965 = (v964*base_16); - v966 = (v965+digit_1); - v967 = (i_22+1); - s_10 = s_21; - base_8 = base_16; - val_0 = v966; - i_12 = v967; - sign_0 = sign_12; - strlen_4 = strlen_15; - block = 11; - break; - case 27: - v968 = (c_4<=90); - s_23 = s_22; - base_18 = base_17; - c_5 = c_4; - val_13 = val_12; - i_24 = i_23; - sign_14 = sign_13; - strlen_17 = strlen_16; - v969 = v968; - block = 28; - break; - case 28: - v970 = v969; - if (v970 == true) - { - s_24 = s_23; - base_19 = base_18; - val_14 = val_13; - i_25 = i_24; - sign_15 = sign_14; - strlen_18 = strlen_17; - v971 = c_5; - block = 29; - break; - } - else{ - s_16 = s_23; - base_11 = base_18; - c_1 = c_5; - val_7 = val_13; - i_17 = i_24; - sign_7 = sign_14; - strlen_10 = strlen_17; - block = 21; - break; - } - case 29: - v972 = (v971-65); - v973 = (v972+10); - s_20 = s_24; - base_15 = base_19; - val_11 = val_14; - i_21 = i_25; - digit_0 = v973; - sign_11 = sign_15; - strlen_14 = strlen_18; - block = 25; - break; - case 30: - v974 = (c_6<=122); - s_26 = s_25; - base_21 = base_20; - c_7 = c_6; - val_16 = val_15; - i_27 = i_26; - sign_17 = sign_16; - strlen_20 = strlen_19; - v975 = v974; - block = 31; - break; - case 31: - v976 = v975; - if (v976 == true) - { - s_27 = s_26; - base_22 = base_21; - val_17 = val_16; - i_28 = i_27; - sign_18 = sign_17; - strlen_21 = strlen_20; - v977 = c_7; - block = 32; - break; - } - else{ - s_15 = s_26; - base_10 = base_21; - c_0 = c_7; - val_6 = val_16; - i_16 = i_27; - sign_6 = sign_17; - strlen_9 = strlen_20; - block = 20; - break; - } - case 32: - v978 = (v977-97); - v979 = (v978+10); - s_20 = s_27; - base_15 = base_22; - val_11 = val_17; - i_21 = i_28; - digit_0 = v979; - sign_11 = sign_18; - strlen_14 = strlen_21; - block = 25; - break; - case 33: - v981 = (v980+1); - s_10 = s_28; - base_8 = base_23; - val_0 = 0; - i_12 = v981; - sign_0 = 1; - strlen_4 = strlen_22; - block = 11; - break; - case 34: - v983 = (v982+1); - s_10 = s_29; - base_8 = base_24; - val_0 = 0; - i_12 = v983; - sign_0 = -1; - strlen_4 = strlen_23; - block = 11; - break; - case 35: - v984 = s_30; - v985 = v984.charAt(i_29); - v986 = (v985==' '); - v987 = v986; - if (v987 == true) - { - s_31 = s_30; - base_26 = base_25; - strlen_25 = strlen_24; - v988 = i_29; - block = 36; - break; - } - else{ - s_7 = s_30; - base_5 = base_25; - i_9 = i_29; - strlen_1 = strlen_24; - block = 7; - break; - } - case 36: - v989 = (v988+1); - s_6 = s_31; - base_4 = base_26; - i_8 = v989; - strlen_0 = strlen_25; - block = 6; - break; - } - } -} - -function ll_append__List_Dict_String__String___Dict_String_ (l_9,newitem_0) { - var v661,v662,v663,v664,v665,v666,v667,v668; - var block = 0; - for(;;){ - switch(block){ - case 0: - v662 = l_9; - v663 = v662.length; - v664 = l_9; - v665 = (v663+1); - v664.length = v665; - v667 = l_9; - v667[v663]=newitem_0; - block = 1; - break; - case 1: - return ( v661 ); + return ( undefined ); } } } function show_crash () { - var v645,v646,v647,v648,v649,v650,v651,v652; + var v675,v676,v677,v678; 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__102; - v648 = __consts_0.Document; - v649 = v648.getElementById(__consts_0.const_str__35); - v650 = v649.childNodes; - v651 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalT ( undefined,v650,0 ); - v651.nodeValue = __consts_0.const_str__103; + __consts_0.Document.title = __consts_0.const_str__89; + v675 = __consts_0.Document; + v676 = v675.getElementById(__consts_0.const_str__40); + v677 = v676.childNodes; + v678 = ll_getitem_nonneg__dum_nocheckConst_List_ExternalType__Signed ( v677,0 ); + v678.nodeValue = __consts_0.const_str__90; block = 1; break; case 1: - return ( v645 ); + return ( undefined ); } } } -function ll_getitem__dum_nocheckConst_List_ExternalType__Si (func_2,l_14,index_5) { - var v1013,v1014,v1015,v1016,v1017,l_15,index_6,length_1,v1018,v1019,v1020,v1021,index_7,v1022,v1023,v1024,l_16,length_2,v1025,v1026; +function add_received_item_outcome (msg_22,module_part_2) { + var v707,v708,v709,msg_23,module_part_3,v710,v711,v712,v713,v715,v716,v718,v721,v723,v725,v726,v727,v728,msg_24,module_part_4,item_name_6,td_0,v729,v730,v731,v732,msg_25,module_part_5,item_name_7,td_1,v733,v734,v735,v736,v738,v739,v741,v744,v746,v747,v749,v751,v753,v754,msg_26,module_part_6,td_2,v755,v756,v757,v758,v759,module_part_7,td_3,v760,v761,v762,v763,v765,v766,v767,v768,v769,v770,v774,v775,v776,v777,v778,v781,v784,v787,v788,v789,v791,v792,v793,msg_27,module_part_8,td_4,v795,v796,msg_28,module_part_9,item_name_8,td_5,v798,v799,v800,v801,msg_29,module_part_10,item_name_9,td_6,v802,v803,v804,v805,v806,v807,v809,v810,v812,v815,v817,v818,v820,msg_30,module_part_11,td_7,v822,v823,msg_31,module_part_12,v825,v826,v827,v828,v829,v830,v831,v832,v833,v834,v835,v836,v837,v838,v839,v840,v843,v844,v845,v846,v849,v852,v853,v854; var block = 0; for(;;){ switch(block){ case 0: - v1014 = l_14; - v1015 = v1014.length; - v1016 = (index_5<0); - v1017 = v1016; - if (v1017 == true) + v707 = ll_dict_getitem__Dict_String__String__String ( msg_22,__consts_0.const_str__75 ); + v708 = ll_strlen__String ( v707 ); + v709 = !!v708; + msg_23 = msg_22; + module_part_3 = module_part_2; + if (v709 == false) { - l_16 = l_14; - length_2 = v1015; - v1025 = index_5; - block = 4; - break; - } - else{ - l_15 = l_14; - index_6 = index_5; - length_1 = v1015; block = 1; break; } + msg_31 = msg_22; + module_part_12 = module_part_2; + block = 11; + break; case 1: - v1018 = (index_6>=0); - undefined; - v1020 = (index_6' ); +} + +inherits(py____magic_assertion_AssertionError,exceptions_AssertionError); +function ll_char_mul__Char_Signed (ch_0,times_0) { + var v372,v373,v374,ch_1,times_1,i_2,buf_0,v376,v377,v378,v379,v380,ch_2,times_2,i_3,buf_1,v381,v383; + var block = 0; + for(;;){ + switch(block){ + case 0: + v373 = new StringBuilder(); + v374 = v373; + v374.ll_allocate(times_0); + ch_1 = ch_0; + times_1 = times_0; + i_2 = 0; + buf_0 = v373; + block = 1; + break; + case 1: + v376 = (i_2=v444); + v446 = v445; + iter_3 = iter_2; + index_4 = v442; + l_8 = v441; + if (v446 == false) + { + block = 1; + break; + } + block = 3; + break; + case 1: + v447 = (index_4+1); + iter_3.index = v447; + v449 = l_8; + v450 = v449[index_4]; + v440 = v450; + block = 2; + break; + case 3: + v451 = __consts_0.exceptions_StopIteration; + v452 = v451.meta; + v453 = v451; + etype_5 = v452; + evalue_5 = v453; + block = 4; + break; + case 4: + throw(evalue_5); + case 2: + return ( v440 ); + } + } +} + +function ll_listiter__Record_index__Signed__iterable_List_Dict_String__String__ (lst_1) { + var v436,v437; + var block = 0; + for(;;){ + switch(block){ + case 0: + v437 = new Object(); + v437.iterable = lst_1; + v437.index = 0; + v436 = v437; + block = 1; + break; + case 1: + return ( v436 ); + } + } +} + +function ll_newlist__List_Dict_String__String__LlT_Signed (length_4) { + var v663,v664; + var block = 0; + for(;;){ + switch(block){ + case 0: + v664 = ll_newlist__List_Dict_String__String__LlT_Signed_0 ( length_4 ); + v663 = v664; + block = 1; + break; + case 1: + return ( v663 ); + } + } +} + +function scroll_down_if_needed (mbox_2) { + var v666,v667,v668,v669,v670; + var block = 0; + for(;;){ + switch(block){ + case 0: + v666 = __consts_0.py____test_rsession_webjs_Options.oscroll; + v667 = v666; + if (v667 == false) + { + block = 1; + break; + } + v668 = mbox_2; block = 2; break; case 2: - v1023 = v1022; - v1024 = v1023[index_7]; - v1013 = v1024; - block = 3; - break; - case 3: - return ( v1013 ); - case 4: - v1026 = (v1025+length_2); - l_15 = l_16; - index_6 = v1026; - length_1 = length_2; + v669 = v668.parentNode; + v670 = v669; + v670.scrollIntoView(); block = 1; break; + case 1: + return ( undefined ); + } + } +} + +function ll_append__List_Dict_String__String___Dict_String__String_ (l_9,newitem_0) { + var v689,v690,v691,v692,v694; + var block = 0; + for(;;){ + switch(block){ + case 0: + v689 = l_9; + v690 = v689.length; + v691 = l_9; + v692 = (v690+1); + v691.length = v692; + v694 = l_9; + v694[v690]=newitem_0; + block = 1; + break; + case 1: + return ( undefined ); + } + } +} + +function ll_getitem__dum_nocheckConst_List_ExternalType__Signed (l_14,index_5) { + var v1038,v1039,v1040,v1041,v1042,l_15,index_6,length_5,v1043,v1045,index_7,v1047,v1048,v1049,l_16,length_6,v1050,v1051; + var block = 0; + for(;;){ + switch(block){ + case 0: + v1039 = l_14; + v1040 = v1039.length; + v1041 = (index_5<0); + v1042 = v1041; + l_15 = l_14; + index_6 = index_5; + length_5 = v1040; + if (v1042 == false) + { + block = 1; + break; + } + l_16 = l_14; + length_6 = v1040; + v1050 = index_5; + block = 4; + break; + case 1: + v1043 = (index_6>=0); + undefined; + v1045 = (index_6=0); - undefined; - v412 = (start_0<=v409); - undefined; - v414 = (v409-start_0); - undefined; - v416 = ll_newlist__List_Dict_String__String__LlT_Signed ( undefined,v414 ); - l1_1 = l1_0; - i_4 = start_0; - j_0 = 0; - l_6 = v416; - len1_0 = v409; + v938 = (2<=base_0); + v939 = v938; + if (v939 == false) + { + block = 1; + break; + } + s_3 = s_2; + base_1 = base_0; + block = 3; + break; + case 1: + v940 = __consts_0.exceptions_ValueError; + v941 = v940.meta; + v942 = v940; + etype_6 = v941; + evalue_6 = v942; + block = 2; + break; + case 3: + v943 = (base_1<=36); + s_4 = s_3; + base_2 = base_1; + v944 = v943; + block = 4; + break; + case 4: + v945 = v944; + if (v945 == false) + { + block = 1; + break; + } + s_5 = s_4; + base_3 = base_2; + block = 5; + break; + case 5: + v946 = s_5; + v947 = v946.length; + s_6 = s_5; + base_4 = base_3; + i_7 = 0; + strlen_0 = v947; + block = 6; + break; + case 6: + v948 = (i_7=base_15); + v998 = v997; + s_21 = s_20; + base_16 = base_15; + i_21 = i_20; + digit_1 = digit_0; + sign_12 = sign_11; + strlen_15 = strlen_14; + v999 = val_11; + if (v998 == false) + { + block = 26; + break; + } + s_11 = s_20; + val_1 = val_11; + i_12 = i_20; + sign_1 = sign_11; + strlen_5 = strlen_14; + block = 12; + break; + case 26: + v1000 = (v999*base_16); + v1001 = (v1000+digit_1); + v1002 = (i_21+1); + s_10 = s_21; + base_8 = base_16; + val_0 = v1001; + i_11 = v1002; + sign_0 = sign_12; + strlen_4 = strlen_15; + block = 11; + break; + case 27: + v1003 = (c_4<=90); + s_23 = s_22; + base_18 = base_17; + c_5 = c_4; + val_13 = val_12; + i_23 = i_22; + sign_14 = sign_13; + strlen_17 = strlen_16; + v1004 = v1003; + block = 28; + break; + case 28: + v1005 = v1004; + s_16 = s_23; + base_11 = base_18; + c_1 = c_5; + val_7 = val_13; + i_16 = i_23; + sign_7 = sign_14; + strlen_10 = strlen_17; + if (v1005 == false) + { + block = 21; + break; + } + s_24 = s_23; + base_19 = base_18; + val_14 = val_13; + i_24 = i_23; + sign_15 = sign_14; + strlen_18 = strlen_17; + v1006 = c_5; + block = 29; + break; + case 29: + v1007 = (v1006-65); + v1008 = (v1007+10); + s_20 = s_24; + base_15 = base_19; + val_11 = val_14; + i_20 = i_24; + digit_0 = v1008; + sign_11 = sign_15; + strlen_14 = strlen_18; + block = 25; + break; + case 30: + v1009 = (c_6<=122); + s_26 = s_25; + base_21 = base_20; + c_7 = c_6; + val_16 = val_15; + i_26 = i_25; + sign_17 = sign_16; + strlen_20 = strlen_19; + v1010 = v1009; + block = 31; + break; + case 31: + v1011 = v1010; + s_15 = s_26; + base_10 = base_21; + c_0 = c_7; + val_6 = val_16; + i_15 = i_26; + sign_6 = sign_17; + strlen_9 = strlen_20; + if (v1011 == false) + { + block = 20; + break; + } + s_27 = s_26; + base_22 = base_21; + val_17 = val_16; + i_27 = i_26; + sign_18 = sign_17; + strlen_21 = strlen_20; + v1012 = c_7; + block = 32; + break; + case 32: + v1013 = (v1012-97); + v1014 = (v1013+10); + s_20 = s_27; + base_15 = base_22; + val_11 = val_17; + i_20 = i_27; + digit_0 = v1014; + sign_11 = sign_18; + strlen_14 = strlen_21; + block = 25; + break; + case 33: + v1016 = (v1015+1); + s_10 = s_28; + base_8 = base_23; + val_0 = 0; + i_11 = v1016; + sign_0 = 1; + strlen_4 = strlen_22; + block = 11; + break; + case 34: + v1018 = (v1017+1); + s_10 = s_29; + base_8 = base_24; + val_0 = 0; + i_11 = v1018; + sign_0 = -1; + strlen_4 = strlen_23; + block = 11; + break; + case 35: + v1019 = s_30; + v1020 = v1019.charAt(i_28); + v1021 = (v1020==' '); + v1022 = v1021; + s_7 = s_30; + base_5 = base_25; + i_8 = i_28; + strlen_1 = strlen_24; + if (v1022 == false) + { + block = 7; + break; + } + s_31 = s_30; + base_26 = base_25; + strlen_25 = strlen_24; + v1023 = i_28; + block = 36; + break; + case 36: + v1024 = (v1023+1); + s_6 = s_31; + base_4 = base_26; + i_7 = v1024; + strlen_0 = strlen_25; + block = 6; + break; + case 2: + throw(evalue_6); + case 16: + return ( v937 ); + } + } +} + +function ll_strlen__String (obj_1) { + var v1025,v1026,v1027; + var block = 0; + for(;;){ + switch(block){ + case 0: + v1026 = obj_1; + v1027 = v1026.length; + v1025 = v1027; block = 1; break; case 1: - v417 = (i_40); + undefined; + v1061 = (length_7-1); + v1062 = l_18; + v1063 = v1062[v1061]; + ll_null_item__List_String_ ( l_18 ); + res_0 = v1063; + newlength_0 = v1061; + v1065 = l_18; + block = 2; + break; + case 2: + v1066 = v1065; + v1066.length = newlength_0; + v1056 = res_0; + block = 3; + break; + case 3: + return ( v1056 ); + } + } +} + +function ll_newlist__List_Dict_String__String__LlT_Signed_0 (length_8) { + var v1068,v1069,v1070; + var block = 0; + for(;;){ + switch(block){ + case 0: + v1069 = new Array(); + v1070 = v1069; + v1070.length = length_8; + v1068 = v1069; + block = 1; + break; + case 1: + return ( v1068 ); + } + } +} + +function ll_null_item__List_String_ (lst_2) { + var block = 0; + for(;;){ + switch(block){ + case 0: + undefined; + block = 1; + break; + case 1: + return ( undefined ); + } + } +} + +function ll_int2dec__Signed (i_29) { + var v1072,v1073; + var block = 0; + for(;;){ + switch(block){ + case 0: + v1073 = i_29.toString(); + v1072 = v1073; + block = 1; + break; + case 1: + return ( v1072 ); } } } @@ -3573,164 +3658,6 @@ exceptions_ValueError.prototype.toString = function (){ } inherits(exceptions_ValueError,exceptions_StandardError); -function skip_come_back (msg_32) { - var v1027,v1028,v1029,v1030; - var block = 0; - for(;;){ - switch(block){ - case 0: - v1028 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__58 ); - v1029 = ll_dict_getitem__Dict_String__String__String ( msg_32,__consts_0.const_str__104 ); - __consts_0.const_tuple__34[v1029]=v1028; - block = 1; - break; - case 1: - return ( v1027 ); - } - } -} - -function ll_int2dec__Signed (i_7) { - var v900,v901; - var block = 0; - for(;;){ - switch(block){ - case 0: - v901 = i_7.toString(); - v900 = v901; - block = 1; - break; - case 1: - return ( v900 ); - } - } -} - -function ll_pop_default__dum_nocheckConst_List_String_ (func_3,l_17) { - var v1031,v1032,v1033,l_18,length_3,v1034,v1035,v1036,v1037,v1038,v1039,res_0,newlength_0,v1040,v1041,v1042; - var block = 0; - for(;;){ - switch(block){ - case 0: - v1032 = l_17; - v1033 = v1032.length; - l_18 = l_17; - length_3 = v1033; - block = 1; - break; - case 1: - v1034 = (length_3>0); - undefined; - v1036 = (length_3-1); - v1037 = l_18; - v1038 = v1037[v1036]; - ll_null_item__List_String_ ( l_18 ); - res_0 = v1038; - newlength_0 = v1036; - v1040 = l_18; - block = 2; - break; - case 2: - v1041 = v1040; - v1041.length = newlength_0; - v1031 = res_0; - block = 3; - break; - case 3: - return ( v1031 ); - } - } -} - -function fail_come_back (msg_31) { - var v993,v994,v995,v996,v997,v998,v999,v1000,v1001,v1002; - var block = 0; - for(;;){ - switch(block){ - case 0: - v994 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__105 ); - v995 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__106 ); - v996 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__107 ); - v997 = new Object(); - v997.item0 = v994; - v997.item1 = v995; - v997.item2 = v996; - v1001 = ll_dict_getitem__Dict_String__String__String ( msg_31,__consts_0.const_str__104 ); - __consts_0.const_tuple[v1001]=v997; - block = 1; - break; - case 1: - return ( v993 ); - } - } -} - -function ll_strlen__String (obj_1) { - var v990,v991,v992; - var block = 0; - for(;;){ - switch(block){ - case 0: - v991 = obj_1; - v992 = v991.length; - v990 = v992; - block = 1; - break; - case 1: - return ( v990 ); - } - } -} - -function ll_null_item__List_String_ (lst_2) { - var v1045,v1046; - var block = 0; - for(;;){ - switch(block){ - case 0: - undefined; - block = 1; - break; - case 1: - return ( v1045 ); - } - } -} - -function ll_newlist__List_Dict_String__String__LlT_Signed (self_1,length_4) { - var v1043,v1044; - var block = 0; - for(;;){ - switch(block){ - case 0: - v1044 = ll_newlist__List_Dict_String__String__LlT_Signed_0 ( undefined,length_4 ); - v1043 = v1044; - block = 1; - break; - case 1: - return ( v1043 ); - } - } -} - -function ll_newlist__List_Dict_String__String__LlT_Signed_0 (LIST_2,length_5) { - var v1047,v1048,v1049,v1050; - var block = 0; - for(;;){ - switch(block){ - case 0: - v1048 = new Array(); - v1049 = v1048; - v1049.length = length_5; - v1047 = v1048; - block = 1; - break; - case 1: - return ( v1047 ); - } - } -} - function Object_meta () { this.class_ = __consts_0.None; } @@ -3747,6 +3674,30 @@ 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 py____test_rsession_webjs_Options_meta () { +} + +py____test_rsession_webjs_Options_meta.prototype.toString = function (){ + return ( '' ); +} + +inherits(py____test_rsession_webjs_Options_meta,Object_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 exceptions_StandardError_meta () { } @@ -3755,6 +3706,30 @@ exceptions_StandardError_meta.prototype.toString = function (){ } inherits(exceptions_StandardError_meta,exceptions_Exception_meta); +function exceptions_ValueError_meta () { +} + +exceptions_ValueError_meta.prototype.toString = function (){ + return ( '' ); +} + +inherits(exceptions_ValueError_meta,exceptions_StandardError_meta); +function exceptions_AssertionError_meta () { +} + +exceptions_AssertionError_meta.prototype.toString = function (){ + return ( '' ); +} + +inherits(exceptions_AssertionError_meta,exceptions_StandardError_meta); +function py____magic_assertion_AssertionError_meta () { +} + +py____magic_assertion_AssertionError_meta.prototype.toString = function (){ + return ( '' ); +} + +inherits(py____magic_assertion_AssertionError_meta,exceptions_AssertionError_meta); function exceptions_LookupError_meta () { } @@ -3771,175 +3746,148 @@ exceptions_KeyError_meta.prototype.toString = function (){ } inherits(exceptions_KeyError_meta,exceptions_LookupError_meta); -function py____test_rsession_webjs_Options_meta () { -} - -py____test_rsession_webjs_Options_meta.prototype.toString = function (){ - return ( '' ); -} - -inherits(py____test_rsession_webjs_Options_meta,Object_meta); -function exceptions_StopIteration_meta () { -} - -exceptions_StopIteration_meta.prototype.toString = function (){ - return ( '' ); -} - -inherits(exceptions_StopIteration_meta,exceptions_Exception_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 exceptions_ValueError_meta () { -} - -exceptions_ValueError_meta.prototype.toString = function (){ - return ( '' ); -} - -inherits(exceptions_ValueError_meta,exceptions_StandardError_meta); __consts_0 = {}; -__consts_0.const_str__67 = ' failures, '; -__consts_0.const_str__26 = "show_host('"; -__consts_0.const_str__82 = '_txt_'; -__consts_0.const_tuple__80 = {}; -__consts_0.const_str__90 = 'a'; -__consts_0.const_str__94 = 'class'; -__consts_0.const_str__38 = ']'; -__consts_0.const_tuple__33 = undefined; -__consts_0.const_list = undefined; -__consts_0.const_str__50 = 'ReceivedItemOutcome'; -__consts_0.const_str__83 = "show_info('"; -__consts_0.const_str__59 = '- skipped ('; -__consts_0.const_str__30 = 'hide_host()'; -__consts_0.const_str__84 = 'hide_info()'; -__consts_0.const_str__42 = '#message'; -__consts_0.ExportedMethods = new ExportedMethods(); -__consts_0.exceptions_ValueError__109 = exceptions_ValueError; -__consts_0.exceptions_ValueError_meta = new exceptions_ValueError_meta(); -__consts_0.exceptions_ValueError = new exceptions_ValueError(); -__consts_0.const_str__18 = 'tbody'; -__consts_0.const_str__102 = 'Py.test [crashed]'; -__consts_0.const_str__60 = ')'; -__consts_0.const_str__45 = 'main_table'; -__consts_0.const_str__76 = 'Tests [interrupted]'; -__consts_0.exceptions_KeyError__115 = exceptions_KeyError; -__consts_0.const_str__27 = "')"; -__consts_0.const_str__54 = 'RsyncFinished'; -__consts_0.const_list__117 = []; -__consts_0.Window = window; -__consts_0.py____test_rsession_webjs_Globals__118 = py____test_rsession_webjs_Globals; -__consts_0.py____test_rsession_webjs_Globals_meta = new py____test_rsession_webjs_Globals_meta(); -__consts_0.const_str__66 = ' run, '; -__consts_0.py____test_rsession_webjs_Options__113 = py____test_rsession_webjs_Options; +__consts_0.py____test_rsession_webjs_Options__116 = py____test_rsession_webjs_Options; __consts_0.py____test_rsession_webjs_Options_meta = new py____test_rsession_webjs_Options_meta(); -__consts_0.const_str__106 = 'stdout'; -__consts_0.const_str = 'aa'; -__consts_0.const_str__95 = 'error'; -__consts_0.const_str__68 = ' skipped'; -__consts_0.const_str__65 = 'FINISHED '; -__consts_0.const_str__36 = 'Rsyncing'; -__consts_0.const_str__10 = 'info'; -__consts_0.const_str__20 = 'td'; -__consts_0.const_str__23 = 'true'; -__consts_0.const_tuple__31 = undefined; -__consts_0.const_tuple__81 = {}; -__consts_0.exceptions_StopIteration__111 = exceptions_StopIteration; +__consts_0.const_str__71 = ' failures, '; +__consts_0.const_str__34 = "show_host('"; +__consts_0.const_str__84 = '_txt_'; +__consts_0.exceptions_StopIteration__114 = exceptions_StopIteration; __consts_0.exceptions_StopIteration_meta = new exceptions_StopIteration_meta(); -__consts_0.const_str__93 = 'F'; -__consts_0.const_str__29 = 'onmouseout'; -__consts_0.const_str__46 = 'type'; -__consts_0.const_str__87 = 'passed'; -__consts_0.const_str__100 = '.'; -__consts_0.const_str__52 = 'FailedTryiter'; -__consts_0.const_tuple__34 = {}; -__consts_0.const_str__25 = '#ff0000'; -__consts_0.const_str__5 = 'checked'; -__consts_0.const_str__35 = 'Tests'; -__consts_0.const_str__57 = 'fullitemname'; -__consts_0.const_str__85 = 'table'; -__consts_0.const_str__69 = 'Py.test '; -__consts_0.const_str__64 = 'skips'; -__consts_0.const_str__56 = 'CrashedExecution'; -__consts_0.const_str__17 = '\n'; -__consts_0.const_str__40 = 'pre'; -__consts_0.const_str__75 = 'Py.test [interrupted]'; -__consts_0.const_str__15 = '\n======== Stdout: ========\n'; -__consts_0.const_str__72 = '#00ff00'; -__consts_0.const_str__12 = 'beige'; -__consts_0.const_str__78 = 'length'; -__consts_0.const_tuple = {}; -__consts_0.const_str__105 = 'traceback'; -__consts_0.const_str__44 = 'testmain'; -__consts_0.const_str__98 = "javascript:show_skip('"; -__consts_0.const_str__74 = '['; -__consts_0.const_str__103 = 'Tests [crashed]'; -__consts_0.const_str__58 = 'reason'; -__consts_0.const_str__91 = "javascript:show_traceback('"; -__consts_0.const_str__39 = 'messagebox'; -__consts_0.exceptions_StopIteration = new exceptions_StopIteration(); -__consts_0.const_str__99 = 's'; -__consts_0.const_str__62 = 'run'; -__consts_0.const_str__53 = 'SkippedTryiter'; -__consts_0.const_str__89 = 'None'; -__consts_0.const_str__6 = 'True'; -__consts_0.const_str__96 = '/'; -__consts_0.const_str__71 = 'hostkey'; -__consts_0.const_str__63 = 'fails'; -__consts_0.const_str__47 = 'ItemStart'; -__consts_0.const_str__77 = 'itemname'; -__consts_0.const_str__51 = 'TestFinished'; -__consts_0.const_str__7 = 'jobs'; -__consts_0.const_str__16 = '\n========== Stderr: ==========\n'; -__consts_0.const_tuple__86 = {}; -__consts_0.const_str__107 = 'stderr'; -__consts_0.const_str__92 = 'href'; -__consts_0.const_str__9 = ''; +__consts_0.const_str__62 = 'a'; +__consts_0.const_str__95 = 'class'; +__consts_0.const_str__43 = ']'; +__consts_0.const_tuple__26 = undefined; +__consts_0.py____test_rsession_webjs_Globals__121 = py____test_rsession_webjs_Globals; +__consts_0.py____test_rsession_webjs_Globals_meta = new py____test_rsession_webjs_Globals_meta(); +__consts_0.const_tuple__24 = undefined; +__consts_0.const_list__120 = []; +__consts_0.const_str__10 = ''; __consts_0.py____test_rsession_webjs_Globals = new py____test_rsession_webjs_Globals(); -__consts_0.const_str__11 = 'visible'; -__consts_0.const_str__97 = 'False'; -__consts_0.const_str__49 = 'HostRSyncRootReady'; -__consts_0.const_str__28 = 'onmouseover'; -__consts_0.const_str__61 = '- FAILED TO LOAD MODULE'; -__consts_0.const_str__79 = '[0/'; +__consts_0.const_str__51 = 'ReceivedItemOutcome'; +__consts_0.const_tuple = {}; +__consts_0.const_str__60 = '- skipped ('; +__consts_0.const_str__38 = 'hide_host()'; +__consts_0.const_str__86 = 'hide_info()'; +__consts_0.const_str__22 = '#message'; +__consts_0.ExportedMethods = new ExportedMethods(); +__consts_0.const_str__3 = 'tbody'; +__consts_0.const_tuple__23 = {}; +__consts_0.const_str__61 = ')'; +__consts_0.const_str__46 = 'main_table'; +__consts_0.const_str__107 = 'Tests [interrupted]'; +__consts_0.exceptions_KeyError__118 = exceptions_KeyError; +__consts_0.const_str__35 = "')"; +__consts_0.const_str__55 = 'RsyncFinished'; +__consts_0.Window = window; +__consts_0.const_str__70 = ' run, '; +__consts_0.py____magic_assertion_AssertionError__112 = py____magic_assertion_AssertionError; +__consts_0.const_str__104 = 'stdout'; +__consts_0.const_str = 'aa'; +__consts_0.const_str__96 = 'error'; __consts_0.py____test_rsession_webjs_Options = new py____test_rsession_webjs_Options(); -__consts_0.const_str__48 = 'SendItem'; -__consts_0.const_str__70 = 'fullmodulename'; -__consts_0.const_str__88 = 'skipped'; -__consts_0.const_str__24 = 'hostsbody'; -__consts_0.const_str__73 = '[0]'; -__consts_0.const_str__8 = 'hidden'; -__consts_0.const_str__14 = '====== Traceback: =========\n'; -__consts_0.const_str__19 = 'tr'; -__consts_0.const_str__104 = 'item_name'; -__consts_0.const_str__37 = 'Tests ['; -__consts_0.Document = document; +__consts_0.const_str__69 = 'FINISHED '; +__consts_0.const_str__41 = 'Rsyncing'; +__consts_0.const_str__17 = 'info'; +__consts_0.const_str__9 = 'hidden'; +__consts_0.const_str__39 = 'true'; +__consts_0.exceptions_ValueError__110 = exceptions_ValueError; +__consts_0.const_str__94 = 'F'; +__consts_0.const_str__37 = 'onmouseout'; +__consts_0.const_tuple__88 = {}; +__consts_0.const_str__47 = 'type'; +__consts_0.const_str__91 = 'passed'; +__consts_0.const_str__101 = '.'; +__consts_0.const_str__53 = 'FailedTryiter'; +__consts_0.exceptions_ValueError_meta = new exceptions_ValueError_meta(); +__consts_0.const_list = undefined; +__consts_0.const_str__33 = '#ff0000'; +__consts_0.const_str__30 = 'checked'; +__consts_0.const_str__19 = 'messagebox'; +__consts_0.const_str__58 = 'fullitemname'; +__consts_0.const_str__87 = 'table'; +__consts_0.const_str__64 = 'href'; +__consts_0.const_str__68 = 'skips'; +__consts_0.const_str__57 = 'CrashedExecution'; +__consts_0.const_str__15 = '\n'; +__consts_0.py____magic_assertion_AssertionError_meta = new py____magic_assertion_AssertionError_meta(); +__consts_0.const_str__20 = 'pre'; +__consts_0.const_str__106 = 'Py.test [interrupted]'; +__consts_0.const_str__13 = '\n======== Stdout: ========\n'; +__consts_0.const_str__76 = '#00ff00'; +__consts_0.const_str__18 = 'beige'; +__consts_0.const_str__80 = 'length'; +__consts_0.const_str__103 = 'traceback'; +__consts_0.const_str__45 = 'testmain'; +__consts_0.const_str__99 = "javascript:show_skip('"; +__consts_0.const_str__78 = '['; +__consts_0.const_str__90 = 'Tests [crashed]'; +__consts_0.const_str__59 = 'reason'; +__consts_0.const_str__63 = "javascript:show_traceback('"; +__consts_0.const_str__40 = 'Tests'; __consts_0.exceptions_KeyError_meta = new exceptions_KeyError_meta(); __consts_0.exceptions_KeyError = new exceptions_KeyError(); -__consts_0.const_str__55 = 'InterruptedExecution'; -__consts_0.const_str__4 = 'opt_scroll'; -__consts_0.exceptions_ValueError_meta.class_ = __consts_0.exceptions_ValueError__109; -__consts_0.exceptions_ValueError.meta = __consts_0.exceptions_ValueError_meta; -__consts_0.py____test_rsession_webjs_Globals_meta.class_ = __consts_0.py____test_rsession_webjs_Globals__118; -__consts_0.py____test_rsession_webjs_Options_meta.class_ = __consts_0.py____test_rsession_webjs_Options__113; -__consts_0.exceptions_StopIteration_meta.class_ = __consts_0.exceptions_StopIteration__111; -__consts_0.exceptions_StopIteration.meta = __consts_0.exceptions_StopIteration_meta; +__consts_0.py____magic_assertion_AssertionError = new py____magic_assertion_AssertionError(); +__consts_0.const_str__66 = 'run'; +__consts_0.const_str__54 = 'SkippedTryiter'; +__consts_0.const_str__93 = 'None'; +__consts_0.const_str__85 = "show_info('"; +__consts_0.const_str__31 = 'True'; +__consts_0.const_str__97 = '/'; +__consts_0.const_str__75 = 'hostkey'; +__consts_0.const_str__67 = 'fails'; +__consts_0.const_str__48 = 'ItemStart'; +__consts_0.const_str__79 = 'itemname'; +__consts_0.const_str__52 = 'TestFinished'; +__consts_0.const_str__2 = 'jobs'; +__consts_0.const_str__14 = '\n========== Stderr: ==========\n'; +__consts_0.const_tuple__83 = {}; +__consts_0.const_str__72 = ' skipped'; +__consts_0.const_str__105 = 'stderr'; +__consts_0.const_str__73 = 'Py.test '; +__consts_0.const_str__100 = 's'; +__consts_0.exceptions_StopIteration = new exceptions_StopIteration(); +__consts_0.const_str__7 = 'visible'; +__consts_0.const_str__98 = 'False'; +__consts_0.const_str__50 = 'HostRSyncRootReady'; +__consts_0.const_str__36 = 'onmouseover'; +__consts_0.const_str__65 = '- FAILED TO LOAD MODULE'; +__consts_0.const_str__81 = '[0/'; +__consts_0.const_tuple__82 = {}; +__consts_0.const_str__49 = 'SendItem'; +__consts_0.const_str__74 = 'fullmodulename'; +__consts_0.const_str__92 = 'skipped'; +__consts_0.const_str__32 = 'hostsbody'; +__consts_0.const_str__77 = '[0]'; +__consts_0.const_str__6 = 'td'; +__consts_0.const_str__12 = '====== Traceback: =========\n'; +__consts_0.const_str__5 = 'tr'; +__consts_0.const_str__102 = 'item_name'; +__consts_0.const_str__42 = 'Tests ['; +__consts_0.exceptions_ValueError = new exceptions_ValueError(); +__consts_0.Document = document; +__consts_0.const_str__89 = 'Py.test [crashed]'; +__consts_0.const_str__56 = 'InterruptedExecution'; +__consts_0.const_str__29 = 'opt_scroll'; +__consts_0.py____test_rsession_webjs_Options_meta.class_ = __consts_0.py____test_rsession_webjs_Options__116; +__consts_0.exceptions_StopIteration_meta.class_ = __consts_0.exceptions_StopIteration__114; +__consts_0.py____test_rsession_webjs_Globals_meta.class_ = __consts_0.py____test_rsession_webjs_Globals__121; __consts_0.py____test_rsession_webjs_Globals.odata_empty = true; -__consts_0.py____test_rsession_webjs_Globals.osessid = __consts_0.const_str__9; -__consts_0.py____test_rsession_webjs_Globals.ohost = __consts_0.const_str__9; +__consts_0.py____test_rsession_webjs_Globals.osessid = __consts_0.const_str__10; +__consts_0.py____test_rsession_webjs_Globals.ohost = __consts_0.const_str__10; __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__31; +__consts_0.py____test_rsession_webjs_Globals.ohost_dict = __consts_0.const_tuple__24; __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__117; +__consts_0.py____test_rsession_webjs_Globals.opending = __consts_0.const_list__120; __consts_0.py____test_rsession_webjs_Globals.orsync_done = false; -__consts_0.py____test_rsession_webjs_Globals.ohost_pending = __consts_0.const_tuple__33; +__consts_0.py____test_rsession_webjs_Globals.ohost_pending = __consts_0.const_tuple__26; __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_KeyError_meta.class_ = __consts_0.exceptions_KeyError__115; +__consts_0.exceptions_ValueError_meta.class_ = __consts_0.exceptions_ValueError__110; +__consts_0.py____magic_assertion_AssertionError_meta.class_ = __consts_0.py____magic_assertion_AssertionError__112; +__consts_0.exceptions_KeyError_meta.class_ = __consts_0.exceptions_KeyError__118; __consts_0.exceptions_KeyError.meta = __consts_0.exceptions_KeyError_meta; +__consts_0.py____magic_assertion_AssertionError.meta = __consts_0.py____magic_assertion_AssertionError_meta; +__consts_0.exceptions_StopIteration.meta = __consts_0.exceptions_StopIteration_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 2e8912ccb..2e10a0123 100644 --- a/py/test/rsession/webjs.py +++ b/py/test/rsession/webjs.py @@ -212,10 +212,16 @@ def process(msg): return True tr = create_elem("tr") td = create_elem("td") + a = create_elem("a") + a.setAttribute("href", "javascript:show_traceback('%s')" % ( + msg['fullitemname'],)) txt = create_text_elem("- FAILED TO LOAD MODULE") - td.appendChild(txt) + a.appendChild(txt) + td.appendChild(a) tr.appendChild(td) module_part.appendChild(tr) + item_name = msg['fullitemname'] + exported_methods.show_fail(item_name, fail_come_back) elif msg['type'] == 'SkippedTryiter': module_part = get_elem(msg['fullitemname']) if not module_part: