PUT_factory.py
File contents
# make this an external method from Products.ExtFile.ExtImage import ExtImage import string def PUT_factory(self, name, typ, body): '''create ExtImage instead of plain Image''' major, minor = string.split(typ, '/') if major == 'image': return ExtImage(name, '', '') return None