|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


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 | |
A list of files built by on exploring the filesystem and filtered by applying various patterns to what we find there.
| def __init__ | ( | self, | |
base = None |
|||
| ) |
Initialise an instance. :param base: The base directory to explore under.
| def add | ( | self, | |
| item | |||
| ) |
Add a file to the manifest. :param item: The pathname to add. This can be relative to the base.
| 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.
| def clear | ( | self | ) |
Clear all collected files.
| def findall | ( | self | ) |
Find all files under the base and set ``allfiles`` to the absolute pathnames of files found.
| 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
| def sorted | ( | self, | |
wantdirs = False |
|||
| ) |
Return sorted files in directory order
| allfiles |
| base |
| files |
| prefix |