Ticket #1550 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Problem adding image to flexible (and just Image in gallery)

Reported by: rspivak Owned by: ogrisel
Priority: P1 Milestone: CPS 3.4.1
Component: CPSSchemas Version: 3.4.0
Severity: normal Keywords:


This happens if PIL is not available:

Traceback (innermost last):
  Module ZPublisher.Publish, line 113, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Products.CMFCore.FSPythonScript, line 108, in __call__
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 164, in _exec
  Module None, line 29, in cpsdocument_edit
   - <FSPythonScript at /cps/cpsdocument_edit used for /cps/members/manager/qw>
   - Line 29
  Module Products.CPSDocument.CPSDocument, line 76, in validate
  Module Products.CPSDocument.FlexibleTypeInformation, line 805, in validateObject
  Module Products.CPSDocument.FlexibleTypeInformation, line 677, in _validateLayoutStructures
  Module Products.CPSSchemas.Layout, line 344, in validateLayoutStructure
  Module Products.CPSSchemas.BasicWidgets, line 2018, in validate
  Module Products.CPSSchemas.BasicWidgets, line 1751, in validate
  Module Products.CPSSchemas.BasicWidgets, line 1900, in makeFile
  Module Products.CPSSchemas.BasicWidgets, line 1883, in getResizedImage
UnboundLocalError: local variable 'outfile' referenced before assignment

Change History

comment:1 Changed 14 years ago by ogrisel

  • Owner changed from fguillaume to ogrisel

Confirmed: this is PIL-specific, I'll look into it

comment:2 Changed 14 years ago by ogrisel

  • Status changed from new to closed
  • Resolution set to fixed

fixed in [34711]

Note: See TracTickets for help on using tickets.