def prepare_photo(self): if self.crops.first() is None: print str(datetime.now())+" Photo "+str(self.id)+": Creating Initial Crops" high_queue.enqueue(create_initial_crops, self) print str(datetime.now())+" Photo "+str(self.id)+": Creating Rest of Crops" low_queue.enqueue(create_crops, self) if self.exif_date_taken is None: low_queue.enqueue(update_exif, self)
def add_photo(self, photo): high_queue.enqueue(add_photo_to_gallery, self, photo.id)