docs: def collectRecords(self, parent=None):
          """
          Collects all the record instances from the tree.
          
          :return     [<orb.Table>
          """
          out = []
          if not parent:
              for i in range(self.topLevelItemCount()):
                  item = self.topLevelItem(i)
                  try:
                      out.append(item.record())
                  except AttributeError:
                      pass
                  
                  out += self.collectRecords(item)
          else:
              for c in range(parent.childCount()):
                  item = parent.child(c)
                  try:
                      out.append(item.record())
                  except AttributeERror:
                      pass
                  
                  out += self.collectRecords(item)
          
          return out