Re: leovue meets leo4sqlite

2018-03-03 Thread tscv11
I've had my own difficulties but the site is back up. I will be making the 
suggested updates, thanks.

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: leovue meets leo4sqlite

2018-03-03 Thread tscv11
It's clear that I need to keep better track of this google group. I must 
have turned off email notifications because I had no idea anyone was 
communicating with me. My apologies - I'll fix that. If I have an active 
Leo project I think I should keep tabs on what's happening here, so I will 
make the effort.

Looks like Leovue is progressing nicely, I will update my project today if 
possible.

Thanks, Joe!

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


leovue meets leo4sqlite

2018-02-28 Thread tscv11
The script 'leo4sqlite' is now online using leovue - the syntax 
highlighting works well.
I'm looking forward to trying some of leovue's more advanced capabilities.

My leovue/leo4sqlite demo lives here: 
https://tscv11.github.io/leo4sqlite/#/t/23/

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


@file repo for leo4sqlite

2018-02-10 Thread tscv11
I've created a new repository for the @file version of leo4sqlite because I 
prefer it to @auto when developing (so far).

https://github.com/tscv11/leo4sqlite-file

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: mark/unmark-first-parents

2018-02-04 Thread tscv11
After consulting Edward and Terry, the finished (I think) 
'unmark-first-parents' command now works as intended.

@language python

def unmark_first_parents():

"""unmark the first parent of each node, moving up the tree
to the top level. print the list of unmarked parents."""

parent_lst = []
old_p = p = c.p 

if p.isMarked():
c.clearMarked(p)

for nd in p.self_and_siblings():
if nd.v != old_p.v:
if nd.v.isMarked():
break

else:
for parent in p.parents():
if parent.isMarked():
c.clearMarked(parent)
parent_lst.append(parent.h)

c.redraw()

if parent_lst:
g.es("unmarked: " + str(parent_lst))

unmark_first_parents()



-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: mark/unmark-first-parents

2018-02-04 Thread tscv11
I have to confess that I don't understand why the following doesn't work.
If you see the problem I would love to to know what it is!

@language python

def unmark_first_parents():

"""unmark the first parent of each node, moving up the tree
to the top level. print the list of unmarked parents."""

parent_lst = []
old_p = p = c.p 

if p.isMarked():
c.clearMarked(p)

for nd in p.self_and_siblings():
if nd != old_p:
if nd.isMarked():
break

for parent in p.parents():
c.selectPosition(parent)
if parent.isMarked():
c.clearMarked(parent)
parent_lst.append(parent.h)

c.redraw()

if parent_lst:
g.es("unmarked: " + str(parent_lst))

unmark_first_parents()

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: mark/unmark-first-parents

2018-02-04 Thread tscv11
And this fixes yet another problem: 'mark-first-parents' seems solid now.
'unmark' still needs work but I see no reason I can't fix it as well. I'll 
post
it here if I succeed.


@language python

def mark_first_parents():

"""mark the first parent of each node, moving up the tree
to the top level. print the list of marked parents."""

parent_lst = []
p = c.p
old_p = p
if not p.isMarked():
c.markHeadline(p)

for parent in p.parents():
if parent:
c.selectPosition(parent)
if not parent.isMarked():
c.markHeadline(parent)
parent_lst.append(parent.h)

c.redraw()
if parent_lst:
g.es("marked: " + str(parent_lst))
    
c.selectPosition(old_p)

mark_first_parents()

 

> tscv11
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: mark/unmark-first-parents

2018-02-04 Thread tscv11
The 'mark-first-parents' command was unmarking nodes it shouldn't have
because 'mark' is a toggle command. This fixes that.

@language python

def mark_first_parents():

"""mark the first parent of each node, moving up the tree
to the top level. print the list of marked parents."""

parent_lst = []
p = c.p
old_p = p
c.markHeadline(p)

for parent in p.parents():
if parent:
c.selectPosition(parent)
if not parent.isMarked():
c.markHeadline(parent)
parent_lst.append(parent.h)

c.redraw()
if parent_lst:
g.es("marked: " + str(parent_lst))
    
    c.selectPosition(old_p)

mark_first_parents()



tscv11
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: mark/unmark-first-parents

2018-02-03 Thread tscv11
I think 'unmark-first-parents' needs more thought because you could unmark
nodes that lead to other nodes you've marked. Sorry about that.

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: mark/unmark-first-parents

2018-02-03 Thread tscv11
As an afterthought, for those who are wary of .leo files from 'unknown' 
sources, here's the code:

@language python

def mark_first_parents():

"""mark the first parent of each node, moving up the tree
to the top level. print the list of marked parents."""

parent_lst = []
p = c.p
old_p = p
c.markHeadline(p)

for parent in p.parents():
if parent:
c.selectPosition(parent)
c.markHeadline(parent)
parent_lst.append(parent.h)

c.redraw()
if parent_lst:
g.es("marked: " + str(parent_lst))

c.selectPosition(old_p)

mark_first_parents()

@language python

def unmark_first_parents():

"""unmark the first parent of each node, moving up the tree
to the top level. print the list of unmarked parents."""

parent_lst = []
p = c.p
c.clearMarked(p)

for parent in p.parents():
if parent:
c.selectPosition(parent)
c.clearMarked(parent)
parent_lst.append(parent.h)

c.redraw()
if parent_lst:
    g.es("unmarked: " + str(parent_lst))

unmark_first_parents()


- tscv11


-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


mark/unmark-first-parents

