def get_attachment_type(self, path):
        return self.config['ATTACHMENT_TYPES'].get(
            posixpath.splitext(path)[1].lower())
Gets the attachment type for a path.
dataset/ETHPy150Open lektor/lektor/lektor/db.py/Database.get_attachment_type