[Zope] Use MimeTypesRegistry in a plone product
Dieter Maurer
dieter at handshake.de
Tue Nov 16 13:51:21 EST 2004
Stéphane Peillon wrote at 2004-11-16 09:05 +0100:
> ...
>mime_type=self.mimetypes_registry.classify(file,filename=self.id).mimetypes[0]
> ...
> File "E:\Zope-Instance\SG-IG\Products\PloneExFile\ExFile.py", line
>220, in PUT
>
>mime_type=self.mimetypes_registry.classify(file,filename=self.id).mimetypes[0]
>AttributeError: mimetypes_registry
Apparently, "mimetypes_registry" is not accessible from "self"
(via acquisition).
--
Dieter
More information about the Zope
mailing list