2018-02-03 Thread tscv11
Here are two basic commands I created for researching .leo files. I use them
to mark/unmark the 'breadcrumbs' to nodes when marking/unmarking those nodes
themselves (first parents, counting the way Leo does). I like knowing which
categories and subcategories contain nodes I've marked (the current node is
marked as well, naturally, showing where the breadcrumbs lead).

It's not the code I want to share, really, as much as the idea. My apologies
if this has been covered before. I did a cursory search in LeoRef.py and on
the net before posting this, but it's always possible I've missed something.
I also realize that this may only be useful for my own study habits - I'm
sorry if it doesn't apply to you.

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


mark-unmark-first-parents.leo
Description: Binary data


Re: 04ef7c: git-diff command is safe and useful

2018-01-27 Thread tscv11
Just a note:

Thank-you: I fell in love with this command on first use! This is
now my favorite way of looking at my changes, and it provides
even more proof that everything is better "Leo style."

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Pretty email code (was Re: A pattern for beginners: delete all of a node's children)

2018-01-20 Thread tscv11
Sorry - I see I 'dropped the ball' on this. Yes, Mr. EKR is correct, that 
is how I did it (the last formatting icon '{}').

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: leo4sqlite plugin

2018-01-18 Thread tscv11

*I thought you should have the latest version because of these changes:*
a) I fixed a 'fatal' error in @g.command('sqlite-extract-blob'), thanks to 
some
previous advice from you.

b) I also fixed dozens of pyflakes errors - everything checks out clean now 
and
the script appears to function as intended with all offending lines removed.

c) Finally, the docstring is thoroughly 'spiffed up' (even more).

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


leo4sqlite_plugin.leo
Description: Binary data


Re: leo4sqlite plugin

2018-01-17 Thread tscv11
I thought you might want to review the current docstring for leo4sqlite, so 
here it is.
Hopefully reST is okay - I saw it in another plugin's docstring so I went 
ahead.

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


leo4sqlite_docstring.leo
Description: Binary data


Re: leo4sqlite plugin

2018-01-16 Thread tscv11
Nice job, me! Yes, I finally finished it, and no one can take that away 
from me,
whether I ever hear from any of them again or not, whether anyone even
looks at it or not, *I *know I did *good*. Well done, me, it was worth
the effort!

I think I'll work on a YAML database application next.
Sounds good, self.

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Letter of appreciation

2018-01-16 Thread tscv11
Okay, here is my first stab at making leo4sqlite a plugin. Everything seems 
to
work and it has all of the same commands, etc. Let me know what you think!

tscv11


-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.
#@+leo-ver=5-thin
#@+node:tscv11.20180116135059.50: * @file leo4sqlite.py
#@+<< docstring >>
#@+node:tscv11.20180116135059.52: ** << docstring >>
'''
TODO

leo4sqlite.py
Import/export sqlite3 tables and insert, extract, view or open 'blobs' using Leo.

'''
#@-<< docstring >>
#@@language python
#@@tabwidth -4
__version__ = '0.6'
#@+<< version history >>
#@+node:tscv11.20180116135059.51: ** << version history >>
#@+at
# version history
# 
# leo4sqlite.py
# 
#  v0.5 - converting to plugin.
#  
#  v0.6 - plugin version nearly complete - added 'sqlite-clear-data', 'sqlite-reset-temp', and 'sqlite-purge-files'.
#@-<< version history >>
#@+<< imports >>
#@+node:tscv11.20180116135059.53: ** << imports >>
import leo.core.leoGlobals as g
from leo.core.leoQt import QtWidgets
import leo.commands.controlCommands as controlCommands

import subprocess
import sys, os, re
import sqlite3

from PyQt5.QtWidgets import QApplication
from PyQt5.QtWidgets import QWidget
from PyQt5.QtWidgets import QInputDialog
from PyQt5.QtWidgets import QLineEdit
from PyQt5.QtWidgets import QFileDialog
from PyQt5.QtWidgets import QDesktopWidget
from PyQt5.QtGui import QIcon
#@-<< imports >>
#@+others
#@+node:tscv11.20180116135059.54: ** init
def init ():

ok = g.app.gui.guiName() in ('qt','qttabs')
if ok:
if 1: # Create the commander class *before* the frame is created.
g.registerHandler('before-create-leo-frame',onCreate)
else: # Create the commander class *after* the frame is created.
g.registerHandler('after-create-leo-frame',onCreate)
g.plugin_signon(__name__)   
return ok
#@+node:tscv11.20180116135059.55: ** onCreate
def onCreate (tag, keys):

c = keys.get('c')
c.__ = {}
if c:
theLeo4SQLiteController = Leo4SQLiteController
#@+node:tscv11.20180116135059.56: ** class Leo4SQLiteController
class Leo4SQLiteController:

#@+others
#@+node:tscv11.20180116135059.57: *3* init
def init (self, c):

ok = g.app.gui.guiName() in ('qt','qttabs')
if ok:
if 1: # Create the commander class *before* the frame is created.
g.registerHandler('before-create-leo-frame',onCreate)
else: # Create the commander class *after* the frame is created.
g.registerHandler('after-create-leo-frame',onCreate)
g.plugin_signon(__name__)   
c.__ = {}
return ok

#@-others
#@+node:tscv11.20180116135059.58: ** class InputDialogs
class InputDialogs(QWidget):

#@+others
#@+node:tscv11.20180116135059.59: *3* __init__
def __init__(self, c):
super().__init__()
self.title = 'leo4sqlite'
self.left = 10
self.top = 10
self.width = 640
self.height = 480
self.initUI(c)
#@+node:tscv11.20180116135059.60: *3* initUI
def initUI(self, c):
self.setWindowTitle(self.title)
self.setGeometry(self.left, self.top, self.width, self.height)
qtRectangle = self.frameGeometry()
centerPoint = QDesktopWidget().availableGeometry().center()
qtRectangle.moveCenter(centerPoint)
self.move(qtRectangle.topLeft())

