当前位置: 首页>>代码示例>>Python>>正文


Python MoinScript.__init__方法代码示例

本文整理汇总了Python中MoinMoin.script.MoinScript.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python MoinScript.__init__方法的具体用法?Python MoinScript.__init__怎么用?Python MoinScript.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MoinMoin.script.MoinScript的用法示例。


在下文中一共展示了MoinScript.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option(
         "--py-append", metavar="FILENAME", dest="py_append_file",
         help="Append python code with editlog user ids."
     )
     self.parser.add_option(
         "--py-exec", metavar="FILENAME", dest="py_exec_file",
         help="Execute python code to read editlog user ids."
     )
     self.parser.add_option(
         "--show", dest="show", action="store_true",
         help="Show all inactive users."
     )
     self.parser.add_option(
         "--disable", dest="disable", action="store_true",
         help="Disable all inactive users."
     )
     self.parser.add_option(
         "--remove", dest="remove", action="store_true",
         help="Remove all inactive users."
     )
     self.parser.add_option(
         "--interactive", dest="interactive", action="store_true",
         help="Show data and ask before deleting/disabling users."
     )
开发者ID:Kartstig,项目名称:engineering-inventions-wiki,代码行数:28,代码来源:inactive.py

示例2: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self._addFlag("usersunique",
         "Makes user names unique (by appending the ID to"
         " name and email, disabling subscribed pages and"
         " disabling all, but the latest saved user account);"
         " default is to SHOW what will be happening, you"
         " need to give the --save option to really do it."
     )
     self._addFlag("emailsunique",
         "Makes user emails unique;"
         " default is to show, use --save to save it."
     )
     self._addFlag("wikinames",
         "Convert user account names to wikinames (camel-case)."
     )
     self._addFlag("lastsaved",
         "Normally the account most recently USED will"
         " survive and the others will be disabled."
         " Using --lastsaved, the account most recently"
         " SAVED will survive."
     )
     self._addFlag("save",
         "If specified as LAST option, will allow the other"
         " options to save user accounts back to disk."
         " If not specified, no settings will be changed permanently."
     )
     self._addFlag("removepasswords",
         "Remove pre-1.1 cleartext passwords from accounts."
     )
开发者ID:steveyen,项目名称:moingo,代码行数:32,代码来源:check.py

示例3: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
    def __init__(self, argv, def_values):
        MoinScript.__init__(self, argv, def_values)

        self.parser.add_option(
            "-u", "--user", dest="homepage_creator",
            help="User as whom the homepage creation operation will be performed as."
            )

        self.parser.add_option(
            "-t", "--template_page", dest="template_page",
            help="The template page which should be used for the homepage creation"
            )

        self.parser.add_option(
            "-n", "--name", dest="user_homepage",
            help="The name of the user the homepage should be created for."
            )

        self.parser.add_option(
            "-g", "--group", dest="name_of_group_page",
            help="The name of the group page to select users for creating their homepages."
            )

        self.parser.add_option(
            "-a", "--all-users", dest="all_users", action="store_true",
            help="The name of the group page to select users for creating their homepages."
            )
开发者ID:Glottotopia,项目名称:aagd,代码行数:29,代码来源:homepage.py

示例4: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option(
         "--url", dest="url", default="",
         help="Specify the location of the events RSS feed"
     )
     self.parser.add_option(
         "--template", dest="template", default="EventTemplate",
         help="Specify the template used to make the event pages"
     )
     self.parser.add_option(
         "--categories", dest="categories", default="CategoryEvents",
         help="Specify the categories to which the event pages will belong"
     )
     self.parser.add_option(
         "--author", dest="author", default="EventImporter",
         help="Specify the author of the event pages"
     )
     self.parser.add_option(
         "--parent", dest="parent", default="",
         help="Specify the parent page of the event pages"
     )
     self.parser.add_option(
         "--overwrite", dest="overwrite", action="store_true",
         help="Request that existing pages be overwritten"
     )
     self.parser.add_option(
         "--delete", dest="delete", action="store_true",
         help="Request that event pages associated with the feed be deleted"
     )
开发者ID:bfmags,项目名称:foss_events,代码行数:32,代码来源:eventfeed.py

示例5: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option(
         "--files", metavar="FILES", dest="file_list",
         help="filename of file list, e.g. files.lst (one file per line)"
     )
     self.parser.add_option(
         "--mode", metavar="MODE", dest="mode",
         help="either add (unconditionally add to index), update (update an existing index) or rebuild (remove and add)"
     )
开发者ID:steveyen,项目名称:moingo,代码行数:12,代码来源:build.py

