Beispiel #1
0
def handle_convert(args):
    treeRoot = args.treeroot
    if treeRoot is None:
        treeRoot = getTreeRoot()

    incomingRootNode = args.root_node

    converter = Converter(args.dryrun, treeRoot, incomingRootNode,
                          args.link_type, args.abs_links)
    converter.convert_links()
Beispiel #2
0
def handle_update(args):
    treeRoot = args.treeroot
    if treeRoot is None:
        treeRoot = getTreeRoot()

    if args.all and (not args.vronly):
        consider = FILES_ALL_HTML
    elif args.vronly and (not args.all):
        consider = FILES_VRS_ONLY
    elif (not args.vronly) and (not args.all):
        consider = FILES_ALL_FTLOADER
    else:
        raise Exception("Invalid args: -a=%s, -v=%s" % (args.all, args.vronly))

    UpdateVrs(treeRoot, consider).scan(args.dryrun)
Beispiel #3
0
def handle_chk(args):
    treeRoot = args.treeroot
    if treeRoot is None:
        treeRoot = getTreeRoot()

    LinkAnalyser(treeRoot, args.findings).analyse(args.backlinks)
Beispiel #4
0
def handle_clean(args):
    treeRoot = args.treeroot
    if treeRoot is None:
        treeRoot = getTreeRoot()
    cleanupfiles(treeRoot, args.dryrun)
Beispiel #5
0
def handle_bld(args):
    treeRoot = args.treeroot
    if treeRoot is None:
        treeRoot = getTreeRoot()
    pf = ft_build.initAndScan(treeRoot)
    ft_build.MakeWeb(pf).make()