self.pick_action(c)
 
self.show() 


#@+node:tscv11.20180116135059.61: *3* get_settings
def get_settings(self, c):

p_lst = c.find_h(r'@directory.*\\leo4sqlite-output')
c.selectPosition(p_lst[0])
nd_str = str(p_lst[0])
folder = re.sub(r'^= num_rows:
break
new_row = re.sub(r'[\[\]\'\"\s]', "", str(rows[idx]))
new_row = re.sub(r',', ", ", new_row) 
cx += 1
idx += 1

p = p.parent()
p.contract()

g.es("done\n")
c.redraw()
headline = ("@tbl " + table_name)
tbl_node = g.findNodeAnywhere(c, (headline))
c.selectPosition(tbl_node)
#@-others
#@+node:tscv11.20180116135059.78: ** exports
#@+others
#@+node:tscv11.20180116135059.79: *3* export_table1
def export_table1(self

Re: Letter of appreciation

2018-01-15 Thread tscv11
Okay, I've finished adapting the script to a plugin. It has all of the same 
commands, etc.
I am attaching it here. Please remember that there is still streamlining 
and 'polishing' to
be done. Let me know what you think!

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.
#@+leo-ver=5-thin
#@+node:tscv11.20180115220216.2: * @file leo4sqlite.py
#@+<< docstring >>
#@+node:tscv11.20180115220216.3: ** << docstring >>
'''
leo4sqlite.py
Import/export sqlite3 tables and insert, extract, view or open 'blobs' using Leo.
'''
#@-<< docstring >>
#@@language python
#@@tabwidth -4
__version__ = '0.5'
#@+<< version history >>
#@+node:tscv11.20180115220216.4: ** << version history >>
#@+at
# leo4sqlite.py
# 
# v0.5 - converting to plugin.
#@-<< version history >>
#@+<< imports >>
#@+node:tscv11.20180115220216.5: ** << imports >>
import leo.core.leoGlobals as g
from leo.core.leoQt import QtWidgets
import leo.commands.controlCommands as controlCommands

import subprocess
import sys, os, re
import sqlite3

from PyQt5.QtWidgets import QApplication
from PyQt5.QtWidgets import QWidget
from PyQt5.QtWidgets import QInputDialog
from PyQt5.QtWidgets import QLineEdit
from PyQt5.QtWidgets import QFileDialog
from PyQt5.QtWidgets import QDesktopWidget
from PyQt5.QtGui import QIcon
#@-<< imports >>
#@+others
#@+node:tscv11.20180115220216.6: ** init
def init ():

ok = g.app.gui.guiName() in ('qt','qttabs')
if ok:
if 1: # Create the commander class *before* the frame is created.
g.registerHandler('before-create-leo-frame',onCreate)
else: # Create the commander class *after* the frame is created.
g.registerHandler('after-create-leo-frame',onCreate)
g.plugin_signon(__name__)   
return ok
#@+node:tscv11.20180115220216.7: ** onCreate
def onCreate (tag, keys):

c = keys.get('c')
c.__ = {}
if c:
theLeo4SQLiteController = Leo4SQLiteController
#@+node:tscv11.20180115220216.8: ** class Leo4SQLiteController
class Leo4SQLiteController:

#@+others
#@+node:tscv11.20180115220216.9: *3* init
def init (self, c):

ok = g.app.gui.guiName() in ('qt','qttabs')
if ok:
if 1: # Create the commander class *before* the frame is created.
g.registerHandler('before-create-leo-frame',onCreate)
else: # Create the commander class *after* the frame is created.
g.registerHandler('after-create-leo-frame',onCreate)
g.plugin_signon(__name__)   
c.__ = {}
return ok

#@-others
#@+node:tscv11.20180115220216.10: ** class InputDialogs
class InputDialogs(QWidget):

#@+others
#@+node:tscv11.20180115220216.11: *3* __init__
def __init__(self, c):
super().__init__()
self.title = 'leo4sqlite'
self.left = 10
self.top = 10
self.width = 640
self.height = 480
self.initUI(c)
#@+node:tscv11.20180115220216.12: *3* initUI
def initUI(self, c):
self.setWindowTitle(self.title)
self.setGeometry(self.left, self.top, self.width, self.height)
qtRectangle = self.frameGeometry()
centerPoint = QDesktopWidget().availableGeometry().center()
qtRectangle.moveCenter(centerPoint)
self.move(qtRectangle.topLeft())

self.pick_action(c)
 
self.show() 


#@+node:tscv11.20180115220216.13: *3* get_settings
def get_settings(self, c):

p_lst = c.find_h(r'@directory.*\\leo4sqlite-output')
c.selectPosition(p_lst[0])
nd_str = str(p_lst[0])
folder = re.sub(r'^= num_rows:
break
new_row = re.sub(r'[\[\]\'\"\s]', "", str(rows[idx]))
new_row = re.sub(r',', ", ", new_row) 
cx += 1
idx += 1

p = p.parent()
p.contract()

g.es("done\n")
c.redraw()
headline = ("@tbl " + table_name)
tbl_node = g.findNodeAnywhere(c, (headline))
c.selectPosition(tbl_node)
#@-others
#@+node:tscv11.20180115220216.30: ** exports
#@+others
#@+node:tscv11.20180115220216.31: *3* export_table1
def export_table1(self, c, p, num_cols, col_names, col_types, blob_col):

hlines = []

def place_holder(line):
return '({})'.format(', '.join('?' * len(line)))

table_name = c.__['table_name']

headline = ("@tbl " + table_name)
tbl_node = g.findNodeAnywhere(c, (headline))
c.selectPosition(tbl_node)
c.redraw()
p = c.p

g.es("\nexporting table " + table_name + "\n\n(layout 1)\n")

lines = re.split("\n", p.b)

db_file_path = lines[0

Re: Letter of appreciation

2018-01-12 Thread tscv11
Not a problem, but since no one seems interested in my github repository
and I don't have many more ideas for 'leo4sqlite' maybe there's something
else I could help with, like your proposed 'blob API' (or something else
sqlite related) - I know I'd have a lot to learn but it beats waiting for 
people
(like Vitalije, who never responded to my suggestion of collaboration) to
come to me.

Or... maybe I should work on refining 'leo4sqlite' and turning it into a 
plugin.
I guess the main thing to me is that I do something which is then 
incorporated
into Leo in some way. In other words, I'd like to make a useful 
contribution.
Where do you think I should place my focus?

Thanks for any guidance,

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Merged sqlite-leo branch in master

2018-01-09 Thread tscv11
Hello Sir,

I think your work is brilliant, although I am not able to understand many
things, and I have not gone over it in detail. Still, I am sure from what I
do know that it's groundbreaking and fascinating!
 
I  suggest a possible collaboration (if I have anything to offer). I am
just an amateur but I have created 'leo4sqlite' and you might find
something interesting there. Hopefully you will have a little advice
for me either way!

You can find it here:
https://www.github.com/tscv11/leo4sqlite

Please feel free to post or send a message if you ever have a question,
and if there's anything you need (sqlite3-related) please let me know!

Thanks for your time!

tscv11

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo BLOB API

2018-01-08 Thread tscv11
Thank you, friend - I really owe you one! You were right, I was
using only numbers as search terms before. As the kids say, 

'You da man!'

And well done (with only a glance, no less)!

Thank you!

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo BLOB API

2018-01-08 Thread tscv11


*- I'd need a more detailed description o fhow it's broken for you - not 
starting, or whatever, to debug.*
Please check my original post - I have edited it to include
details about the problem. If you still need more information
I will tell you whatever you need to know.

As far as the fail in get_int_db I guess it happened because
no tables had been imported ('internal' in this case means
databases existing in the outline as children of the 'data'
node). You can verify this by importing a table and then
trying again. If that's what's going on it should be an
'easy fix.'

As for the original exception: I still don't have a clue.

Thanks - you don't have to help me with this so I
appreciate it!

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo BLOB API

2018-01-07 Thread tscv11
I cannot understand. Please help me understand. I uploaded to github
(with everything working), I started trying to make my local copy run
as @auto. Somehow things got broken. Here is the 'kicker' - I downloaded
the master from github, tested it - and got the same error! (I did make sure
the @auto node pointed to the correct '.py' file).

I just don't comprehend. Can anyone tell me what's going on? No matter
what I do the script remains broken.

Thanks,

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo BLOB API

2018-01-07 Thread tscv11
The github repository for leo4sqlite is back online.

https://github.com/tscv11/leo4sqlite

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo BLOB API

2018-01-07 Thread tscv11
Just so you know:

Adding "c.__ = {}" to main seems to have fixed the problem. I tend
to get discouraged easily and I was unfair to Leo! I'll post to github
soon - any pointers for using Leo and git together? Also, why no
response to my questions about the plugin documentation, etc.?

Thanks,

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo BLOB API

2018-01-07 Thread tscv11
Well, the script was working when I posted it. I tried to change
some things in my copy and ended up with a new error:

AttributeError: 'Commands' object has no attribute '__'

  line 626: action = "insert blob"
* line 627: c.__['action'] = action
  line 628: self.get_ext_db()
  line 629: self.select_table()

So I downloaded the copy from my post and now it gives me the
same error!  I'm confused (yet again). I'd like advice if possible.
(I do keep back-ups but they never seem to work like they did
when they were made *.*

Also note: I have changed my mind about the github account
because I want to make the script as good as it can be, and that
will certainly require other people. But I won't upload it until
I'm sure the script is working!

Thank you,

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo BLOB API

2018-01-06 Thread tscv11
Let me know if you want to look at my script in its' current incarnation.

When it comes to blobs it will:

1. insert
2. extract
3. view
4. open

(not sure how 'edit' should be different from 'open')

If you give me a better idea of how you'd like it done, I'll try adding the 
choice to
save outlines with the blobs.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Jump to git diff from log

2018-01-03 Thread tscv11
I hope this isn't too out of place. I just want to ask how to use
the gitarchive plugin. It crashes Leo with a perpetual loop when
I try to use it.

Thank you,

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: GitHub repository for leo4sqlite

2018-01-03 Thread tscv11
Doh! (he said sheepishly). This confuses me because I am not using (nor
have I ever used) a dark theme. I confess I don't know where it's coming 
from.
I saw nothing unusual in the post before posting. Hopefully the problem will
be gone now - I'm being extra careful. Just let me know if this problem 
persists!

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Rest easy

2018-01-03 Thread tscv11
Forget about the repository - it now refuses to let me log in, NO MATTER
WHAT I DO: new pass doesn't work, old pass doesn't work, new username
doesn't work, old username doesn't work, you get the idea. I guess my work
is going to just flap in the wind or other people might run with it, leaving
me out, since I have no say in it anymore.

Good times,

Just letting you know - I don't know how *you* could fix it, but now you 
know
what's going on. I'll let you know if I ever figure it out.

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Rest easy

2018-01-03 Thread tscv11
Hello Sir,

I found a solution but then replied in the wrong thread! Basically I had
to disable "import leo.core.leoGlobals as g" and put "App()" back where
it had been. Don't know how much of a 'solution' that is, though. Maybe
you can recommend a better way?

Thanks!

tsc

Here's the new repository:

https://github.com/tscv13/leo4sqlite

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Rest easy

2018-01-02 Thread tscv11
Hello Sir,

It's good to hear that I haven't worn out my welcome. I do have what I 
think is a good
question about improving my script: pyflakes gives me 252 errors 
(everything works fine
as far as I can tell) and I see that most of them are about 'c' being 
undefined.

Mr. Brown showed me how to 'glue' things to 'c', like this: "c.__['name'] = 
tsc". I used this
a lot until it occurred to me that it could be a bad idea, like global 
variables. It's easy but
depending on what you think I may convert all of that to variables passed 
in functions
(although I don't know if this is what's causing the pyflakes errors or 
not).

I don't have the knowledge or experience to discern the best approach in 
this case so I'll
defer to yours, if you don't mind.

Thanks for your time - I hope you're having a great vacation!

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: The process of action

2017-12-31 Thread tscv11
On Saturday, December 2, 2017 at 1:43:58 AM UTC-8,

Edward K. Ream wrote:

*- Seeing completion as a process is a cure for impatience*.

I enjoyed that insight, thank you! It made me think of the task
(or todo?) plugin progress icons: 10% complete, 20%, etc.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: A pattern for beginners: delete all of a node's children

2017-12-31 Thread tscv11
Thanks to Leo's code completion (which I adore) I found it:

@language python

p = g.findNodeAnywhere(c, 'temp')
c.selectPosition(p)
p.deleteAllChildren()
c.redraw()


-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: A pattern for beginners: delete all of a node's children

2017-12-30 Thread tscv11
I keep trying to make this better but google groups won't let me edit this
one message only - "go figure!"

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Phonon player error

2017-12-30 Thread tscv11
I've discovered that Qt5 (and PyQt5, I presume) no longer supports phonon.
Is @movie playback broken in Leo? I tried putting the file path in the body
and/or the headline. Nothing has given me more than a blank screen.

I should note that svgs and gif animations work well. 

Thanks for any information,

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: The roadmap for 2018: visualization & services

2017-12-30 Thread tscv11
Hello, 

It's amusing that you're talking about improving the vr-pane when I've just 
run into
the problem of not being able to play movies in Leo. I've covered that in 
another post.

Anyway, what you've said sounds good to me, except for "DAG" which I'm 
guessing
stands for (d)irected (a)cyclic (g)raph - there are 38 definitions for that 
acronym in the
Free Dictionary. Okay, I had to look it up since you mentioned it on this 
line of your
post:

   * - "Leo's DOM (outline DAG) and API (programming interface)."*

Definition: A *DAG* is a *data structure* from computer science which can 
be used to
model a wide variety of problems. The *DAG* consists of the following 
elements: Nodes.
Each node represents some object or piece of *data*.

A little more 'generic' than I expected, but interesting.



*- It should be possible to do better than jupyter/ipython in several 
ways.  Forexample, instead of ipython's numbered in/out cells, we could use 
descriptive strings:*
Descriptive strings for rendering would be excellent, so far as I know, 
although I
then wonder how rendering multiple nodes concurrently would work.

- 
*2. Leo's valuespace plugin already provides live, ipython-like objects.*

I have been ignoring the valuespace plugin, but not now - I didn't know it 
had that
capability.

*- Better visualization of attributes, the "hidden" part of Leo nodes.*

I fully agree that this goal is desirable, although I would have to guess 
how
something like that would work in practice.

Thanks for your thoughts - I like to know where things are headed.

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: leo4sqlite & blobs

2017-12-30 Thread tscv11
I'll be brief - there's a new development:

I've discovered that I can't play movies in the render pane - Leo says "no 
phonon player installed."
I saw online that "phonon" is a part of Qt and I planned on installing the 
open source version until
I saw that it was 13 MiB in size. Is there a better way? I would like to 
add movie features to my
script!

Thanks very much,

tsc




-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: leo4sqlite & blobs

2017-12-29 Thread tscv11
If you would, please elaborate on making a 'permanent filing system' for 
blobs. I'm not
sure what you mean.

Thanks,

tsc


-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: ENB: Code generation for javascript

2017-12-24 Thread tscv11
Hello Sir,

Of course I am not a core dev - I just want to apologize for 'getting
on your case' about the other sqlite project months ago. I suppose I
should have taken your advice and tried to collaborate with Vitalije
as well, but I am too insecure about my coding skills to handle
working with someone who's ideas are always better and who always
implements them more effectively,  which is what I would expect
from him. Anyway, I know at times I've been a pain in the *ss so
sorry about that.

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to wait for a key press

2017-12-24 Thread tscv11
Hi,

I would like a little advice again (surprise!). I searched for the 
information I
need but it seems that pyqt5 doesn't even have any forums (that I could 
find),
so I don't know of anywhere else to ask. I did look at the existing 
reference
material but  I found no mention of all dialogs/comboboxes, etc. appearing 
at
the same time.

To restate, the issue is this: I made pyqt5 comboboxes/dialogs, etc. and
everything's fine, except I haven't found how to make the them appear
sequentially instead of all at once. Of course this will not suffice. I 
understand
that the idea may normally be to have a "gui app" where everything is
contained in the main loop. However, I'm not sure how to go about that
because I don't want a gui to be visible all of the time.

Previously I created a tkinter app that re-uses the same root window but
changes the buttons, etc. for each step of the information-gathering 
process.
Maybe something like that could work. I confess I'm in the dark, and I can't
seem to find what I need on the 'net, so any info will be, as always, very
much appreciated.

Thanks, you are a godsend!

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to wait for a key press

2017-12-21 Thread tscv11
Wow, there's some neat stuff in there, thanks! However, If I'm not
mistaken, no values are passed outside the class definition. Perhaps
there's no way to do that. Or did I just miss it?

Anyway I did enjoy the example of the @g.command decorator and
I'm learning how it works - I just ran the script and the command
was instantly available! Very cool.

tsc


-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Linking to nodes from lines in the log.

2017-12-21 Thread tscv11
This is exciting - I was just wondering why Leo didn't do that
already and now here it is! Having links to lines/columns will
be brilliant! Thanks for this.

tsc

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How to wait for a key press

2017-12-20 Thread tscv11
Hello,

Okay, so you're saying it's too complicted to wait for a key press or 
detect the vr pane being,
hidden, which seems a bit crazy - at least the key press part. I guess I'll 
just wait unti the next
dialog or another opportune time (maybe when quitting the program) to clear 
the temp files,
which will be just as well. No problem - nothing a good workaround can't 
fix. It's part of
coding - some things *are* simple.

Cheers,

tsc
 

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Demystification & news

2017-05-23 Thread tscv11
Hello, I hope everyone is well.

My confusion regarding Leo and xml has cleared (originally I thought Leo 
had imported a table from my sqlite database file). The attached .leo file 
outlines a simple three step process which may be followed to reproduce my 
results, and an example of the xml "output" I've described.

Update: I've been working on the sqlite plugin. All it can do right now is 
import a table from an sqlite database and then populate nodes with the 
data, but I will be adding more features. I have developed three additional 
"import patterns" that will distrubute the table data in different ways 
(once implemented), and I plan on sharing the sqlite4leo.leo file for 
feedback soon.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Demystification.leo
Description: Binary data


AttributeError: module 'os' has no attribute 'popen3'

2017-05-05 Thread tscv11
Hi, just a quick bug report.

Attached is a screenshot that shows what happened when I tried to use the 
at-produce plugin for the first time.
If I should contact the plugin author directly instead of posting here, 
please just let me know!

Thanks.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: what a pane

2017-05-03 Thread tscv11
Hello,

This is just a follow-up regarding the animated gif problem. I have tried it
myself and you are correct - the gif doesn't play (from the google groups
page or downloaded from google groups). I should also note that it doesn't
work with internet explorer, contrary to my previous belief.

So I have uploaded a copy to "the cloud." You can download
and watch it at your leisure. I've tried it myself and it works like a 
charm. The
site has a file preview feature but the animation doesn't work there, so 
it is
necessary to download the file and then play it.

I would like to create better bug reports, so even though my previous issue
has been resolved,  if you wouldn't mind trying the link below (it's 
Mega.nz -
they're "legit"). I would appreciate it. If it *still* doesn't work, I 
won't bother you
about it again - I'm sure you have bigger fish to fry!

Thanks!

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: what a pane

2017-05-03 Thread tscv11
Sorry about the lack of animation. I used "Screen2Gif" (for the first
time) and checked the gif before sending it - you might want to
play it using internet explorer (that works for me!)

Also, sorry about calling you "Jerry!" I* see *now that your name is
*Terry - *my apologies (it was not intentional).

I now use "free-layout-zoom" instead, which is what I really
wanted anyway (toggling between maximum space for the current
pane and the default layout). Therefore, this issue has effectively
been resolved.

Thanks!

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


what a pane

2017-05-03 Thread tscv11

I'm back (*yes, again!*) to report an amusing bug. Attached find an
animated gif that shows I'm not making it up (and I am *not* talking
to anyone in particular here,* Jerry!* ;-)) (I'm only joking around, just to
be clear). Incidentally, you can also see some of my project (named
"HabitTrack"), in the tree pane - yes, that is *also* real!

Now this problem is small, but it irks me, because I use the "contract-pane"
and "expand-pane" commands regularly. In the gif you will see that I select
each of the four panes and then expand/contract them with the same two
commands (I'm talking about the generic expand-pane and contract-pane
commands, not those specific to particular panes).

The interesting part is when I try the same thing with the last pane (the
Tree pane). With the Tree pane selected (and using the same commands)
the* render pane* expands or contracts! This is not the behavior I expected 
-
hence this report 8-].

