Commit 9852a19e authored by Carlos Ramos Carreño's avatar Carlos Ramos Carreño

recipe/generic_cloudooo: Allow to set up scripting.

The option "ooo_enable_scripting" can now be set up in the
generic.cloudooo recipe.
This option allows the Cloudooo server to execute user scripts to edit
the documents before they are saved
(see cloudooo@a09d87af3f8bf222cd7d37d814b94ed7a907e2b4) .
parent e9ef74fd
...@@ -96,6 +96,7 @@ class Recipe(GenericBaseRecipe): ...@@ -96,6 +96,7 @@ class Recipe(GenericBaseRecipe):
ip=self.options['ip'], ip=self.options['ip'],
port=int(self.options['port']), port=int(self.options['port']),
openoffice_port=int(self.options['openoffice-port']), openoffice_port=int(self.options['openoffice-port']),
ooo_enable_scripting=self.options.get('ooo_enable_scripting', 'false'),
) )
environment_variable_list = [] environment_variable_list = []
for env_line in self.options['environment'].splitlines(): for env_line in self.options['environment'].splitlines():
......
...@@ -12,6 +12,8 @@ working_path = %(working_path)s ...@@ -12,6 +12,8 @@ working_path = %(working_path)s
uno_path = %(uno_path)s uno_path = %(uno_path)s
# Folder where soffice.bin is installed # Folder where soffice.bin is installed
office_binary_path = %(office_binary_path)s office_binary_path = %(office_binary_path)s
# Whether running scripts on the loaded document is allowed
ooo_enable_scripting = %(ooo_enable_scripting)s
# #
## Monitor Settings ## Monitor Settings
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment