[Zope-dev] zope.filerepresentation

Charlie Clark charlie.clark at clark-consulting.eu
Thu Oct 1 10:02:37 EDT 2009


Am 01.10.2009, 15:51 Uhr, schrieb Martin Aspeli <optilude+lists at gmail.com>:

> Haha. Maybe I'll have a property mimeType instead? That looks better, I
> guess.

+1 to use a property rather than a getter. Not sure about content-type vs.  
mime-type. If this is used only in an HTTP environment then I'd prefer to  
stick with content-type otherwise I'd suggest the email module's  
content-type handling.

> But we *are* in a Zope package, so Zope naming conventions probably  
> apply.

I go with Pythonic conventions wherever possible.

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtztstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226


More information about the Zope-Dev mailing list