NameError in @auto-rss autotrees example

2 views
Skip to first unread message

Peter Bienstman

unread,
Aug 16, 2008, 3:42:35 AM8/16/08
to leo-editor
Hi,

I've been playing around with the rss examples in the autotrees
plugin. If I click on an @auto-rss node, I get the following:

Handling 'rss' with 'http://news.bbc.co.uk/rss/newsonline_uk_edition/
world/rss091.xml'
Starting download
Done!
Traceback (most recent call last):
File "/home/pbienst/source/leo-editor/leo/core/leoGlobals.py", line
2743, in doHook
return f(tag,keywords)
File "/home/pbienst/source/leo-editor/leo/core/leoPlugins.py", line
91, in doPlugins
return doHandlersForTag(tag,keywords)
File "/home/pbienst/source/leo-editor/leo/core/leoPlugins.py", line
70, in doHandlersForTag
val = callTagHandler(bunch,tag,keywords)
File "/home/pbienst/source/leo-editor/leo/core/leoPlugins.py", line
49, in callTagHandler
result = handler(tag,keywords)
File "/home/pbienst/source/leo-editor/leo/plugins/autotrees.py",
line 347, in onIconDoubleClick
self.handleEvent("icondclick1", tag, keywords)
File "/home/pbienst/source/leo-editor/leo/plugins/autotrees.py",
line 374, in handleEvent
handler.refresh()
File "/home/pbienst/source/leo-editor/leo/plugins/autotrees.py",
line 213, in refresh
self.addChildren(self.children, self.node)
File "/home/pbienst/source/leo-editor/leo/plugins/autotrees.py",
line 239, in addChildren
c.setHeadString(new_node,child.headline)
NameError: global name 'c' is not defined

Peter

Edward K. Ream

unread,
Aug 16, 2008, 12:53:25 PM8/16/08
to leo-e...@googlegroups.com
On Sat, Aug 16, 2008 at 2:42 AM, Peter Bienstman <Peter.B...@ugent.be> wrote:


 File "/home/pbienst/source/leo-editor/leo/plugins/autotrees.py",
line 239, in addChildren
   c.setHeadString(new_node,child.headline)
NameError: global name 'c' is not defined

Thanks for this report.  This will be fixed for b4.

Edward

Reply all
Reply to author
Forward
0 new messages