diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-26 13:57:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-26 13:57:17 +0400 |
commit | 7a7c13e2e7118304a7fe936d0b6c2f8e9a8cad53 (patch) | |
tree | 23a90d13d5034a7baeb1eba1f597eabf3a029911 /render_copy_settings | |
parent | 56a8c5f8a4da28b3e808e28c6875043a573b5d9b (diff) |
patch [#31578] Standard-conformal sets for .report() and operator return values
from Sebastian Nell (codemanx)
Diffstat (limited to 'render_copy_settings')
-rw-r--r-- | render_copy_settings/__init__.py | 4 | ||||
-rw-r--r-- | render_copy_settings/operator.py | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/render_copy_settings/__init__.py b/render_copy_settings/__init__.py index 3a3e2738..f59432e0 100644 --- a/render_copy_settings/__init__.py +++ b/render_copy_settings/__init__.py @@ -61,7 +61,7 @@ class RenderCopySettingsScene(bpy.types.PropertyGroup): # A string of identifiers (colon delimited) which property’s controls # should be displayed in a template_list. template_list_controls = StringProperty(default="allowed", - options={"HIDDEN"}) + options={'HIDDEN'}) class RenderCopySettingsSetting(bpy.types.PropertyGroup): @@ -71,7 +71,7 @@ class RenderCopySettingsSetting(bpy.types.PropertyGroup): # A string of identifiers (colon delimited) which property’s controls # should be displayed in a template_list. template_list_controls = StringProperty(default="copy", - options={"HIDDEN"}) + options={'HIDDEN'}) class RenderCopySettings(bpy.types.PropertyGroup): diff --git a/render_copy_settings/operator.py b/render_copy_settings/operator.py index d503fffc..3b0da84f 100644 --- a/render_copy_settings/operator.py +++ b/render_copy_settings/operator.py @@ -94,12 +94,12 @@ class RenderCopySettingsPrepare(bpy.types.Operator): try: regex = re.compile(cp_sett.filter_scene) except Exception as e: - self.report('ERROR_INVALID_INPUT', "The filter-scene " + self.report({'ERROR_INVALID_INPUT'}, "The filter-scene " "regex did not compile:\n (%s)." % str(e)) return {'CANCELLED'} except: regex = None - self.report('WARNING', "Unable to import the re module. " + self.report({'WARNING'}, "Unable to import the re module. " "Regex scene filtering will be disabled!") scenes = set() for scene in bpy.data.scenes: @@ -137,7 +137,7 @@ class RenderCopySettingsPreset(bpy.types.Operator): presets = EnumProperty(items=(p.rna_enum for p in presets.presets), default=set(), - options={"ENUM_FLAG"}) + options={'ENUM_FLAG'}) @staticmethod def process_elements(settings, elts): |