Ticket #2416 (new defect)

Opened 8 years ago

Last modified 8 years ago

Resizing problem with Tramline Image

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.5.7
Component: CPSUtil Version: 3.5.2
Severity: normal Keywords: tramline image resize


Since the latest stage of refactor from CPSCore to CPSUtil for the resizing logic (removing the latest remaining duplication between those two), sized display of a Tramline Image ends with this error :

  Module Products.CPSCore.ProxyBase, line 1025, in getImage
  Module Products.CPSCore.ProxyBase, line 1001, in targetGeometry
  Module Products.CPSUtil.image, line 184, in resized_geometry
  Module Products.CPSUtil.image, line 100, in _geometry_from_largest
  Module Products.CPSUtil.image, line 92, in geometry
  Module Products.CPSUtil.image, line 59, in info
  Module Products.CPSUtil.file, line 195, in ofsFileHandler
  Module Products.CPSTramline.tramlinefile, line 142, in getFileHandler
RuntimeError: Tramline tool not available

The error is in some CPSUtil's code that was not previously executed.

Change History

comment:1 Changed 8 years ago by gracinet

Fixed. Actually all types of Image that would need the zope acquisition context would have been broken. Currently, these are Tramline Image only

Note: See TracTickets for help on using tickets.