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

Public Member Functions

def __init__ (self, base=None)
 
def findall (self)
 
def add (self, item)
 
def add_many (self, items)
 
def sorted (self, wantdirs=False)
 
def clear (self)
 
def process_directive (self, directive)
 

Data Fields

 base
 
 prefix
 
 allfiles
 
 files
 

Detailed Description

A list of files built by on exploring the filesystem and filtered by
applying various patterns to what we find there.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  base = None 
)
Initialise an instance.

:param base: The base directory to explore under.

Member Function Documentation

◆ add()

def add (   self,
  item 
)
Add a file to the manifest.

:param item: The pathname to add. This can be relative to the base.

◆ add_many()

def add_many (   self,
  items 
)
Add a list of files to the manifest.

:param items: The pathnames to add. These can be relative to the base.

◆ clear()

def clear (   self)
Clear all collected files.

◆ findall()

def findall (   self)
Find all files under the base and set ``allfiles`` to the absolute
pathnames of files found.

◆ process_directive()

def process_directive (   self,
  directive 
)
Process a directive which either adds some files from ``allfiles`` to
``files``, or removes some files from ``files``.

:param directive: The directive to process. This should be in a format
     compatible with distutils ``MANIFEST.in`` files:

     http://docs.python.org/distutils/sourcedist.html#commands

◆ sorted()

def sorted (   self,
  wantdirs = False 
)
Return sorted files in directory order

Field Documentation

◆ allfiles

allfiles

◆ base

base

◆ files

files

◆ prefix

prefix

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