Well duh....
Just search c.all_positions() for position.gnx=stored value -_-
Thanks again this is an awesome feature!

On Wednesday, June 12, 2013 11:35:03 AM UTC+2, Fidel Pérez wrote:
>
> Great, thank you!
>
> Im storing the position ok but cant access the "idx" command to retrieve 
> it.
>
>         idx
>>
>> mapping from gnx to node
>>
>
> I know it is in the class leoreader (leopyref.leo).
> Could you please tell me how to access that?
> Very much appreciated :)
>
>
> On Wednesday, June 12, 2013 11:09:24 AM UTC+2, Fidel Pérez wrote:
>>
>> Hi, Im having the following error:
>>
>>
>>> PicklingError: Can't pickle <type 'instancemethod'>: attribute lookup 
>>> __builtin__.instancemethod failed
>>> --------------------
>>>   line 486:                 compressed = zlib.compress(pickle.dumps(
>>> * line 487:                     val, pickle.HIGHEST_PROTOCOL))
>>>   line 488:                 fileobj.write(compressed)
>>>   line 489: 
>>
>>
>> It is because I am trying to add a node reference into pickleshare, this 
>> way:
>>
>>
>> c.db['Tree_SelectedNode']=c.p.copy()
>>
>>
>> How can I add node references to pickleshare?
>>
>>
>> When I do g.es(c.p.v) I see this:
>>
>> <vnode 76038384:'Python 2.7'>
>>
>> I could just refer that vnode number, but for that, I should be able to 
>> get c.p back out of that vnode number. Is that possible?
>>
>>
>> Thank you. 
>>
>

-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to