Open With ... how should it work?

2012-05-29 Thread mdb
Under the File menu item I see 'Open With ... ' and then a selection for IDLE But when I select this, I do not understand what should happen I have a node highlighted for a .py file, which I assumed would then open in a IDLE window, but I only see a message in the log window that a LeoTemp

Re: Leo 4.10 is now code complete. Please test

2012-03-15 Thread mdb
Using bzr branch lp:leo-editor After launch, I see in the log pane Leo 4.9.1 devel, build 5147, 2012-03-15 19:50:57 Python 2.7.2, qt version 4.7.3 I assume 2012-03-15 date means I have the latest code But surprised by 4.9.1 devel build Also confused by the messages in the 'bzr pain' posting

Re: Why I like clones

2012-01-20 Thread mdb
If so, is it acceptable to substitute any but the last rather than first, to handle the case where there needs to be more than one importing @file branch (keeping to the rule that any given node is only in one of them). You can do anything that works :-)  Keep in mind that what is

Re: Making the docs more open to community contributions

2012-01-10 Thread mdb
Some inline comments I find reading and navigating Leo's docs inside Leo more cumbersome (maybe I just haven't tried hard enough). I agree they're nicer to read in a browser. HTML browsing is already builtin in some sense through the viewer and @url, but could be easier turn on and control.

Re: Using saveAs() with a filename as an argument in a script

2012-01-10 Thread mdb
What is the role of (c.k.givenArgs) in the saveAs function? Is it commonly used in Leo? -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from this group, send email to

Using saveAs() with a filename as an argument in a script

2012-01-06 Thread mdb
://groups.google.com/group/leo-editor/browse_thread/thread/3338990b986688c7/ce7a422d32ea2063?lnk=gstq=saveAs+mdb#ce7a422d32ea2063 I also see this option has been requested by others, example: http://groups.google.com/group/leo-editor/browse_thread/thread/ca82887f59ca876c/05651f2bd10fa153?lnk=gstq=saveAs

Re: IMPORTANT: Leo launchpad bzr reconfigured (and fixed)

