Re: richtext.py + debian CKEditor

2014-12-04 Thread Edward K. Ream
On Wed, Dec 3, 2014 at 4:07 PM, 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: So the code below should probably be replaced with a new function g.get_ckeditor_dir() or something. ​This is turning into an interesting thread. g.importModule attempts an import from

Re: richtext.py + debian CKEditor

2014-12-04 Thread Edward K. Ream
On Wed, Dec 3, 2014 at 9:45 PM, Davy Cottet cottet.d...@gmail.com wrote: File /usr/share/pyshared/leo/plugins/richtext.py, line 98, in __init__ QtGui.QWidget.__init__(self, *args, **kwargs) AttributeError: 'module' object has no attribute 'QWidget' ​ This is a typical PyQt5 migration

Re: richtext.py + debian CKEditor

2014-12-04 Thread Edward K. Ream
On Thu, Dec 4, 2014 at 8:04 AM, Edward K. Ream edream...@gmail.com wrote: On Wed, Dec 3, 2014 at 9:45 PM, Davy Cottet cottet.d...@gmail.com wrote: File /usr/share/pyshared/leo/plugins/richtext.py, line 98, in __init__ QtGui.QWidget.__init__(self, *args, **kwargs) AttributeError:

Re: richtext.py + debian CKEditor

2014-12-04 Thread Edward K. Ream
On Wed, Dec 3, 2014 at 11:04 PM, Davy Cottet cottet.d...@gmail.com wrote: By the way, why not including it into github as a submodule ? http://git-scm.com/book/en/v2/Git-Tools-Submodules ​Interesting. It may be worth doing. However, it doesn't change import issues.​ should I include

Re: richtext.py + debian CKEditor

2014-12-04 Thread Edward K. Ream
On Thu, Dec 4, 2014 at 12:21 AM, Davy Cottet cottet.d...@gmail.com wrote: By the way, ckeditor team recommends to include it via submodule as well : https://github.com/ckeditor/ckeditor-releases/tree/standard/stable#git-submodule ​Good to know.​ Which one of standard-all, basic,

Re: richtext.py + debian CKEditor

2014-12-04 Thread Edward K. Ream
On Thu, Dec 4, 2014 at 4:39 AM, Davy Cottet cottet.d...@gmail.com wrote: ​ ​ I've upgraded ckeditor to last stable 4.4.6 full. https://github.com/ckeditor/ckeditor-releases/commit/2fb13d4e65c4d5aece60caf88a95ddf20be4bf1e (by adding it as an external module) in my fork and it work like a charm, so

Re: Any testers for leo-5.0-2.noarch.rpm ?

2014-12-04 Thread Edward K. Ream
On Thu, Dec 4, 2014 at 4:59 AM, Davy Cottet cottet.d...@gmail.com wrote: Nope... ​Could that be because https://github.com/davy39/leo-editor/raw/master/leo-5.0-2.noarch.rpm gives a 404 error? Edward -- You received this message because you are subscribed to the Google Groups leo-editor

Re: outline background colour

2014-12-04 Thread Edward K. Ream
On Fri, Nov 28, 2014 at 8:20 PM, Martin Towner martintow...@googlemail.com wrote: Hi all, I have a slight newbie problem I think - I'm trying to change the colours for the outline, as I'm a bit of a fan of old style green/black terminal style :-) But I'm having trouble changing the background

Re: richtext.py + debian CKEditor

2014-12-04 Thread 'Terry Brown' via leo-editor
On Wed, 3 Dec 2014 22:21:10 -0800 (PST) Davy Cottet cottet.d...@gmail.com wrote: Actually, I spoke to fast... Depending on debian/ubuntu releases, ckeditor includes or donesn't the sample folder... So I'm actually checking if this is possible to get a cke_template.html and sample.css which

Re: richtext.py + debian CKEditor

2014-12-04 Thread Davy Cottet
Which one of standard-all, basic, standard, and full version should Leo use ? ​I'm not sure what you mean (are these Ubuntu terms?), but standard-all seems like what we want. They are just various branches of Ckeditor from their git repos, including different plugins and settings.

Re: richtext.py + debian CKEditor

2014-12-04 Thread Chris George
I too would advocate for a batteries included model. The philosophy taken by Calibre etc. of including all dependencies in a one click installer that just works. This is the simplest thing that could possibly work and would enable all of the dicking around be done by the packager, not the

Re: possible off-screen bug

2014-12-04 Thread Edward K. Ream
On Sat, Nov 29, 2014 at 1:11 AM, Matt Wilkie map...@gmail.com wrote: Now how did you get that nicely formatted `c.db.keys()` in the first section? I had to wrap it in `g.es(c.db.keys())`, and then it prints all in one line. ​You don't need valuespace for this. For any dict d, the idiom

