def apply_picture(self): picture_filename = butterfly_helper.get_newest_image_name() appuifw.note(u'Applying: ' + picture_filename) parent_id = self.parent_db['id'] captureORM = butterflydb.Captures(self.db, id=parent_id) captureORM.set(picture_filename=picture_filename) switch_in(captureORM.dict())
def apply_picture_filename(self): self.picture_filename = butterfly_helper.get_newest_image_name() appuifw.note(u"Applying: " + self.picture_filename) self.save_hook(self.form)