Thanks everyone.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


.leo <=> .db3

2017-05-03 Thread tscv11

Although I was apparently mistaken about Leo importing db3
files as xml, I have now happily (re)discovered the python
standard library's sqlite3 module.

Using it I won't need to convert between file formats - It will be
possible to read/write records between outline nodes and db3
database files using python's standard library (and I know the
sqlite3 module works because I've successfully used it - I just
never thought to use it with Leo!).

So now I have my work cut out for me. I'm very open to
hearing suggestions or requests regarding a possible
sqlite3 plugin for Leo (my basic idea is to create a read/write
relationship between db3 files and Leo outlines, via Leo).

Despite my grand plans, I know that I have an awful lot to
learn (after all, I'm no super-genius (unlike Leo's developers!!)
but sometimes I want to accomplish things anyway)!

So, to sum it up - anything at all...let 'er rip!

Thanks!

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: can not load enabled plugin: leo.plugins.xml_edit

2017-05-02 Thread tscv11
I see. I thought maybe it was specific to Leo. I understand now
(good old pip!) Thanks again.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


can not load enabled plugin: leo.plugins.xml_edit

2017-05-02 Thread tscv11
Sorry to jump right back in with another one, but this is really
a continuation of my earlier post...

I would like to get the xml_edit plugin working now. I've just switched
to a fresh download of the latest snapshot, but when I try enabling the
xml_edit plugin I get the following error:

loadOnePlugin: error importing plugin: leo.plugins.xml_edit
Traceback (most recent call last):
File "C:\Users\TSC\Desktop\leo-editor\leo\core\leoPlugins.py", line 503, in 
loadOnePlugin
__import__(moduleName)
File "C:\Users\TSC\Desktop\leo-editor\leo\plugins\xml_edit.py", line 103, 
in 
from lxml import etree
ImportError: No module named 'lxml'
loadOnePlugin: can not load enabled plugin: leo.plugins.xml_edit

So I seached my drive for lxml and etree, both of which I found,
but not in Leo's folders. The upshot is that I don't know for
sure what their extensions should be or where to put them so
Leo will find them, or even why they seem to be missing from
a fresh 1 day snapshot of Leo.

Thanks for any information you can provide :-)

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Sqlite3 .db3 file import change

2017-05-02 Thread tscv11
In any case, now I know that Leo doesn't officially support the .db3
file format. I will try to discover how I made it happen anyway.

If you think of *anything* (at all) that could've caused Leo to produce
the attached document please let me know!

Thank-you for your help and your work on Leo - I understand that
you can only do what you can do, as they (inanely) say


On Tuesday, May 2, 2017 at 3:09:11 PM UTC-7, tscv11 wrote:
>
> The "import->import any file" method for .db3 files no longer
> works for me, and does, in fact create completely empty nodes titled
> after the file (@auto nodes). Thus I cannot repeat the process, and I
> was hoping someone could figure out how I got that result, if Leo 
> *doesn't*
> support .db3 files. And trust me, I have better things to do than make
> up stories for Leo developers. I can't repeat it, but it *did happen* ; )
>
> With sqlite3 files importable as xml (as shown) I knew it would be 
> relatively
> easy to write my plugin, so hopefully you can understand my disappointment
> upon finding that the imports no longer worked, and why I asked for help.
>
>
>Hmm, SQLite files are binary and I don't remember Leo having any 
>
>> support for them, so wouldn't have expected that to do anything useful 
>> - can you verify you can do it repeatably? 
>>
>> Building an outline in Leo based on the content of SQLite file with a 
>> Python script wouldn't be too hard, but you'd need to know the 
>> structure of the data in the SQLite file and how you wanted to map it 
>> to Leo's tree. 
>>
>> Cheers -Terry 
>>
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Sqlite3 .db3 file import change