示例6: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option(
         "-f", "--from-address", dest="from_address",
         help="use as from: for email."
     )
     self.parser.add_option(
         "-s", "--subject", dest="subject",
         help="use as subject: for email."
     )
开发者ID:Glottotopia,项目名称:aagd,代码行数:12,代码来源:mailtranslators.py

示例7: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option(
         "--author", dest="author", default="IrcLogImporter",
         help="Use AUTHOR for edit history / RecentChanges"
     )
     self.parser.add_option(
         "--file-dir", dest="file_dir", default='.',
         help="read files from DIRECTORY"
     )
     self.parser.add_option("--acl", dest="acl", default="", help="Set a specific ACL for the pages.")
开发者ID:steveyen,项目名称:moingo,代码行数:13,代码来源:irclog.py

示例8: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option(
         "--files", metavar="FILES", dest="file_list",
         help="filename of file list, e.g. files.lst (one file per line)"
     )
     self.parser.add_option(
         "--mode", metavar="MODE", dest="mode",
         help="either add (unconditionally add), update (conditional update), rebuild (complete 1-stage index rebuild)"
              " or buildnewindex and usenewindex (complete 2-stage index rebuild)"
     )
开发者ID:hkarl,项目名称:propgen,代码行数:13,代码来源:build.py

示例9: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
    def __init__(self, argv, def_values):
        MoinScript.__init__(self, argv, def_values)

        self.parser.add_option(
            "--name", metavar="NAME", dest="username",
            help="remove sessions only for user NAME (default: all users)"
        )
        self.parser.add_option(
            "--all", action="store_true", dest="all_sessions",
            help="remove all sessions (default: remove outdated sessions)"
        )
开发者ID:Glottotopia,项目名称:aagd,代码行数:13,代码来源:cleansessions.py

示例10: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option("--uid", metavar="UID", dest="uid", help="Reset password for the user with user id UID.")
     self.parser.add_option(
         "--name", metavar="NAME", dest="uname", help="Reset password for the user with user name NAME."
     )
     self.parser.add_option(
         "-a", "--all-users", dest="all_users", action="store_true", help="Reset password for ALL users."
     )
     self.parser.add_option(
         "--notify",
         dest="notify",
         action="store_true",
         help="Notify user(s), send them an E-Mail with a password reset link.",
     )
     self.parser.add_option(
         "--subject",
         metavar="SUBJECT",
         dest="subject",
         help="Subject text for the password reset notification E-Mail.",
     )
     self.parser.add_option(
         "--text-intro",
         metavar="TEXT_INTRO",
         dest="text_intro",
         help="Intro text for the password reset notification E-Mail. Default: empty.",
     )
     self.parser.add_option(
         "--text-msg",
         metavar="TEXT_MSG",
         dest="text_msg",
         help="Main text for the password reset notification E-Mail. Default: use the builtin standard message",
     )
     self.parser.add_option(
         "--text-data",
         metavar="TEXT_DATA",
         dest="text_data",
         help="Data template text for the password reset notification E-Mail. Default: use the builtin standard data template",
     )
     self.parser.add_option(
         "--text-from-file",
         metavar="TEXT_DATA",
         dest="text_file",
         help="Read full template for the password reset notification E-Mail from the given file, overrides --text-intro/msg/data. Default: None",
     )
     self.parser.add_option(
         "--skip-invalid",
         dest="skip_invalid",
         action="store_true",
         help="If a user's password hash is already invalid (pw is already reset), skip this user.",
     )
     self.parser.add_option("-v", "--verbose", dest="verbose", action="store_true", help="Verbose operation.")
开发者ID:Glottotopia,项目名称:aagd,代码行数:54,代码来源:resetpw.py

示例11: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option(
         "--files", metavar="FILES", dest="file_list",
         help="filename of file list, e.g. files.lst (one file per line)"
     )
     self.parser.add_option(
         "--mode", metavar="MODE", dest="mode",
         help="either add (unconditionally add), update (conditional update), rebuild (complete 1-stage index rebuild)"
              " or buildnewindex and usenewindex (complete 2-stage index rebuild)"
     )
     self.parser.add_option(
         "--count", metavar="COUNT", dest="count",
         help="for queued indexing only: how many queue entries to process in this indexing run"
     )
开发者ID:Glottotopia,项目名称:aagd,代码行数:17,代码来源:build.py

