Comment 6 for bug 882824

Revision history for this message
SegundoBob (bhossley) wrote : Re: [Bug 882824] Re: bookmarks_show command with free_layout plugin not enabled sends AttributeError to console

On 03/15/2012 09:53 AM, Edward K. Ream wrote:
> it does work without crashing on both Python 2.x and 3.x.

No crash confirmed. But I'm still seeing the same errors as reported on
2012-03-10 on the console, with one new message:
loadOnePlugin loaded leo.plugins.free_layout

When I disabled all plugins except bookmarks.py and ran Alt-x,
bookmarks_show in an outline containing several "bookmarks", it created
a new Log-pane tab with label "@url file:" but it left the log tab on
top, and it output many error messages to the console:

11:22:53 ~$ leomy

** isPython3: False
Leo 4.9.1 devel, build 5143, 2012-03-15 11:18:22
Python 2.7.2, qt version 4.7.3
linux2
reading settings in /home/bob/bzr/LeoLatest/leo/config/leoSettings.leo
reading settings in /home/bob/.leo/myLeoSettings.leo
reading settings in /home/bob/.leo/workbook.leo
loadOnePlugin loaded leo.plugins.free_layout
Traceback (most recent call last):
  File "/home/bob/bzr/LeoLatest/leo/plugins/qtGui.py", line 8630, in
eventFilter
    ret = k.masterKeyHandler(event)
  File "/home/bob/bzr/LeoLatest/leo/core/leoKeys.py", line 2896, in
masterKeyHandler
    done,val = k.doMode(event,state,stroke)
  File "/home/bob/bzr/LeoLatest/leo/core/leoKeys.py", line 2974, in doMode
    val = k.callStateFunction(event) # Calls end-command.
  File "/home/bob/bzr/LeoLatest/leo/core/leoKeys.py", line 2948, in
callStateFunction
    val = k.state.handler(event)
  File "/home/bob/bzr/LeoLatest/leo/core/leoKeys.py", line 2036, in
fullCommand
    k.callAltXFunction(k.mb_event)
  File "/home/bob/bzr/LeoLatest/leo/core/leoKeys.py", line 2082, in
callAltXFunction
    func(event)
  File "/home/bob/bzr/LeoLatest/leo/core/leoCommands.py", line 1086, in
minibufferCallback
    retval = function(keywords)
  File "/home/bob/bzr/LeoLatest/leo/plugins/bookmarks.py", line 77, in
bookmarks_show
    splitter = bmd.c.free_layout.get_top_splitter()
AttributeError: 'Commands' object has no attribute 'free_layout'
---- End console ----

The new "@url file:" tab was empty.

Test System:
Ubuntu 11.10 with Fluxbox window manager
Leo Log Window
Leo 4.9.1 devel, build 5143, 2012-03-15 11:18:22
Python 2.7.2, qt version 4.7.3
linux2
setting leoID from os.getenv('USER'): 'bob'
load dir: /home/bob/bzr/LeoLatest/leo/core
global config dir: /home/bob/bzr/LeoLatest/leo/config
home dir: /home/bob
reading settings in /home/bob/bzr/LeoLatest/leo/config/leoSettings.leo
reading settings in /home/bob/.leo/myLeoSettings.leo
reading settings in /home/bob/.leo/workbook.leo
reading: /home/bob/.leo/workbook.leo

--
Segundo Bob
<email address hidden>