module homeblog.modifypost
¶
Functions¶
function |
truncated documentation |
---|---|
Writes datachars to writer and deals with < > |
|
|
|
|
|
|
|
modifies, checks the syntax of every post |
|
the function do not modify links |
|
|
Documentation¶
Helpers which modify a post.
-
ensae_teaching_cs.homeblog.modifypost.
_write_data
(writer, data, section)¶ Writes datachars to writer and deals with < >
- Paramètres
writer – stream or file
data – string to write
section – depending of this name, some special characters are processed or not (pre or !pre)
-
ensae_teaching_cs.homeblog.modifypost.
modify_all_posts
(folder='.', outfolder=None, exclude=None)¶ modifies, checks the syntax of every post
- Paramètres
folder – folder (also process subfolders)
outfolder – new location (the modified post is copied somewhere else), if None, replace the file
exclude –
if not None, function which avoids some file the function returns a True value, example:
lambda f : "_old" in f
- Renvoie
files, modified where: * files is the list of files processed * modified is the list of modified files
-
ensae_teaching_cs.homeblog.modifypost.
modify_header_attributes
(dom, headerattr)¶ the function do not modify links