TileImage.py 637 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
from Products.ERP5.Document.Image import Image
from zLOG import LOG,INFO,ERROR,WARNING

class TileImage(Image):
  """
  Tile Images split images in many small parts and then store informations as sub objects
  """

  def _setFile(self, *args, **kw):
    """Set the file content and reset image information."""
    if "TileGroup0" in self.objectIds():
        self.manage_delObjects("TileGroup0")
    if "ImageProperties.xml" in self.objectIds():
        self.manage_delObjects("ImageProperties.xml")
    self._update_image_info()
16
    processor = self.Image_getERP5ZoomifyProcessor(self)
17 18
    processor.ZoomifyProcess(self.getId(),*args)