コード例 #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
コード例 #2
0
    def mimetype_handler(self):
        if not hasattr(self, '_thumbnail'):
            self._thumbnail = MimetypeHandler.for_type(self)

        return self._thumbnail
コード例 #3
0
ファイル: models.py プロジェクト: abhijo89/reviewboard
    def mimetype_handler(self):
        if not hasattr(self, '_thumbnail'):
            self._thumbnail = MimetypeHandler.for_type(self)

        return self._thumbnail
コード例 #4
0
ファイル: models.py プロジェクト: HuangShaoyan/reviewboard
 def mimetype_handler(self):
     return MimetypeHandler.for_type(self)
コード例 #5
0
ファイル: models.py プロジェクト: chipx86/reviewboard
    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
コード例 #6
0
 def mimetype_handler(self):
     return MimetypeHandler.for_type(self)