return list of all parent collectors up to ourself.
def listchain(self):
origin: test.collect.Collector
where:
function source:
def listchain(self):
""" return list of all parent collectors up to ourself. """
l = [self]
while 1:
x = l[-1]
if x.parent is not None:
l.append(x.parent)
else:
l.reverse()
return l
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.0
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.1
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.2
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.3
called in /home/johnny/projects/merlinux/py/dist/py/test/tkinter/util.py
traceback test.collect.Directory.listchain.4
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.5
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.6
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.7
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.8
called in /home/johnny/projects/merlinux/py/dist/py/test/tkinter/util.py
traceback test.collect.Directory.listchain.9
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.10
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.11
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.12
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.13
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.14
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.15
called in /home/johnny/projects/merlinux/py/dist/py/test/tkinter/util.py
traceback test.collect.Directory.listchain.16
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.17
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.18
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Directory.listchain.19
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py