[Zope] PIL: can't call same method twice

Chris Withers chris at simplistix.co.uk
Mon Mar 7 11:42:23 EST 2005


Chris wrote:

> Hi David,
> 
> this is not the problem (tried it before).
> 
> The code
> foo  = container.resize(context.REQUEST.image, size=size) # works nicely

at this point, try inserting:

context.REQUEST.image.seek(0)

> foo  = container.resize(context.REQUEST.image, size=size) # 2nd time 
> ->error
> does what you suggest. But it raises the same error.

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope mailing list