diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-05 22:31:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-05 22:31:38 +0300 |
commit | 44db0b0e274e141f8083fb9689d7f17a9c975041 (patch) | |
tree | 24478e24374ee6c79b087902fb21449139d4ca78 /release | |
parent | 17c323b5a4cfd4f435f313adf4aacb0963387fad (diff) |
view docs was broken for operators - was getting the nested class string.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/op/wm.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/release/scripts/op/wm.py b/release/scripts/op/wm.py index ebbcc82bb77..e65002ee0c0 100644 --- a/release/scripts/op/wm.py +++ b/release/scripts/op/wm.py @@ -277,13 +277,12 @@ class WM_OT_doc_view(bpy.types.Operator): elif len(id_split) == 2: # rna, class.prop class_name, class_prop = id_split - # It so happens that epydoc nests these - class_name_full = self._nested_class_string(class_name) - if hasattr(bpy.types, class_name.upper() + '_OT_' + class_prop): url = '%s/bpy.ops.%s-module.html#%s' % \ - (self._prefix, class_name_full, class_prop) + (self._prefix, class_name, class_prop) else: + # It so happens that epydoc nests these + class_name_full = self._nested_class_string(class_name) url = '%s/bpy.types.%s-class.html#%s' % \ (self._prefix, class_name_full, class_prop) @@ -349,7 +348,7 @@ class WM_OT_doc_edit(bpy.types.Operator): return ('RUNNING_MODAL',) print("rna - old:'%s' -> new:'%s'" % (doc_orig, self.doc_new)) - upload["title"] = 'RNA %s:%s' % s(self.doc_id, doc_orig) + upload["title"] = 'RNA %s:%s' % (self.doc_id, doc_orig) upload["description"] = self.doc_new |