Example #1
0
File: ftb.py Project: neilferg/ftb
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()
Example #2
0
File: ftb.py Project: neilferg/ftb
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)
Example #3
0
File: ftb.py Project: neilferg/ftb
def handle_chk(args):
    treeRoot = args.treeroot
    if treeRoot is None:
        treeRoot = getTreeRoot()

    LinkAnalyser(treeRoot, args.findings).analyse(args.backlinks)
Example #4
0
File: ftb.py Project: neilferg/ftb
def handle_clean(args):
    treeRoot = args.treeroot
    if treeRoot is None:
        treeRoot = getTreeRoot()
    cleanupfiles(treeRoot, args.dryrun)
Example #5
0
File: ftb.py Project: neilferg/ftb
def handle_bld(args):
    treeRoot = args.treeroot
    if treeRoot is None:
        treeRoot = getTreeRoot()
    pf = ft_build.initAndScan(treeRoot)
    ft_build.MakeWeb(pf).make()