Re: possible off-screen bug

2014-12-04 Thread 'Terry Brown' via leo-editor
On Thu, 4 Dec 2014 11:02:51 -0600 Edward K. Ream edream...@gmail.com wrote: On Sat, Nov 29, 2014 at 1:11 AM, Matt Wilkie map...@gmail.com wrote: Now how did you get that nicely formatted `c.db.keys()` in the first section? I had to wrap it in `g.es(c.db.keys())`, and then it prints

Strange g.os_path_abspath(c.fileName) behaviour...

2014-12-04 Thread Davy Cottet
Hi, For my experimental version of leoDist.leo, I use abspath(c.fileName) to get the path of the opened outline, in this case /path/of/leo/dist I've noticed a strange behaviour, that unfortunately implies bugs. Maybe can you reproduce it and explain to me : - put this code into a @button :

Re: Any testers for leo-5.0-2.noarch.rpm ?

2014-12-04 Thread Edward K. Ream
On Thu, Dec 4, 2014 at 9:35 AM, Davy Cottet cottet.d...@gmail.com wrote: Ooops, I put it into linux brach since then... Here it is : https://github.com/davy39/leo-editor/blob/linux/leo-5.0-2.noarch.rpm?raw=true ​I think it works for me. Here is what I did. 1. Google ubuntu rpm. Got

Re: Strange g.os_path_abspath(c.fileName) behaviour...

2014-12-04 Thread Edward K. Ream
On Thu, Dec 4, 2014 at 11:12 AM, Davy Cottet cottet.d...@gmail.com wrote: For my experimental version of leoDist.leo, I use abspath(c.fileName) to get the path of the opened outline, in this case /path/of/leo/dist ​I don't know why this weird example has problem, but you should use::

Re: Strange g.os_path_abspath(c.fileName) behaviour...

2014-12-04 Thread 'Terry Brown' via leo-editor
On Thu, 4 Dec 2014 09:12:55 -0800 (PST) Davy Cottet cottet.d...@gmail.com wrote: Hi, For my experimental version of leoDist.leo, I use abspath(c.fileName) to get the path of the opened outline, in this case /path/of/leo/dist I've noticed a strange behaviour, that unfortunately implies bugs.

Re: Strange g.os_path_abspath(c.fileName) behaviour...

2014-12-04 Thread 'Terry Brown' via leo-editor
On Thu, 4 Dec 2014 11:35:38 -0600 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: On Thu, 4 Dec 2014 09:12:55 -0800 (PST) Davy Cottet cottet.d...@gmail.com wrote: Hi, For my experimental version of leoDist.leo, I use abspath(c.fileName) to get the path of the opened

Re: Strange g.os_path_abspath(c.fileName) behaviour...

2014-12-04 Thread Edward K. Ream
On Thu, Dec 4, 2014 at 11:35 AM, 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: Unless I'm missing something, that's what @path nodes are supposed to do. If you created a @edit file.txt under the @path node, the text directory would be created for saving file.txt in.

Re: Any testers for leo-5.0-2.noarch.rpm ?

2014-12-04 Thread Davy Cottet
So you did convert to deb a rpm I converted from deb with alien :) At least, no information have been lost in the process. We gotta test it in a rpm based environment, like fedora. I think the sensitive part will be to see how it handle dependencies since I have not checked yet if they are called

Re: Strange g.os_path_abspath(c.fileName) behaviour...

2014-12-04 Thread Davy Cottet
Thank Edward, again you solve my problem : So instead of g.os_path_abspath(c.fileName) that I was wrongly using since it kind of worked I have to use : g.os_path_dirname(c.fileName*()*) I fact, I didn't understand what was this strange *c.fileName *comander followed by a string that

Re: New distribution process for testing

2014-12-04 Thread Davy Cottet
Sorry for the disagreements, I'm fighting to merge, pull, push from various repos/branch so I had to move this work in a experiental branch. You can get it here : https://github.com/davy39/leo-editor/archive/experimental.zip And see history of commits here :

Re: possible off-screen bug

2014-12-04 Thread Edward K. Ream
On Thu, Dec 4, 2014 at 11:05 AM, 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: But the valuespace command is rendering the result of the last executed code block using pprint.pprint, which includes the values and handles indentation and alignment. ​Time to look at this

Re: outline background colour

2014-12-04 Thread Edward K. Ream
On Thu, Dec 4, 2014 at 8:31 AM, Edward K. Ream edream...@gmail.com wrote: On Fri, Nov 28, 2014 at 8:20 PM, Martin Towner martintow...@googlemail.com wrote: ​​ I'm having trouble changing the background colour: This is beginning to look like stylesheet hell. It looks like a seemingly