Exemplo n.º 1
0
    def mimetype_handler(self):
        """Return the mimetype handler for this file."""
        if not hasattr(self, '_thumbnail'):
            self._thumbnail = MimetypeHandler.for_type(self)

        return self._thumbnail
Exemplo n.º 2
0
    def mimetype_handler(self):
        if not hasattr(self, '_thumbnail'):
            self._thumbnail = MimetypeHandler.for_type(self)

        return self._thumbnail
Exemplo n.º 3
0
    def mimetype_handler(self):
        if not hasattr(self, '_thumbnail'):
            self._thumbnail = MimetypeHandler.for_type(self)

        return self._thumbnail
Exemplo n.º 4
0
 def mimetype_handler(self):
     return MimetypeHandler.for_type(self)
Exemplo n.º 5
0
    def mimetype_handler(self):
        """Return the mimetype handler for this file."""
        if not hasattr(self, '_thumbnail'):
            self._thumbnail = MimetypeHandler.for_type(self)

        return self._thumbnail
Exemplo n.º 6
0
 def mimetype_handler(self):
     return MimetypeHandler.for_type(self)