2017-05-02 Thread tscv11
The "import->import any file" method for .db3 files no longer
works for me, and does, in fact create completely empty nodes titled
after the file (@auto nodes). Thus I cannot repeat the process, and I
was hoping someone could figure out how I got that result, if Leo *doesn't*
support .db3 files. And trust me, I have better things to do than make
up stories for Leo developers. I can't repeat it, but it *did happen* ; )

With sqlite3 files importable as xml (as shown) I knew it would be 
relatively
easy to write my plugin, so hopefully you can understand my disappointment
upon finding that the imports no longer worked, and why I asked for help.


   Hmm, SQLite files are binary and I don't remember Leo having any 

> support for them, so wouldn't have expected that to do anything useful 
> - can you verify you can do it repeatably? 
>
> Building an outline in Leo based on the content of SQLite file with a 
> Python script wouldn't be too hard, but you'd need to know the 
> structure of the data in the SQLite file and how you wanted to map it 
> to Leo's tree. 
>
> Cheers -Terry 
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Sqlite3 .db3 file import change

2017-05-02 Thread tscv11
Hello,

Just a note - sorry, I see now why no one understood my question. I did 
explain everything but somehow the important part got left out of my final 
post, and it was rather nebulous. So "*my bad*" as they say.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Sqlite3 .db3 file import change

