Re: NEW: geotag.py

2018-02-02 Thread lewis
Hi Terry, Thanks for the fix. I see you also updated the encoding for the Quit button ("TERMINATING SERVER"). I thought I might be spending an afternoon learning how to use git diff :) Maybe soon I have updated the docstring using the instructions from this thread and attached the file. Ple

Re: NEW: geotag.py

2018-02-02 Thread Terry Brown
On Fri, 2 Feb 2018 05:30:12 -0800 (PST) "Edward K. Ream" wrote: > > "C:\Users\lewis\AppData\Local\Programs\Python\Python36\lib\socketserver.py", > > > > line 775, in write > > self._sock.sendall(b) > > TypeError: a bytes-like object is required, not 'str' > > > > Can you explain how to iden

Re: NEW: geotag.py

2018-02-02 Thread Edward K. Ream
On Friday, February 2, 2018 at 7:03:53 AM UTC-6, lewis wrote: > File > "C:\Users\lewis\AppData\Local\Programs\Python\Python36\lib\socketserver.py", > line 775, in write > self._sock.sendall(b) > TypeError: a bytes-like object is required, not 'str' > > Can you explain how to identify the

Re: NEW: geotag.py

2018-02-02 Thread lewis
For my own learning I have used an example to show that I can change a str type to bytes with b = g.toEncodedString(my_string) and confirmed the change with the type() function. But from the log I can't recognise what the str is that needs changing in line 184: [snip] File "N:\git\leo-edito

Re: NEW: geotag.py

2018-01-26 Thread Edward K. Ream
On Fri, Jan 26, 2018 at 3:43 AM, lewis wrote: > TypeError: a bytes-like object is required, not 'str' > > I found this at stackoverflow: In Python 3 (but not in Python 2), str and > bytes are distinct types that can't be mixed. You can't write a str > directly to a socket; you have to use bytes.

Re: NEW: geotag.py

2018-01-26 Thread lewis
TypeError: a bytes-like object is required, not 'str' I found this at stackoverflow: In Python 3 (but not in Python 2), str and bytes are distinct types that can't be mixed. You can't write a str directly to a socket; you have to use bytes. But my python is extremely basic and I'm way out of my

Re: NEW: geotag.py

2018-01-25 Thread lewis
Change to pygeotag.py done. Here is the console log: [snip] File "N:\git\leo-editor\leo\plugins\pygeotag\pygeotag.py", line 184, in do_GET os.path.join(self.owner.basedir,self.staticMap[path[0]])).read()) File "C:\Users\lewis\AppData\Local\Programs\Python\Python36\lib\socketserver.py", l

Re: NEW: geotag.py

2018-01-25 Thread lewis
At first I thought the change was in the plugin line 2: #@+node:tbrown.20091214233510.5347: * @file geotag.py But having read the log I see it is leo\plugins\pygeotag\pygeotag.py Lewis On Friday, January 26, 2018 at 3:44:22 PM UTC+11, Terry Brown wrote: > > > I think the up front error is that `

Re: NEW: geotag.py

2018-01-25 Thread Terry Brown
On Thu, 25 Jan 2018 18:53:14 -0800 (PST) lewis wrote: > Hi Terry, > > If I give Alt-X geotag-open-server-page, Leo opens a browser window > but rather than showing the google map, it is completely blank. > Attrib_edi.py is active. I tried restarting leo but it didn't help. I think the up front

Re: NEW: geotag.py

2018-01-25 Thread lewis
Hi Terry, If I give Alt-X geotag-open-server-page, Leo opens a browser window but rather than showing the google map, it is completely blank. Attrib_edi.py is active. I tried restarting leo but it didn't help. Here is the console log: Leo Log Window Leo 5.6, build 20180125190418, Thu Jan 25 19:0

Re: NEW: geotag.py

2009-12-15 Thread TL
Thanks. It may come in handy someday but, as you pointed out, one major benefit will come when you can invoke the plugin on a previously tagged node and have the location displayed on the google map. I also think users will want some way to keep the geotag from affecting the content written by Le

Re: NEW: geotag.py

2009-12-15 Thread Terry Brown
On Tue, 15 Dec 2009 05:14:43 -0800 (PST) TL wrote: > I'm intrigued but new to geotags and a little confused. Will the > "geotag" in the subnode contain the geographic location of your > computer at the time the plugin is invoked based on its IP address or > is there some way to specify the geogr

Re: NEW: geotag.py

2009-12-15 Thread TL
I'm intrigued but new to geotags and a little confused. Will the "geotag" in the subnode contain the geographic location of your computer at the time the plugin is invoked based on its IP address or is there some way to specify the geographic location you want associated with the data in Leo? Not

NEW: geotag.py

2009-12-14 Thread Terry Brown
New plugin pushed: geotag.py When enabled, starting leo starts a geotagging web app. on http://127.0.0.1:8008/ (*) There are two commands available via Alt-X or from the plugin's submenu. geotag-open-server-page opens a browser to view the geotagging web app. geotag-tag-node