Last active
August 29, 2015 14:05
-
-
Save etenesaca/c9940d25bf4f870158b9 to your computer and use it in GitHub Desktop.
Arguments- openerp-server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Options not exposed on the command line. Command line options will be added | |
| # from optparse's parser. | |
| self.options = { | |
| 'admin_passwd': 'admin', | |
| 'csv_internal_sep': ',', | |
| 'login_message': False, | |
| 'publisher_warranty_url': 'http://services.openerp.com/publisher-warranty/', | |
| 'reportgz': False, | |
| 'root_path': None, | |
| } | |
| # Not exposed in the configuration file. | |
| self.blacklist_for_save = set(['publisher_warranty_url', 'load_language', 'root_path','init', 'save', 'config', 'update','stop_after_init']) | |
| """ | |
| # Server startup config | |
| # ====================================== | |
| "-c", "--config", dest="config", help="specify alternate config file" | |
| "-s", "--save", action="store_true", dest="save", default=False, help="save configuration to ~/.openerp_serverrc" | |
| "-i", "--init", dest="init", help="install one or more modules (comma-separated list, use \"all\" for all modules), requires -d" | |
| "-u", "--update", dest="update", help="update one or more modules (comma-separated list, use \"all\" for all modules). Requires -d." | |
| "--without-demo", dest="without_demo", help="disable loading demo data for modules to be installed (comma-separated, use \"all\" for all modules). Requires -d and -i. Default is %default", my_default=False | |
| "-P", "--import-partial", dest="import_partial", my_default='', help="Use this for big data importation, if it crashes you will be able to continue at the current state. Provide a filename to store intermediate importation states.") group.add_option("--pidfile", dest="pidfile", help="file where the server pid will be stored" | |
| "--addons-path", dest="addons_path", help="specify additional addons paths (separated by commas).", action="callback", callback=self._check_addons_path, nargs=1, type="string" | |
| "--load", dest="server_wide_modules", help="Comma-separated list of server-wide modules default=web" | |
| # XML-RPC / HTTP | |
| # ====================================== | |
| "--xmlrpc-interface", dest="xmlrpc_interface", my_default='',help="Specify the TCP IP address for the XML-RPC protocol. The empty string binds to all interfaces." | |
| "--xmlrpc-port", dest="xmlrpc_port", my_default=8069, help="specify the TCP port for the XML-RPC protocol", type="int" | |
| "--no-xmlrpc", dest="xmlrpc", action="store_false", my_default=True, help="disable the XML-RPC protocol" | |
| "--proxy-mode", dest="proxy_mode", action="store_true", my_default=False, help="Enable correct behavior when behind a reverse proxy" | |
| # XML-RPC / HTTPS | |
| # ====================================== | |
| "--xmlrpcs-interface", dest="xmlrpcs_interface", my_default='', help="Specify the TCP IP address for the XML-RPC Secure protocol. The empty string binds to all interfaces.") group.add_option("--xmlrpcs-port", dest="xmlrpcs_port", my_default=8071 "--no-xmlrpcs", dest="xmlrpcs", action="store_false", my_default=True, help="disable the XML-RPC Secure protocol" "--cert-file", dest="secure_cert_file", my_default='server.cert', help="specify the certificate file for the SSL connection" "--pkey-file", dest="secure_pkey_file", my_default='server.pkey',help="specify the private key file for the SSL connection" | |
| # NET-RPC | |
| # ====================================== | |
| "--netrpc-interface", dest="netrpc_interface", my_default='',help="specify the TCP IP address for the NETRPC protocol" | |
| "--netrpc-port", dest="netrpc_port", my_default=8070,help="specify the TCP port for the NETRPC protocol", type="int" | |
| "--no-netrpc", dest="netrpc", action="store_false", my_default=False, help="disable the NETRPC protocol" | |
| "--netrpc", dest="netrpc", action="store_true", my_default=False, help="enable the NETRPC protocol" | |
| # WEB | |
| # ====================================== | |
| "--db-filter", dest="dbfilter", default='.*', help="Filter listed database", metavar="REGEXP" | |
| # Static HTTP | |
| # ====================================== | |
| "--static-http-enable", dest="static_http_enable", action="store_true", my_default=False, help="enable static HTTP service for serving plain HTML files" | |
| "--static-http-document-root", dest="static_http_document_root", help="specify the directory containing your static HTML files (e.g '/var/www/')" | |
| "--static-http-url-prefix", dest="static_http_url_prefix", help="specify the URL root prefix where you want web browsers to access your static HTML files (e.g '/')" | |
| # Testing | |
| # ====================================== | |
| "--test-file", dest="test_file", my_default=False, help="Launch a YML test file." | |
| group.add_option("--test-report-directory", dest="test_report_directory", my_default=False, help="If set, will save sample of all reports in this directory.") | |
| group.add_option("--test-enable", action="store_true", dest="test_enable",my_default=False, help="Enable YAML and unit tests.") | |
| "--test-commit", action="store_true", dest="test_commit",my_default=False, help="Commit database changes performed by YAML or XML tests." | |
| # Logging Group | |
| # ====================================== | |
| "--logfile", dest="logfile", help="file where the server log will be stored" | |
| "--no-logrotate", dest="logrotate", action="store_false", my_default=True, help="do not rotate the logfile" | |
| """ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment