On 09/26/2013 10:29 AM, Edward K. Ream wrote:
> A program similar to yours works for me. Here are some ideas:
"Similar"? Why don't your run my program or modify it for your system
and run it?
Attached is my revised program. The only changes are to make it clearer
that yes, I am using the latest Leo-Editor code.
Here is the output to the console:
$ python createLeo.py
/home/ldi/bzr/LeoLatest/leo/core/leoBridge.pyc
Leo 4.11a3, build 6062, 2013-09-26 11:10:24
Python 2.7.3, leoGui: dummy version
linux2
file not found: /home/ldi/tmp/newFile.leo. creating new window
Traceback (most recent call last):
File "createLeo.py", line 13, in <module>
ptrDay = ptrRoot.insertAsLastChild()
File "/home/ldi/bzr/LeoLatest/leo/core/leoNodes.py", line 1176, in
insertAsLastChild
n = p.numberOfChildren()
File "/home/ldi/bzr/LeoLatest/leo/core/leoNodes.py", line 489, in
numberOfChildren
return len(p.v.children)
AttributeError: 'NoneType' object has no attribute 'children'
2013-09-26 12:12:49 /home/ldi/tmp
------ End of console output ----------
ptrRoot.v is still None.
--
Segundo Bob
[email protected]
--
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.
import sys
import pdb
import leo.core.leoBridge as leoBridge
print(leoBridge.__file__)
bridge = leoBridge.controller(gui='nullGui', verbose=False,
loadPlugins = False,readSettings = False)
print(bridge.g.app.signon)
print(bridge.g.app.signon2)
cmdr = bridge.openLeoFile('/home/ldi/tmp/newFile.leo')
ptrRoot = cmdr.rootPosition()
ptrDay = ptrRoot.insertAsLastChild()