示例12: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option('--acl', dest='acl', default='', metavar='ACL',
             help='Set a specific ACL for the wiki page')
     self.parser.add_option('--author', dest='author', metavar='AUTHOR',
             default='PageImporter',
             help='Use AUTHOR for edit history / RecentChanges')
     self.parser.add_option('--comment', dest='comment', metavar='COMMENT',
             default='', help='COMMENT for edit history / RecentChanges')
     self.parser.add_option('--file', dest='file', default='',
             metavar='FILE', help='Read the wiki page from the given file')
     self.parser.add_option('--no-backup', dest='revision_backup',
             default=True, action='store_false',
             help="Suppress making a page backup per revision")
     self._update_option_help('--page',
             'Name of the wiki page which should be imported')
开发者ID:happytk,项目名称:moin,代码行数:18,代码来源:wikipage.py

示例13: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option(
         "--docs", dest="docs",
         help="Set the documents directory. Default: wiki/htdocs or /usr/share/moin/htdocs"
     )
     self.parser.add_option(
         "--user", dest="user",
         help="Set the user to change to. UNIX only. Default: Don't change"
     )
     self.parser.add_option(
         "--group", dest="group",
         help="Set the group to change to. UNIX only. Default: Don't change"
     )
     self.parser.add_option(
         "--port", dest="port", type="int",
         help="Set the port to listen on. Default: 8080"
     )
     self.parser.add_option(
         "--interface", dest="interface",
         help="Set the ip to listen on. Use \"\" for all interfaces. Default: localhost"
     )
     self.parser.add_option(
         "--serverClass", dest="serverClass",
         help="Set the server model to use. Choices: ThreadPool, serverClass, Forking, Simple. Default: ThreadPool"
     )
     self.parser.add_option(
         "--threadLimit", dest="threadLimit", type="int",
         help="Set the maximum number of threads to use. Default: 10"
     )
     self.parser.add_option(
         "--requestQueueSize", dest="requestQueueSize", type="int",
         help="Set the size of the request queue. Default: 50"
     )
     self.parser.add_option(
         "--start", dest="start", action="store_true",
         help="Start server in background."
     )
     self.parser.add_option(
         "--stop", dest="stop", action="store_true",
         help="Stop server in background."
     )
     self.parser.add_option(
         "--pidfile", dest="pidfile",
         help="Set file to store pid of moin daemon in. Default: moin.pid"
     )
开发者ID:steveyen,项目名称:moingo,代码行数:48,代码来源:standalone.py

示例14: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option(
         "--name", metavar="NAME", dest="uname",
         help="Set the wiki user name to NAME."
     )
     self.parser.add_option(
         "--alias", metavar="ALIAS", dest="ualiasname",
         help="Set the wiki user alias name to ALIAS (e.g. the real name if NAME is cryptic)."
     )
     self.parser.add_option(
         "--email", metavar="EMAIL", dest="email",
         help="Set the user's email address to EMAIL."
     )
     self.parser.add_option(
         "--password", metavar="PASSWORD", dest="password",
         help="Set the user's password to PASSWORD."
     )
开发者ID:steveyen,项目名称:moingo,代码行数:20,代码来源:create.py

示例15: __init__

# 需要导入模块: from MoinMoin.script import MoinScript [as 别名]
# 或者: from MoinMoin.script.MoinScript import __init__ [as 别名]
 def __init__(self, argv, def_values):
     MoinScript.__init__(self, argv, def_values)
     self.parser.add_option(
         "--docs", dest="docs",
         help="Set the documents directory. Default: use builtin MoinMoin/web/static/htdocs"
     )
     self.parser.add_option(
         "--user", dest="user",
         help="Set the user to change to. UNIX only. Default: Don't change"
     )
     self.parser.add_option(
         "--group", dest="group",
         help="Set the group to change to. UNIX only. Default: Don't change"
     )
     self.parser.add_option(
         "--port", dest="port", type="int",
         help="Set the port to listen on. Default: 8080"
     )
     self.parser.add_option(
         "--hostname", "--interface", dest="hostname",
         help="Set the ip/hostname to listen on. Use \"\" for all interfaces. Default: localhost"
     )
     self.parser.add_option(
         "--start", dest="start", action="store_true",
         help="Start server in background."
     )
     self.parser.add_option(
         "--stop", dest="stop", action="store_true",
         help="Stop server in background."
     )
     self.parser.add_option(
         "--pidfile", dest="pidfile",
         help="Set file to store pid of moin daemon in. Default: moin.pid"
     )
     self.parser.add_option(
         "--debug", dest="debug",
         help="Debug mode of server. off: no debugging (default), web: for browser based debugging, external: for using an external debugger."
     )
开发者ID:Glottotopia,项目名称:aagd,代码行数:40,代码来源:standalone.py


注:本文中的MoinMoin.script.MoinScript.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。