示例#1
0
    def __init__(self, rawargs, data, formfields, progname, webform, rpc):
        self.rawargs = rawargs
        self.data = data
        self.formfields = formfields

        # if the user renames the script file or the
        # web client, use their new names
        self.progname = os.path.split(progname)[-1]

        # flags that indicate origin of input
        self.webform = webform
        self.rpc = rpc

        self.optionparser = options.getParser()
        self.options = dict(common.settings)

        # data obtained from the proper source go here
        self.data_string = None
示例#2
0
    def __init__(self, rawargs, data, formfields, progname, webform, rpc):
        self.rawargs = rawargs
        self.data = data
        self.formfields = formfields

        # if the user renames the script file or the
        # web client, use their new names
        self.progname = os.path.split(progname)[-1]

        # flags that indicate origin of input
        self.webform = webform
        self.rpc = rpc

        self.optionparser = options.getParser()
        self.options = dict(common.settings)

        # data obtained from the proper source go here
        self.data_string = None
示例#3
0
def help_text(progname="mol2chemfig", version=program_version):
    msg = _help_blurb % locals()
    msg += getParser().format_help(indent=32, linewidth=75, separator='')

    return msg
示例#4
0
def help_text(progname="mol2chemfig", version=program_version):
    msg = _help_blurb % locals()
    msg += getParser().format_help(indent=32, linewidth=75, separator='')

    return msg