module documentation
(source)

Undocumented

Function replace_parsetree_links_and_copy_images Changes parsetree in place to resolve links for the new location Also copies images to the new location
Function set_parsetree_attributes_to_resolve_links Changes parsetree in place so links can later be resolved against the source page
Function update_parsetree_and_copy_images Convenience method to update parsetree in place and copy any images for use in a new page
Variable logger Undocumented
Function _copy_image Undocumented
Function _copy_image_object Undocumented
Function _replace_links_to_interwiki_and_copy_images Undocumented
Function _replace_links_to_page_and_copy_images Undocumented
Function _resolve_links_and_images Undocumented
Function _strip_link_and_image_attribs Undocumented
Function _update_image Undocumented
def replace_parsetree_links_and_copy_images(parsetree, notebook, path): (source)

Changes parsetree in place to resolve links for the new location Also copies images to the new location

TODO: in theory you want the move images in certain cases - e.g. on clipboard "cut" operation. However at the moment we cannot check links from other pages to the image file; so it is not wise to do so. Improve logic when this is possible and add a "cut/copy" switch to the method. On "cut" move if no other use of the image on the same (old) page and update links in other pages; else copy.

def set_parsetree_attributes_to_resolve_links(parsetree, notebook, path): (source)
Changes parsetree in place so links can later be resolved against the source page
def update_parsetree_and_copy_images(parsetree, notebook, oldpath, newpath): (source)
Convenience method to update parsetree in place and copy any images for use in a new page
logger = (source)

Undocumented

def _copy_image(notebook, new_path, src_file, node): (source)

Undocumented

def _copy_image_object(notebook, new_path, src_file, node): (source)

Undocumented

def _replace_links_to_interwiki_and_copy_images(src_interwiki, notebook, new_path, node): (source)

Undocumented

def _replace_links_to_page_and_copy_images(notebook, old_folder, new_path, node): (source)

Undocumented

def _resolve_links_and_images(notebook, src_path, node): (source)

Undocumented

def _strip_link_and_image_attribs(node): (source)

Undocumented

def _update_image(notebook, new_path, src_file, node): (source)

Undocumented