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

Public Member Functions

def __init__ (self, sandbox, exceptions=_EXCEPTIONS)
 
def tmpnam (self)
 
def open (self, file, flags, mode=0o777, *args, **kw)
 
- Public Member Functions inherited from AbstractSandbox
def __init__ (self)
 
def __enter__ (self)
 
def __exit__ (self, exc_type, exc_value, traceback)
 
def run (self, func)
 

Static Public Attributes

 write_ops
 

Detailed Description

Restrict operations to a single subdirectory - pseudo-chroot

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  sandbox,
  exceptions = _EXCEPTIONS 
)

Member Function Documentation

◆ open()

def open (   self,
  file,
  flags,
  mode = 0o777,
args,
**  kw 
)
Called for low-level os.open()

◆ tmpnam()

def tmpnam (   self)

Field Documentation

◆ write_ops

write_ops
static

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