Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def add_photo(self, photo):
     high_queue.enqueue(add_photo_to_gallery, self, photo.id)