2017-05-02 Thread tscv11
Sorry, I forgot to answer your question in my other  post.

I am just importing an ".db3" sqlite3 database file with 
File->Read/Write->Read file into node.

Hope that helps.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Sqlite3 .db3 file import change

2017-05-02 Thread tscv11
I apologize for my lack of clarity.

I guess it's my turn to ask for more information. What kind of sample do 
you need - of what?

I *was* able to locate the original successful import, which I have 
attached to this post. Interesting that it notes the language as "unknown." 
Hopefully this is what you wanted! If not please let me know, and thanks 
for the help!

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.
@language unknown_language


http://leoeditor.com/namespaces/leo-python-editor/1.1"; >








habit log
041017
0.12
2344

041117
0.12
1216




Date


Amount
Time


Amount

Time






Sqlite3 .db3 file import change

2017-05-02 Thread tscv11
Hello,

I have written my first Leo-specific application (it helps me keep a 
database of habitual activities and automates simple calculations, like 
Day, Month and Year Totals and Averages).
So now I've begun work on an sqlite3 <---> Leo plugin (although I don't 
know how yet, I thought I'd work out the basics). Today I tried the import 
again but the resulting nodes were completely empty! I have verified that 
the database file still contains the data, etc., so I'm passing this along 
in hopes that a solution will be found.

Thanks!

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: RuntimeError: input(): lost sys.stdin, g.isMacOS

