Greetings,
I am stuck with a piece of code and I am in need of more eyeballs.
Could anybody take the time and tell me where my error is?
I am trying to select all nodes in a subtree of the current node that
are Logic nodes in the Cleo meaning.
@
Collect all nodes with archetype Logic.
On Fri, Jun 13, 2008 at 4:39 AM, derwisch
[EMAIL PROTECTED] wrote:
def collectRules(p):
[node for node in p.self_and_subtree_iter() if Cleo.getat(node.v,
'archetype') == 'Logic']
This return None because you forgot the 'return' statement.
Edward
I got it.
In
def collectRules(p):
return [node for node in p.self_and_subtree_iter() if
Cleo.getat(node.v, 'archetype') == 'Logic']
it should read p.sef_and_subtree_iter(copy=True).
Sorry for molesting this list.
--~--~-~--~~~---~--~~
You received this
On Fri, Jun 13, 2008 at 6:25 AM, Edward K. Ream [EMAIL PROTECTED] wrote:
On Tue, Jun 10, 2008 at 12:05 PM, Terry Brown [EMAIL PROTECTED]
wrote:
If filename is an absolute filename the location of the derived file is
specified only by the filename. Otherwise, if filename is a relative
My active_path plugin is working quite well now. I'll commit it to
the trunk, it's only a plugin so it won't do anything unless you enable
it (active_path.py).
You can dig down through directories by clicking on the status-iconbox,
also load or create files that way.
But, to create files it