General library used by selector and generator. It handles images,
progress bars and configuration file.
|
|
RangeTout(repository,
bUseX=True)
moves all the JPEG files to a directory named from their day and with
the name according to the time This is a MVC implementation |
source code
|
|
|
|
ProcessSelected(SelectedFiles)
This procedure uses the MVC implementation of processSelected It
makes a copy of all selected photos and scales them copy all the
selected files to "selected" subdirectory, 20 per page |
source code
|
|
|
|
CopySelected(SelectedFiles)
This procedure makes a copy of all selected photos and scales them
copy all the selected files to "selected" subdirectory |
source code
|
|
|
|
makedir(filen)
creates the tree structure for the file |
source code
|
|
|
|
mkdir(filename)
create an empty directory with the given rights |
source code
|
|
|
list of strings
|
findFiles(strRootDir,
lstExtentions=['.jpg', '.jpeg', '.jpe', '.jfif'],
bFromRoot=False)
Equivalent to: files=os.system('find "%s" -iname
"*.%s"'%(RootDir,suffix)).readlines() |
source code
|
|
|
|
ScaleImage(filename,
filigrane=None)
common processing for one image : create a subfolder
"scaled" and "thumb" : |
source code
|
|
|
|
unicode_to_ascii(unicrap)
This takes a UNICODE string and replaces unicode characters with
something equivalent in 7-bit ASCII. |
source code
|
|
|
|
SmartSize(size)
print the size of files in a pretty way |
source code
|
|
|
|
recursive_delete(strDirname)
Delete everything reachable from the directory named in
"top", assuming there are no symbolic links. |
source code
|
|