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>2009-11-05 01:36:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-05 01:36:46 +0300
commite6ea68a31cf800f903653495fc7cdd09bde965f2 (patch)
tree1a2a4c53b2590f9c85e1caaab7df5b028a3fc85e /release/scripts/op
parent08bbda500530e89b1a0f18006a248529e858511b (diff)
- missing return values
- more detailed exceptions (always give file:line incase the python exception doesnt) - fix some errors in the edit docs editing docs still fails, need to figure out why.
Diffstat (limited to 'release/scripts/op')
-rw-r--r--release/scripts/op/wm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/op/wm.py b/release/scripts/op/wm.py
index a9d62f9b405..1bd5635932f 100644
--- a/release/scripts/op/wm.py
+++ b/release/scripts/op/wm.py
@@ -321,7 +321,7 @@ class WM_OT_doc_edit(bpy.types.Operator):
class_name, class_prop = self.doc_id.split('.')
if not self.doc_new:
- return 'OPERATOR_CANCELLED'
+ return ('CANCELLED',)
# check if this is an operator
op_name = class_name.upper() + '_OT_' + class_prop
@@ -334,7 +334,7 @@ class WM_OT_doc_edit(bpy.types.Operator):
rna = op_class.bl_rna
doc_orig = rna.description
if doc_orig == self.doc_new:
- return 'OPERATOR_CANCELLED'
+ return ('CANCELLED',)
print("op - old:'%s' -> new:'%s'" % (doc_orig, self.doc_new))
upload["title"] = 'OPERATOR %s:%s' % (self.doc_id, doc_orig)
@@ -346,7 +346,7 @@ class WM_OT_doc_edit(bpy.types.Operator):
rna = getattr(bpy.types, class_name).bl_rna
doc_orig = rna.properties[class_prop].description
if doc_orig == self.doc_new:
- return 'OPERATOR_CANCELLED'
+ return ('CANCELLED',)
print("rna - old:'%s' -> new:'%s'" % (doc_orig, self.doc_new))
upload["title"] = 'RNA %s:%s' % s(self.doc_id, doc_orig)