Re: Standarized file importing, and keeping Leo updated

2014-07-24 Thread 'Terry Brown' via leo-editor
On Thu, 24 Jul 2014 02:31:34 -0700 (PDT) Fidel N fidelpe...@gmail.com wrote: #Replacement of your method: c.frame.tree.treeWidget.urlDrop = urlDrop c.frame.tree.treeWidget.urlDrop = types.MethodType(urlDrop, c.frame.tree. treeWidget.urlDrop) I think that should be just one assignment:

Re: Standarized file importing, and keeping Leo updated

2014-07-24 Thread Fidel N
Hehe yes, thanks :) On Thu, Jul 24, 2014 at 3:31 PM, 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: On Thu, 24 Jul 2014 02:31:34 -0700 (PDT) Fidel N fidelpe...@gmail.com wrote: #Replacement of your method: c.frame.tree.treeWidget.urlDrop = urlDrop

Standarized file importing, and keeping Leo updated

2014-07-06 Thread Fidel N
Hi all: Im having trouble to keep Leo updated because of this, and wanted to ask if someone can think of a way around. I like Leo to import any file I drop to it as h = @url File_or_last_folder_name // b = path_to_the_item Then my scripts will identify the kind of file it is, and offer me

Re: Standarized file importing, and keeping Leo updated

2014-07-06 Thread Edward K. Ream
On Sun, Jul 6, 2014 at 4:04 AM, Fidel N fidelpe...@gmail.com wrote: Hi all: Im having trouble to keep Leo updated because of this, and wanted to ask if someone can think of a way around. [big snip] Is there a way I could still import files that way, without having to touch LeoPyRef? I think

Re: Standarized file importing, and keeping Leo updated

2014-07-06 Thread Edward K. Ream
On Sun, Jul 6, 2014 at 4:16 PM, Fidel N fidelpe...@gmail.com wrote: Thank you both. Already tried both ways; And failed but already very close. Edward, how is Leo supposed to know that my leopyref.leo file now will be leopy.leo? Where do I have to tell Leo to search for leopy instead of

Re: Standarized file importing, and keeping Leo updated

2014-07-06 Thread 'Terry Brown' via leo-editor
On Sun, 6 Jul 2014 14:16:18 -0700 (PDT) Fidel N fidelpe...@gmail.com wrote: Thank you both. Already tried both ways; And failed but already very close. Edward, how is Leo supposed to know that my leopyref.leo file now will be leopy.leo? Where do I have to tell Leo to search for leopy