>From the docstring for plugin macros.py, it seems as though the content of 
the A node is changed into the body text for << Meow >> with the arguments 
in A's << meow ( purrr, zzooooot ) >> as body text in sub-nodes of A. So 
A's body would be changed to look the same as the << Meow >> body, with 
sections << 1$ >> and << 2$ >> as sub-nodes below it. The cursor must be 
placed where the x appears in the following line from A's body:
<< meow ( purrr, zzzooooot ) >>x
before "Parameterize Section Reference" is selected in the Outline menu. 
I've messed with capitalization of the M in Meow,etc. Any help would be 
appreciated.

Would someone who has made this work please explain how they did it? I have 
probably misunderstood the docstring.

On Tuesday, December 2, 2014 5:43:58 PM UTC-6, bobS wrote:
>
> Test Parameterized Nodes
> A
>    body text: << meow ( purrrrr, zzooooot ) >>
> B
>    body text: << meow ( spit, necessary ) >>
> Parameterized Nodes
>    << Meow >>
>       body text: I mmmm sooo happy I could << 1$ >>.
>                      But I don't know if I have all the << 2$ >>
>                      money.
>
> When I click on Parameterize Section Reference in the Outline menu, I get:
>
> exception executing command
>
> Traceback (most recent call last):
>
>
>   File "/home/rshanley/Leo5.0-final/leo/core/leoCommands.py", line 556, in 
> doCommand
>     val = command(event)
>
>
>   File "/home/rshanley/Leo5.0-final/leo/plugins/macros.py", line 111, in 
> parameterize
>     sr = s = body.getAllText()
>
> AttributeError: 'LeoQtBody' object has no attribute 'getAllText'
>
>
> PyQt4 is installed.
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to