2012-01-06 Thread mdb
It would be great if anyone who was experiencing the out of memory problem could confirm it works for them now. Successfully pulled the leo-editor branch on an old creaky Windows PC today. Got rev 4911 in the bzr message And like the ssh based bzr pull I set up on my work PC (to get arounf

Re: Creating a leo file usign a script

2012-01-05 Thread mdb
Actually ... my suggestion to remove the gui argument: c2,frame = g.app.newLeoCommanderAndFrame(fileName='NewOutline') does not look like a good idea. Editing the outline produces unusual behavior and I see no menu items in the frame. I guess gui needs to be set but I do not see how. I think

Re: Copy of subtree with loses clones

2012-01-05 Thread mdb
You don't replace a node by a clone, you create another clone and move it where you want it. Yes, in creating a new outline I would do so, but I am looking to 'fix' an outline that has lost its clones Example --CodeSnippets -- Code1 -- Code2 --Subtree1 -- Code1 -- More1

Re: Copy of subtree with loses clones

2012-01-05 Thread mdb
I will explain in a future posting about the problem of an outline losing its clones It actually comes from creating and using a DB system to store and read nodes. -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email

Copy of subtree with loses clones

2012-01-04 Thread mdb
I just noticed that if I copy a node hat contains clones, the pasted in node has the same subtree node structure but the child nodes are no longer cloned. I.e. I get an unlinked duplicates of the subtree. Is this intended? Is there a way to retain the cloning relationship in the copy? Why? I

Re: Copy of subtree with loses clones

2012-01-04 Thread mdb
Nevermind I found the command paste-retaining-clones But I have a related issue. In a given tree that has nodes with the exact same headline, how can I replace one node with a clone of the earlier in the outline with the same headline. -- You received this message because you are subscribed

Re: Creating a leo file usign a script

2012-01-02 Thread mdb
I think I figured out a solution combining both methods as so import leo.core.leoGui as leoGui fn2='test2.leo' nullGui = leoGui.nullGui(nullGui) c2,frame = g.app.newLeoCommanderAndFrame(fileName=None,gui=nullGui) c2.frame.createFirstTreeNode() c2.save() ok, frame = g.openWithFileName(fn2,c) c3

Re: Creating a leo file usign a script

2012-01-02 Thread mdb
Nevermind. Setting the filename was right in front of my nose in newLeoCommanderAndFrame(fileName= So the working script is import leo.core.leoGui as leoGui ## Create and save an empty leo outline fn2='test2.leo' nullGui = leoGui.nullGui(nullGui) c2,frame =

Creating a leo file usign a script

2011-12-30 Thread mdb
I am trying to create a new .leo file that I will populate using a script However, these two methods (from Leo web page docs) do not work as I expect. Method 1: import leo.core.leoGui as leoGui nullGui = leoGui.nullGui(nullGui) c2,frame = g.app.newLeoCommanderAndFrame(fileName=None,gui=nullGui)

Re: A new db-oriented vision for Leo?

2011-12-29 Thread mdb
Ville, I ran the code in The code to dump outline to sql database (and create the database) is here: http://bazaar.launchpad.net/~leo-editor-team/leo-editor/contrib/view/... after changing the db location in def test(c): tf = TreeFrag(/home/ville/treefrag.db) of course Do you have

Re: A new db-oriented vision for Leo?

2011-12-29 Thread mdb
On Dec 29, 2:50 pm, Ville M. Vainio vivai...@gmail.com wrote: I recreate the structure in leoqviewer, but this is c++ code. Dumb algorithm to create the tree is easy to do for python Leo as well, but if I write full file format support I'd like to do it the fast way - first create nodes, then

Re: Writing Plugins, I need a pimer

2011-12-28 Thread mdb
Thanks I wrote a script linked to a button to close and reload the testing outline as so: import os import subprocess python_leo= r'C:\Python26\python.exe C:\leo-editor\launchLeo.py' path1= r'Desktop-path' file1= r'MyPluginTest.leo' test_leo= os.path.join(path1,file1) xcmd= python_leo + '

Re: Writing Plugins, I need a pimer

2011-12-23 Thread mdb
Thx, Terry adding to the init step g.mytest= mytest works I also wonder about the best work flow for developing or modifying a plugin I find that if I change mytest.py (using Leo), and then close and re- open the .leo fine with the node that enabled mytest.py, the changes are not in

Writing Plugins, I need a pimer

2011-12-22 Thread mdb
I am trying to write my first plugin but can not figure out the details from the Writing Plugins part of the Leo web site. Is there a basic template, or can someone suggest a simple working plugin I could modify ?Note I want to create a Alt-X command and also add a function that can be used

Re: A new db-oriented vision for Leo?

2011-12-20 Thread mdb
we can imagine a clone server, as has been suggested, being implemented using a single sqlite file. I look forward to seeing where this db vision leads. The idea in my mind is to still use outlines to re-arange and organize data (program code, documents, task lists) for views -- could be or

Re: Idea - SQL Leo

2011-12-16 Thread mdb
I vote for allowing the saving and reading of nodes to a database table, but not attempting to replace simple flat file storage. Instead, a node attribute could be set to define the secondary storage and/or source. When saving a leo file you should have the option to break the outline nodes from

Re: version.py now uses bzr_version.py

2011-12-14 Thread mdb
I think Leo updates are incorrectly showing an older version Running the 12-14 snapshot I see this Leo Log Window Leo 4.9.1 devel, build 4867, 2011-12-05 06:57:18 -0500 -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send

Re: hack: Canonical outline so UNLs don't break

2011-12-09 Thread mdb
I think your SOP to give headlines titles that are just Dates+Time -- - versus using descriptive titles -- would not help most people better understand the document or the process that the outline represents or organizes. Leo lets you embed custom created attributes to each node, besides the

Re: hack: Canonical outline so UNLs don't break

2011-12-08 Thread mdb
I'd consider an alternative framework where each node has a date created and modified tags (attributes). With this idea, you would create the node in a tree position, and then use an alternative view and ordering of nodes based on the dates, and any editing from this view would show correctly in

Re: docs - install page - bazaar vs release vs nightly

2011-12-04 Thread mdb
Why not a Help item in both the stable release and the latest to run a bzr update. Could be a leo file with a button running a python script and includes unit tests to show off leo capabilities. In fact, an 'Examples' Help item for demos such as this would be good way to learn what leo can do.

Re: UPDATE: free-layout layout loading

2011-12-01 Thread mdb
Terry-- can free-layout a two panel view with the non tree panel showing Tabs, with one Tab being the 'Body' pane? I know how to create new panes, ala c.frame.log.selectTab('Test') but not how to make a pane act as the Body. Also like to add a pane that shows the node attributes -- You received

Re: An avalanche of improvements

2011-11-09 Thread mdb
OK, did the steps There are two @test Assert True nodes and I assumed I should ignore the one in the @ignore branch If I understand right, Alt-4 (1) only runs unit @test nodes that are marked (2) sends results to console And I originally thought Alt-4 used leoDynamicUnittest.py but by

Node date attributes

2011-11-09 Thread mdb
I see in Leo documentation that is possible to add attributes to nodes and .leo files. I am thinking of adding date created date modified attributes to nodes for a particular project. Has anyone done this already ? (before I re-invent the wheel) And I wonder if node dates have ever been

Re: Node date attributes

2011-11-09 Thread mdb
Thanks I did not know about gnx. Your gnx2tuple( function makes it easy to create a datetime object def gnx2datetime(gnx): import datetime (year, month, day, hour, minute, second) = gnx2tuple(gnx) dx= datetime.datetime(year, month, day, hour, minute, second) return dx However,

Re: An avalanche of improvements

2011-11-08 Thread mdb
Ed-- Can you create a short, whole leo file that demos your new unit testing procedure? pardon if this is easy to find on launchpad or the leo wiki and I missed it -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email

Re: import error for leo_pdf

2011-11-08 Thread mdb
Your comments please. I vote for using rst2pdf This looks similar to using latexpdf and the option to convert rst to latex as another step remains possible (to leverage latex's abilities) -- You received this message because you are subscribed to the Google Groups leo-editor group. To post

Re: Two questions: quality, understanding

2011-11-02 Thread mdb
I now understand Ed's 2 questions better My impression is 90% or more of Leo users create and manage computer programs using outlines with or without clones. A smaller fraction create and use Leo scripts as buttons or key bindings to make the program management and use easier. It seems Ed is

Re: Two questions: quality, understanding

2011-11-01 Thread mdb
Ed-- have you considered adding colorizing logic in the headlines? (besides marks and clone icons) I do not have a clear application in mind, and I imagine headline coloring might need to be based on each users preferences. However, colors that differentiate nodes that contain code vs plain

Re: Launching Leo on Windows using an script

2011-10-26 Thread mdb
Try this Create a batch file, named leo.bat in c:\ root that is simply C:\Python27\pythonw.exe C:\Leo-4.9-final\launchLeo.py %1 or to run in console mode use python not pythonw C:\Python27\python.exe C:\Leo-4.9-final\launchLeo.py %1 assuming python27 and the leo directory above Then

Re: BZR memory

2011-10-20 Thread mdb
because I'm git fan, about 5 month ago, I tried git-bzr-ng, and met the similar problem described here. https://github.com/termie/git-bzr-ng/issues/27 Do you use Python-based Bazaar? I did see your message about a similar BZR problem I tried both python based BZR and standalone Same memory

Re: BZR memory

2011-10-20 Thread mdb
Canonical investigated and told me how to fix the download Short answer:branching over http on Windows fails, but branching over bzr+ssh succeeds. The problem was traced to a file in the repository, which is a little bit more than 900MB when decompressed and Windows memory chokes because of

Re: BZR memory

2011-10-19 Thread mdb
instalation... Was that clear? Fernando. On Mon, Oct 17, 2011 at 2:16 PM, Edward K. Ream edream...@gmail.com wrote: On Mon, Oct 17, 2011 at 9:38 AM, mdb mdbol...@gmail.com wrote: Simple command that worked in Linux bzr branch  lp:leo-editor Fails with  this message ::  7275kB

BZR memory

2011-10-17 Thread mdb
I previously only worked with final leo builds, but now want to try the daily snapshots Running bzr I get a memory problem I do not understand (on a windows machine) Simple command that worked in Linux bzr branch lp:leo-editor Fails with this message :: 7275kB 117kB/s | Fetching

Re: BZR memory

2011-10-17 Thread mdb
Right not zip daily snapshot Using launchpad branch bzr branch lp:leo-editor -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from this group, send email to

Re: Using Leo to process Latex to Pdf

2011-10-16 Thread mdb
Finally got a chance to try Ed's version of MakePDF Works well with one small issue This part of the code (in node: compute_file_names) if g.os_path_exists(fn) and g.os_path_exists(out_dir): return fn,out_dir else: log('not found: %s' % fn) return

Re: Help: all Leo's on Ubuntu are hosed

2011-10-14 Thread mdb
Ed. Are you saying upgrading to ubuntu 11.10 is likely to create wireless problems and python version problems, and/or other problems ( SIP?). I almost hit the auto upgrade baton on yesterday and I think now I am glad I didn't. -- You received this message because you are subscribed to the

Search web site problems

2011-10-12 Thread mdb
I want to **consolidate** the search on web site issues. It now works for me using Internet Explorer and my android phone's browser. But search fails to produce anything using Firefox 7.0.1 with Javascript enabled on a Windows Vista system. Same with basic Google Chrome settings. -- You

Re: Operate on marked

2011-10-06 Thread mdb
Ed -- your code is surely better than mine since it handles undo-ing I do want to be sure I understand the new code -- moves forward in tree -- relies on 2 new functions p.positionAfterDeletedTree() u.afterDeleteMarkedNodes() Right? There was a error with my

Re: Operate on marked

2011-10-05 Thread mdb
I got the crude code below to work in every case I tried (clones, children) reverse() might be too crude however Also undo part does not work u = c.undoer marked = [ p.copy() for p in c.all_positions() if p.isMarked() ] marked.reverse() if marked: for p in marked:

Operate on marked

2011-10-04 Thread mdb
Is there a command to operate on marked nodes iecut-marked delete-marked clone-marked probably a variation of marked-list -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to

Using Leo to process Latex to Pdf

2011-09-23 Thread mdb
There have been a handful of questions in this group about using Latex Leo and I'd like to encourage more user development in this area. So below I offer my script for creating a pdf from a latex file to help new users get started. I link the script to both a button and a shortcut key and I

Viewrendered as shortcut

2011-09-22 Thread mdb
I have enabled the plugin viewrendered and also created a button for it as so @button vw c.executeMinibufferCommand('viewrendered') But I can not bind this command to a shortcut, using @shortcut viewrendered = Alt-k Actually I want to bind toggle-rendered-pane to a shortcut but

Re: Trouble with generator

2011-09-09 Thread mdb
But seeing the first element of the iterator is p, which hasn't changed, the question seemed moot. You are right I should just print p.h By trying to extract again from p.self_and_subtree() I was making the problem too hard for myself I also can use Ed's suggestion to use for p2

Context menu questions

2011-08-01 Thread mdb
I need help understanding howthe context_menu plugin works and I have some questions --Does the context_menu.py plugin automatically determine where to place each contextmenu command as either a right click Headline item or a right click Body item?What other 'context' are available and is the

Leo download for v4.9

2011-07-16 Thread mdb
On the page http://sourceforge.net/projects/leo/files/Leo/ The default Leo download for v4.9 is not the final version Instead it is b4: Looking for the latest version? Download LeoSetup-4.9-b4.exe (5.2 MB) -- You received this message because you are subscribed to the Google Groups

Autocompleter error

2011-07-13 Thread mdb
If I writing a script with the code n1=c.currentVnode() typing n1. (using the . to bring up autocompleter) produces the error exception executing command Traceback (most recent call last): File C:\Program Files\Leo-4.9-b4\leo\core\leoCommands.py, line 408, in doCommand val =

Redirecting print to tab

2011-07-08 Thread mdb
To get around the problem of not having a place print from a python script unless Leo is run from a console, I figured out a way to redirect to a tab pan that is separate from Log that I want to share Using a class defined as class LeoTabPrint: Simple class with a write method that

Leo online help and search for new users

2011-07-06 Thread mdb
A few web site issues that new users might see as hindrances in learning how to use Leo fully: * Search at http://webpages.charter.net/edreamleo/search.html is broken -- continues to search without giving results * It is not clear which is the true home page for the online information. May I

Re: Many leo files = one tree

2011-04-30 Thread mdb
Let me suggest a different way to look at this request: a master leo file to rule them all. :) It would help new users to have the leo file selection inerface look more like a loaded .leo file tree. At the 'master ' interface level some functions might need to be disabled, but being able to

Using rendering pane and the new autocompleter

2011-03-27 Thread mdb
How can I try our the new features-- rendering pane and the qcompleter. I use v 4.8 b1 (final version) and I tried to download (pull) the development version using bazaar (to pull from launchpad) but I am not experienced at this task. -- You received this message because you are subscribed to

Re: Using rendering pane and the new autocompleter

2011-03-27 Thread mdb
Thanks. Found the thread: http://groups.google.com/group/leo-editor/browse_thread/thread/e2b32681d9c3b949/346b17a5c027861c#346b17a5c027861c that helps too (mainly be showing the Windows GUI versions of Bazaar is not straightforward) In sum, downloading from http://www.greygreen.org/leo/ gave

Re: LEO as web app

2011-02-24 Thread mdb
FYI: Tried out pyjamas. I was able install and run example code. But failed with a naive quick build of LEO set up as simply ../pyjamas-0.7/bin/pyjsbuild --print-statements launchLeo t tried to use launchLeo 'as is' and with a modification that emulated using --gui=gttabs as an

LEO as web app

2011-02-19 Thread mdb
Is anyone exploring porting LEO to a web app (and maybe only a subset of LEO functions)? I know this has been discussed in the forum before, but I have not seen anything recently. What I think would be a hit and attract new users is something like (and better than) The Outliner of Giants (http://

Re: New ideas re optimizing python

2011-01-15 Thread mdb
fast enough to offer any speedup, and I don't plan to spend any more time thinking about this problem now. Ed-- I had once worked on optimizing an algorithm for computation speed (in a completely different application than LEO) and though I had some success and felt satisfied with the results,

Re: Leo 4.8 beta 1 released

2010-11-09 Thread mdb
Here are some quick notes that I hope help The Sourceforge.net button is for a1 Expected b1 based on the original posting in this thread. I installed both a1 and b1 and there is no real difference except a desktop shortcut appeared for b1 I don't recall an a1 shortcut (but I uninstalled some

Re: Using and Section Headlines

2010-05-21 Thread mdb
at 11:11 AM, mdb mdbol...@gmail.com wrote: Stumped on something that might be obvious: --When creating a a derived file outline, can named sections with headlines that do not start and end be referenced in a specific order? Yes and no. �...@others writes nodes in outline order

Using and Section Headlines

2010-05-17 Thread mdb
Stumped on something that might be obvious: --When creating a a derived file outline, can named sections with headlines that do not start and end be referenced in a specific order? In other words, I created a set of outline nodes with headlines that do not contain as in Section Title but

Re: open with and Leo 4.6

2010-01-04 Thread mdb
Ville, Thanks for clarifying: Openwith is not really supported for qt. In qt you can right click on nodes and launch external editor from there I tried to add IDLE as a 'right click on headline' editor choice but I can not get it to work I can use SCITE via: g.app.db['LEO_EDITOR']='scite'

Re: open with and Leo 4.6

2010-01-04 Thread mdb
at 4:25 PM, mdb mdbol...@gmail.com wrote: but this does not work for IDLE g.app.db['LEO_EDITOR']='C:\Python26\pythonw.exe C:\Python26\Lib\idlelib \idle.pyw' Try idle.pyw directly w/o python.exe. Do I need to edit the  'right click on headline' menu in myLeoSetting and if so, can I see

open with and Leo 4.6

2010-01-03 Thread mdb
I can not get the open_with plugin to work with Leo 4.6.3 QT version. I changed leoSettings to add it as an enabled plugin but it does not show up in the plugins menu in the File menu, Open with has no items I have tried everything I can think of to get it operating. I double checked that

Re: open with and Leo 4.6

2010-01-03 Thread mdb
Edward using g.pdb() I did not see any errors Also, when starting leo with the --gui=tk switch, open_with works On Jan 3, 5:07 pm, Edward K. Ream edream...@gmail.com wrote: On Sun, Jan 3, 2010 at 4:42 PM, mdb mdbol...@gmail.com wrote: I can not get the open_with plugin to work with Leo

p.__getattr__ ON error

2010-01-02 Thread mdb
Running code such as for p in c.allNodes_iter(): g.es(p.level(),p.h) I get an error that says p.__getattr__ ON: must be ON if use_plugins Did I accidentally mess up a leo setting? -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to

writeNodeToString with 'html'

2010-01-02 Thread mdb
Using Leo 4.6.3 p,s = c.rstCommands.writeNodeToString(p,ext='html') produces RST format output. Same with ext='tex' Is the other rst3 writing options no longer working ? -- You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group,

Re: writeNodeToString with 'html'

2010-01-02 Thread mdb
Never mind. the docutils module was not installed I fixed this and now it works as expected using ext='.tex' The '.' is important otherwise rst is created. On Jan 2, 4:31 pm, mdb mdbol...@gmail.com wrote: Using Leo 4.6.3 p,s = c.rstCommands.writeNodeToString(p,ext='html') produces RST

Re: p.__getattr__ ON error

2010-01-02 Thread mdb
...@gmail.com wrote: On Sat, Jan 2, 2010 at 2:50 PM, mdb mdbol...@gmail.com wrote: Running code such as for p in c.allNodes_iter():    g.es(p.level(),p.h) I get an error that says p.__getattr__  ON:  must be ON if use_plugins From an earlier question I assume you are using Leo 4.6.3 final

Re: RST3 -- Latex -- Beamer -- PDF

2009-03-10 Thread mdb
Never mind about To move forward, how can I (1) find a node with a certain headline (2) read each line in a node as if it was a text file or input stream I figured out how to use p.headString() and p.bodyString() --~--~-~--~~~---~--~~ You received this

Re: RST3 -- Latex -- Beamer -- PDF

2009-03-10 Thread mdb
Thanks I'll try p = g.findNodeAnywhere(c,headline) and/or p = g.findNodeInTree(c,p,headline)  (2)  read each line in a node as if it was a text file or input stream I'm not sure I know what you mean. Can you explain? I simply wanted the node body as a string to manipulate in a python

Re: RST3 -- Latex -- Beamer -- PDF

2009-03-10 Thread mdb
Nevermind on Where can I find a list of all  c.  p. and at. functions I think c.executeMinibufferCommand('open-outline') will be enough. Minibuffer commands seem easier to find --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Execute command on node

2009-03-10 Thread mdb
How can I make a minibuffer command operate on a particular node I.e. turn c.executeMinibufferCommand('write-restructured-text') into p.executeMinibufferCommand('write-restructured-text') where p is a node If I use c.executeMinibufferCommand('write-restructured-text') I

Re: Execute command on node

2009-03-10 Thread mdb
Thanks c.selectPostion(p) works P.S. Is there a read-at-auto-node with no 's' to work on a single node, I think the nodes plural case finds and operates on all @auto nodes in a tree --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: RST3 -- Latex -- Beamer -- PDF

2009-03-09 Thread mdb
Thanks again These commands below work at = c.atFileCommands p = c.currentPosition() # get the current position fileName = p.atAutoNodeName() at.readOneAtAutoNode(fileName,p) I understand the second and third commands to get the current position and the file name. Originally I thought the

Problems manipulating nodes

2009-03-09 Thread mdb
I am not sure if these problems are related, but they might be, or they might be problems for me because I am not completely fluent using leo -- double clicking a node does not work as it should (i.e. write a @file node) -- can not drag and drop nodes -- commands in mini-buffer do not work Could

Files section for PySnipEdit2.zip

2009-01-11 Thread mdb
I saw a message about a plugin that says It's in the files section: PySnipEdit2.zip what is the 'files' location --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email

Leo and Google App Engine

2009-01-07 Thread mdb
Has anyone tried or considering running LEO as a Google App Engine site I saw Edward Ream's post in April about how App Engine has interesting and powerful aspects. Edward-- would you consider (or like help) in setting up a demo/test/ trial verion of leo as a pure web app My interest in this

Re: 3 questions

2009-01-06 Thread mdb
Thx Unfortunately I can not open .../leo/core/LeoPyRef.leo I get a python SAX parse error But I think I can figure out a workaround --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to

Re: 3 questions

2009-01-06 Thread mdb
Really?  Are you using the latest version?  It works for me... My command line: python launchLeo.py leo/core/LeoPyRef.leo My LeoPyRef.leo file is not plain text I will check on whether I have the latest vesion In any event, I figured out that insertAfter() inserts a new node

Re: Newbie: Problem with python scripts

2009-01-06 Thread mdb
Fairly new myself, but this might help replace print z.headString() with g.es(z.headString) to see the 'print' in the log window. print goes to the python console window Also I think import leo.core.leoGlobals as g is not necessary because you have already loaded the leo module to run

Re: 3 questions

2009-01-06 Thread mdb
I have Leo 4.5.1 final, build 1.244 , September 14, 2008 But it seems the easy exe install for Windows (i386 version) does not have simple leo text files in /core I downloaded the platform independent version of the code and this lets me peruse the core code as a leo outline

Leo XML parse error

2009-01-05 Thread mdb
I am a new user of leo and find it most powerful and useful. I did run into a XML parsing problem that was able to track down and figure out and I thought to post what I found. The problem came from pasting in a block of text from a PDF file into a a node text window and the text happened to

Re: Leo XML parse error

2009-01-05 Thread mdb
I do not think I am using qt gui Here is my leo loading log Leo Log Window... Leo 4.5.1 final, build 1.244 , September 14, 2008 python 2.4.4, Tk 8.4.7, Pmw 1.3 Windows 6, 0, 6001, 2, Service Pack 1 I agree that catching the error at write time is best I will try to stretch my python and leo

3 questions

2009-01-05 Thread mdb
Almost random questions I could not find answers to after seaching documentation (1) what is the role of @chapters in an initially created outline (2) what does the hoist button do (3) how to create a new node in a python script -- I want to put text in the new node that is pulled out

Re: Leo XML parse error

2009-01-05 Thread mdb
Ed -- I wanted to create a new node in a python script and Terry Brown suggested looking at the source in .../leo/core/LeoPyRef.leo But trying to open this outline, as well as other .leo outline files in the core directory produced the same parse error. I do not think I am doing anything