Commit c3f73bba authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: Rename property to be more consistent

parent 1a5a5db7
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>preferred_image_conversion_brightness_property</string> </value> <value> <string>preferred_image_scanner_conversion_brightness_property</string> </value>
</item> </item>
<item> <item>
<key> <string>mode</string> </key> <key> <string>mode</string> </key>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>preferred_image_conversion_compression_property</string> </value> <value> <string>preferred_image_scanner_conversion_compression_property</string> </value>
</item> </item>
<item> <item>
<key> <string>mode</string> </key> <key> <string>mode</string> </key>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>preferred_image_conversion_contrast_property</string> </value> <value> <string>preferred_image_scanner_conversion_contrast_property</string> </value>
</item> </item>
<item> <item>
<key> <string>mode</string> </key> <key> <string>mode</string> </key>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>preferred_image_conversion_enable_greyscale_property</string> </value> <value> <string>preferred_image_scanner_conversion_enable_greyscale_property</string> </value>
</item> </item>
<item> <item>
<key> <string>mode</string> </key> <key> <string>mode</string> </key>
......
...@@ -6,10 +6,10 @@ if not active_preference: ...@@ -6,10 +6,10 @@ if not active_preference:
active_preference = portal.portal_preferences.getActivePreference() active_preference = portal.portal_preferences.getActivePreference()
setting_dict = { setting_dict = {
"compression": active_preference.getPreferredImageConversionCompression(), "compression": active_preference.getPreferredImageScannerConversionCompression(),
"enable_greyscale": active_preference.getPreferredImageConversionEnableGreyscale(), "enable_greyscale": active_preference.getPreferredImageScannerConversionEnableGreyscale(),
"brightness": active_preference.getPreferredImageConversionBrightness(), "brightness": active_preference.getPreferredImageScannerConversionBrightness(),
"contrast": active_preference.getPreferredImageConversionContrast(), "contrast": active_preference.getPreferredImageScannerConversionContrast(),
} }
return json.dumps(setting_dict) return json.dumps(setting_dict)
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