2017-04-08 Thread tscv11
Sorry for  the delay.

*I tried:*

choice = g.input_("selection ")
print(choice)

Leo seems to be giving me the same (or a similar) error:

exception executing script RuntimeError: input(): lost sys.stdin
only 7 linesline 5848: from leo.core.leoQt import QtCore
* line 5849: QtCore.pyqtRemoveInputHook()
line 5850: return input(message)
line 5851: #@+node:ekr.20110609125359.16493: *3* g.isMacOS

I am interested in "g.input_" - a search of the (Leo) documentation returns 
nothing. I have read that "g" is the leo.core.leoGlobals module, but that's 
about all I know.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


RuntimeError: input(): lost sys.stdin, g.isMacOS

2017-04-07 Thread tscv11
Here's a bug report: using a very basic test script with just two lines of 
python (shown below) I found that even with an inferior IDE such as IDLE, 
the script did ask for input and then print it, whereas Leo coughed up an 
error.

*Test "script":*

choice = input("selection ")
print(choice)

When testing with Leo I added @language python and @color to the top. Here 
is the error it gave me:

exception executing script RuntimeError: input(): lost sys.stdin
only 5 linesline 5848: from leo.core.leoQt import QtCore
* line 5849: QtCore.pyqtRemoveInputHook()
line 5850: return input(message)
line 5851: #@+node:ekr.20110609125359.16493: *3* g.isMacOS

Note: I use Windows 10.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Solved - Outline pane font size

2017-03-25 Thread tscv11
I see I've dropped the ball so here's the answer regarding IPython: I *did 
*experiment 
with the "--ipython" command line switch during that time (when fonts 
weren't resizable). Other than that, I haven't really been *using* IPython 
*together* with Leo (yet), since distraction quickly took me elsewhere 
(I'll get back to it - I am a fan of IPython).

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Solved - Outline pane font size

2017-03-18 Thread tscv11
I noticed a Qt message in the terminal window that looked unusual to me:

 "reading settings in ..\Leo-5.5b1\leo\config\leoSettings.leo 
  *createGui g.app.gui "*

As things stood some fonts were not displayed properly. After noticing the 
message I uninstalled PyQt5.8 and then installed PyQt5.6. Now even Leo5.51b 
looks as it should.

My apologies for not catching this sooner.



-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Outline pane font size

2017-03-17 Thread tscv11
Greetings,

Here is the latest: the Outline Pane *font *of Leo is now *tiny* and does 
not respond to adjustments in @settings>Appearance>Qt Gui 
settings>Fonts>Basic Fonts. Importantly, the font sizes *did* change in 
step with those parameters previously. I also tried other settings that I 
thought *might* affect the miniscule lettering, but to no avail. Please 
advise. Thanks!

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Another small glitch (recurring icon problem)

2017-03-10 Thread tscv11
Okay, thank you Sirs.

I am happy to report (sort of):

My icons have gone ka-flooey again (and I haven't used Leo since posting 
about the problem). So, in other words, it's *not* Leo causing the icon 
problem. Actually I *am* happy, because I was so desperate that I was 
studying 'org-mode', even though the markup isn't as good and, of course, 
one word: *eli**sp. *I am extrememely happy to be back with Leo! Thank-you 
for addressing my concern.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Another small glitch (recurring icon problem)

2017-03-07 Thread tscv11
 Thank you very much to EKR for immediately fixing my previous issue 
(Internet Explorer kept popping up, trying to connect to sites that my 
firewall reported were unsafe). That has not happened again, and I'm very 
happy!

 However, I've had a stubborn new problem for a while now. 
Unfortunately it's been difficult to pinpoint the how and why, but every 
time I start using Leo again it's not long (a day or two, typically) before 
my desktop icons become covered with white sheets of paper, folded at one 
corner. They do not replace the original icons. Instead, they partially 
cover them (you can still see the edges of the original icons underneath).  
When I've tried *not* using Leo for extended periods, my icons have 
remained pristine.

 I know that I could be barking up the wrong tree but I did become more 
suspicious when, right after restoring Windows from backup (and then 
reinstalling Leo again), I accidentally (doh!) pushed the Sphinx button 
(before doing anything else in Leo), then switched to the desktop -  there 
were the freshly covered icons again.

 I have tried various "solutions" from the net, but nothing has worked,

 Thank you for any assistance - I am just a python novice, or I 
wouldn't bug anyone with small stuff like this!
 

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


This may not be related to Leo, but just in case...

2017-02-21 Thread tscv11
First I must say that I am a big fan of Leo! Before this happened I used it 
for python (and reST, of course), HTML, CSS, Asciidoc, and Markdown.

Unfortunately I now need to report a bizarre issue that's been coming up 
repeatedly. After trying all available installer/setup packages and then 
even restoring my system from a backup, the problem persists. Also I should 
mention that what I'm about to describe *never* happens at *any* other 
time, so it does seem strange to me, and I've been using/programming 
(hobbyist) computers for decades.

So here it is: whenever I go to Settings> Edit settings > then Colors or 
Basic Fonts, for example. and select a setting to add to/edit in 
myLeosettings.leo such as 'outline background color', then choose the more 
general settings editing option, and finally enter "2"... internet explorer 
attacks!  'comodo internet security essentials' reports several pages 
'trying to open' that it labels as 'suspicious'. I have tried every scan i 
know of, including avast, malwarebytes, spybot search destroy, hitman pro, 
and MANY others. This is  the first time I have been unable to get rid 
(what seems to be) malware.

I thought someone should know. Sorry to be negative - as I said, I do love 
Leo! Thanks for your time.


-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.