예제 #1
0
파일: install.py 프로젝트: pylanglois/uwsa
    def init_help(self):
        help = AbstractCommand.init_help(self)
        help["command"] = help["command"] % t("install %s")
        if len(self.install_list) != 0:
            help["command_detail"] = t("\nThis command will install or modify:")
            if len(self.get_packages()) != 0:
                help["command_detail"] = t("%(command)s\n\tThe following packages: %(param)s") % {
                    "command",
                    help["command_detail"],
                    "package",
                    self.get_packages(),
                }
            if len(self.get_folders()) != 0:
                help["command_detail"] = t("%(command)s\n\tThe following folders: %(param)s") % {
                    "command",
                    help["command_detail"],
                    "package",
                    self.get_folders(),
                }
            if len(self.get_files()) != 0:
                help["command_detail"] = t("%(command)s\n\tThe following files: %(param)s") % {
                    "command",
                    help["command_detail"],
                    "package",
                    self.get_files(),
                }
            if len(self.get_prereqs()) != 0:
                help["command_detail"] = t("%(command)s\n\tThe following prerequisites: %(param)s") % {
                    "command",
                    help["command_detail"],
                    "package",
                    self.get_prereqs(),
                }

        # help['param_detail'] = t("\np1: info\np2: info")
        return help
예제 #2
0
 def init_help(self):
     help = AbstractCommand.init_help(self)
     help['command_detail'] = t("\n\nThe command %s is used interact with your LDAP/AD domain") % self.NAME
     help['param_detail'] = t("\n\tis_admin user: check if user is domain admin")
     return help
예제 #3
0
파일: site.py 프로젝트: pylanglois/uwsa
 def init_help(self):
     help = AbstractCommand.init_help(self)
     help['command_detail'] = t("\n\nThe command %s is used create, modify or update web site") % self.NAME
     return help
예제 #4
0
 def init_help(self):
     help = AbstractCommand.init_help(self)
     help['command_detail'] = t("\n\nThe command %s allow to manage your mysql database.") % self.NAME
     help['param_detail'] = t("\n\treset_pass: will reset root password. WARNING: the database will be shutted down.")
     return help