It seems there is a limit to how many open tabs it can deal with. Do we 
know what that number is? I was trying to have it deal with 40 open tabs. I 
tried it with 3 and it worked great.

Chris

On Saturday, November 23, 2013 4:45:31 PM UTC-8, Chris George wrote:
>
> Oops, no it didn't work.
>
> Traceback (most recent call last):
>   File "/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py", line 
> 570, in send_head
>     f = self.leo_actions.get_response()
>   File "/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py", line 
> 1130, in get_response
>     return self.add_bookmark()
>   File "/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py", line 
> 898, in add_bookmark
>     one_tab_links = json.loads(one_tab_links)
>   File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
>     return _default_decoder.decode(s)
>   File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
>     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>   File "/usr/lib/python2.7/json/decoder.py", line 381, in raw_decode
>     obj, end = self.scan_once(s, idx)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xbb in position 0: 
> invalid start byte
> error: uncaptured python exception, closing channel 
> <leo.plugins.mod_http.RequestHandler object at 0x5daf850> (<type 
> 'exceptions.UnicodeDecodeError'>:'utf8' codec can't decode byte 0xbb in 
> position 0: invalid start byte 
> [/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py|a_read|1205] 
> [/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py|handle_read_event|790]
>  
> [/usr/lib/python2.7/asyncore.py|handle_read_event|449] 
> [/usr/lib/python2.7/asynchat.py|handle_read|158] 
> [/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py|found_terminator|822]
>  
> [/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py|handle_request_line|812]
>  
> [/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py|do_GET|735] 
> [/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py|handle_data|782] 
> [/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py|send_head|570] 
> [/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py|get_response|1130]
>  
> [/home/chris/Working/leo/leo-editor/leo/plugins/mod_http.py|add_bookmark|898] 
> [/usr/lib/python2.7/json/__init__.py|loads|338] 
> [/usr/lib/python2.7/json/decoder.py|decode|365] 
> [/usr/lib/python2.7/json/decoder.py|raw_decode|381])
>
> I thought it did, but I was on the wrong page. I have updated the 
> javascript. How many tabs will it handle?
>
>
>
> Chris
>
>
> On Saturday, November 23, 2013 4:42:29 PM UTC-8, Chris George wrote:
>>
>> Thanks Fidel, that works great now.
>>
>> Chris
>>
>> On Saturday, November 23, 2013 3:56:40 PM UTC-8, Fidel N wrote:
>>>
>>> Thanks for the video
>>>
>>>
>>> Glad this was helpful.
>>>
>>> It still bookmarks individual pages properly, just fails on the onetab 
>>>> page.
>>>
>>>
>>> The javascript text changed, so you should have created a new bookmark 
>>> with the updated javascript included in the attached leo file, its this 
>>> one: 
>>>
>>> javascript:w=window; d=w.document; 
>>> ln=[];if(w.location.href.indexOf('one-tab')>-1){el=d.querySelectorAll('a');for
>>>  
>>> (i in el){ln.push({url:el[i].href,txt:el[i].innerHTML});};};w.open('
>>> http://localhost:8130/_/add/bkmk/?&name=<http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A8130%2F_%2Fadd%2Fbkmk%2F%3F%26name%3D&sa=D&sntz=1&usg=AFQjCNElahCM3HF4ZET9_W348BnVUTcn9Q>'
>>>  
>>> + escape(d.title) + '&selection=' + escape(window.getSelection()) + '&ln=' 
>>> + escape(JSON.stringify(ln)) + '&url=' + 
>>> escape(w.location.href),"_blank","toolbar=no, location=no, directories=no, 
>>> status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, 
>>> width=800, height=300, status=no");void(0);
>>>
>>> Did you update it? Does that fix it?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to