def traverseEdge(self, n): pano = SVCloud.get_db_metadata(self.pano.location, self.pano.edges[n].panoid) if not pano: print "Could not find the panorama in the database." pano = SVCloud.get_sv_metadata(self.pano.edges[n].panoid) if not pano: print "Could not find the panorama in Street View." return self.set_pano(pano)