Another quick way of checking whether a particular API still exists is to use the following script:

----
import inspect
for x in inspect.getmembers(p):
  g.es(x[0])
----

Output for the above:
OnHyperLinkControlClick

OnHyperLinkEnter

OnHyperLinkLeave

__class__

__delattr__

__dict__

__doc__

__eq__

__format__

__ge__

__getattribute__

__gt__

__hash__

__init__

__le__

__lt__

__module__

__ne__

__new__

__nonzero__

__reduce__

__reduce_ex__

__repr__

__setattr__

__sizeof__

__str__

__subclasshook__

__weakref__

_adjustPositionBeforeUnlink

_childIndex

_linkAfter

_linkAsNthChild

_linkAsRoot

_parentVnode

_position__get_b

_position__get_gnx

_position__get_h

_position__set_b

_position__set_h

_unlink

anyAtFileNodeName

archivedPosition

atAsisFileNodeName

atAutoNodeName

atEditNodeName

atFileNodeName

atNoSentFileNodeName

atNoSentinelsFileNodeName

atShadowFileNodeName

atSilentFileNodeName

atThinFileNodeName

b

back

badUnlink

bodyString

checkVisBackLimit

checkVisNextLimit

childIndex

children

children_iter

cleanHeadString

clearAllVisitedInTree

clearDirty

clearMarked

clearOrphan

clearVisited

clearVisitedInTree

clone

computeIcon

contract

convertTreeToString

copy

copyTreeAfter

copyTreeFromSelfTo

deletePositionsInList

directParents

doDelete

dump

dumpLink

expand

findAllPotentiallyDirtyNodes

findRootPosition

firstChild

following_siblings

following_siblings_iter

getBack

getFirstChild

getLastChild

getLastNode

getNext

getNodeAfterTree

getNthChild

getParent

getThreadBack

getThreadNext

getVisBack

getVisNext

get_UNL

gnx

h

hasBack

hasChildren

hasFirstChild

hasNext

hasParent

hasThreadBack

hasThreadNext

hasVisBack

hasVisNext

headString

inAtIgnoreRange

initBodyString

initExpandedBit

initHeadString

initMarkedBit

initStatus

insertAfter

insertAsLastChild

insertAsNthChild

invalidOutline

isAncestorOf

isAnyAtFileNode

isAtAllNode

isAtAsisFileNode

isAtAutoNode

isAtAutoOtlNode

isAtAutoRstNode

isAtEditNode

isAtFileNode

isAtIgnoreNode

isAtNoSentFileNode

isAtNoSentinelsFileNode

isAtOthersNode

isAtShadowFileNode

isAtSilentFileNode

isAtThinFileNode

isCloned

isDirty

isExpanded

isMarked

isOrphan

isRoot

isSelected

isTopBitSet

isVisible

isVisited

key

lastChild

lastNode

level

matchHeadline

moreBody

moreHead

moveAfter

moveToBack

moveToFirstChild

moveToFirstChildOf

moveToLastChild

moveToLastChildOf

moveToLastNode

moveToNext

moveToNodeAfterTree

moveToNthChild

moveToNthChildOf

moveToParent

moveToRoot

moveToThreadBack

moveToThreadNext

moveToVisBack

moveToVisNext

next

nodeAfterTree

nodes

nthChild

numberOfChildren

parent

parents

parents_iter

positionAfterDeletedTree

restoreCursorAndScroll

saveCursorAndScroll

scriptSetBodyString

self_and_parents

self_and_parents_iter

self_and_siblings

self_and_siblings_iter

self_and_subtree

self_and_subtree_iter

setAllAncestorAtFileNodesDirty

setBodyString

setDirty

setHeadString

setIcon

setMarked

setOrphan

setSelected

setSelection

setTnodeText

setVisited

simpleLevel

stack

status

subtree

subtree_iter

subtree_with_unique_tnodes_iter

subtree_with_unique_vnodes_iter

textOffset

threadBack

threadNext

tnodes_iter

txtOffset

unique_nodes

unique_subtree

unique_tnodes_iter

unique_vnodes_iter

v

validateOutlineWithParent

visBack

visNext

vnodes_iter


-->Jake



On 6/2/2013 2:28 PM, Fidel Pérez wrote:
Well the solution is to use:
self_and_siblings()
But here <http://leoeditor.com/scripting.html>, in the section "iterators", siblings() appears as one of them, but it doesnt work.

On Sunday, June 2, 2013 8:25:52 PM UTC+2, Fidel Pérez wrote:

    Hi, I have gone crazy today to find out that the bug was not on my
    code but in Leo's code, please correct me if im wrong:

    If you execute the following code:

    for sibiling in p.following_siblings():
    g.es <http://g.es>(sibiling.h)

    The log pane will show as expected, but if I execute this code:

    for sibiling in p.siblings():
    g.es <http://g.es>(sibiling.h)

    It will throw an error: "Position' object has no attribute 'siblings'.
    Am I doing something wrong?
    Thanks!

--
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.



--
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