OpenQuizz
Une application de gestion des contenus pédagogiques
Blob Class Reference
Inheritance diagram for Blob:
Collaboration diagram for Blob:

Public Member Functions

def mime_type (self)
 
- Public Member Functions inherited from IndexObject
def __init__ (self, repo, binsha, mode=None, path=None)
 
def __hash__ (self)
 
def name (self)
 
def abspath (self)
 
- Public Member Functions inherited from Object
def __init__ (self, repo, binsha)
 
def new (cls, repo, id)
 
def new_from_sha (cls, repo, sha1)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __str__ (self)
 
def __repr__ (self)
 
def hexsha (self)
 
def data_stream (self)
 
def stream_data (self, ostream)
 

Static Public Attributes

 DEFAULT_MIME_TYPE
 
 type
 
 executable_mode
 
 file_mode
 
 link_mode
 
- Static Public Attributes inherited from Object
 NULL_HEX_SHA
 
 NULL_BIN_SHA
 
 TYPES
 
 type
 

Additional Inherited Members

- Data Fields inherited from IndexObject
 mode
 
 path
 
- Data Fields inherited from Object
 repo
 
 binsha
 
 size
 

Detailed Description

A Blob encapsulates a git blob object

Member Function Documentation

◆ mime_type()

def mime_type (   self)
:return: String describing the mime type of this file (based on the filename)
:note: Defaults to 'text/plain' in case the actual file type is unknown. 

Field Documentation

◆ DEFAULT_MIME_TYPE

DEFAULT_MIME_TYPE
static

◆ executable_mode

executable_mode
static

◆ file_mode

file_mode
static

◆ link_mode

link_mode
static

◆ type

type
static

The documentation for this class was generated from the following file: