Skip to content

DocsServerConfigTool

Ryan Northey edited this page May 3, 2016 · 6 revisions

Pootle config tool

Global configuration

$ pootle config
No configuration found
$ pootle config -s foo bar
$ pootle config
Pootle                    foo                       bar
$ pootle config -s foo bar2
$ pootle config
Pootle                    foo                       bar2
$ pootle config -g foo
bar2

Model configuration

$ pootle config pootle_project.project
No configuration found
$ pootle config pootle_project.project -s foo bar
$ pootle config
pootle_project.project    foo                       bar
$ pootle config pootle_project.project -s foo bar2
$ pootle config
pootle_project.project    foo                       bar2
$ pootle config pootle_project.project -g foo
bar2

Object configuration

$ pootle config pootle_project.project 1
No configuration found
$ pootle config pootle_project.project 1 -s foo bar
$ pootle config pootle_project.project 1
pootle_project.project    foo                       bar
$ pootle config pootle_project.project 1 -s foo bar2
$ pootle config pootle_project.project 1
pootle_project.project    foo                       bar2
$ pootle config pootle_project.project 1 -g foo
bar2

Object configuration using non-pk field

$ pootle config pootle_project.project tutorial -o code
No configuration found
$ pootle config pootle_project.project tutorial -o code -s foo bar
$ pootle config pootle_project.project tutorial -o code
pootle_project.project[tutorial]  foo                       bar
$ pootle config pootle_project.project tutorial -o code -s foo bar2
$ pootle config pootle_project.project tutorial -o code
pootle_project.project[tutorial]  foo                       bar2
$ pootle config pootle_project.project tutorial -o code -g foo
bar2

Appending configurations

Listing configurations

Getting and setting JSON data

Clone this wiki locally