Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-08-09 05:37:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-09 05:37:09 +0400
commita6f13f9d7bfef7020d43cb0a8058753e6d7a128d (patch)
tree09535f0341f93288fc492c3318ba2213291345d9 /release/scripts/ui/space_console.py
parent7fcbbad5a45acf5b4ef49d16cf6733afd1e481c7 (diff)
poll() as a python '@staticmethod' was too limiting and didnt allow useful base class poll functions in many cases.
now rna functions that dont have a 'self' are automatically assumed '@classmethods'. de-duplicated poll functions and made some minor tweaks too.
Diffstat (limited to 'release/scripts/ui/space_console.py')
-rw-r--r--release/scripts/ui/space_console.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/ui/space_console.py b/release/scripts/ui/space_console.py
index dbe08c16a77..feda3a54b41 100644
--- a/release/scripts/ui/space_console.py
+++ b/release/scripts/ui/space_console.py
@@ -138,8 +138,8 @@ class ConsoleAutocomplete(bpy.types.Operator):
bl_idname = "console.autocomplete"
bl_label = "Console Autocomplete"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.space_data.console_type != 'REPORT'
def execute(self, context):