Exemplo n.º 1
0
	def activate_changes(self, generate_page = True):
		if generate_page:
			pass
		
		with db.get_connection():
			db.sync_all(db.version_current, db.version_new)
			db.cleanup_orphan_images()
Exemplo n.º 2
0
	def delete_text_image(self, area_name, image_id):
		db.delete_text_image(area_name, image_id)
		db.cleanup_orphan_images()
Exemplo n.º 3
0
	def revert_text(self, area_name):
		db.sync_text_area(area_name, db.version_new, db.version_current)
		db.cleanup_orphan_images()
Exemplo n.º 4
0
	def revert_gallery(self, area_name):
		db.sync_gallery_area(area_name, db.version_new, db.version_current)
		db.cleanup_orphan_images()