[Zope] PUT_factory and File object?

Stefan H. Holek stefan at epy.co.at
Thu Aug 10 09:15:10 EDT 2006


On 10. Aug 2006, at 13:52, Eric Fernandez wrote:

> def PUT_factory( self, name, typ, body ):

      ob = None

>    if typ.startswith('text'):
>        ob = File(name, '', body, content_type=typ)
>    return ob
>
>
> However, I cannot upload jpg files anymore... What am I doing wrong  
> there?

Stefan


--
Anything that, in happening, causes something else to happen,
causes something else to happen.  --Douglas Adams




More information about the Zope mailing list