def getAllPhotoImageUrls(self): urls = [] for e in self.getAllElements(): e = Photo(e) urls.append(e.getImageUrl()) return urls