diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-02 01:29:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-02 01:29:57 +0400 |
commit | ef545f4a6397ff6ee84c66b096c80d1aac9fe9b5 (patch) | |
tree | fb765f3e9638db69ca8b37a9e66e110e9a9a004f | |
parent | 9623d5d66d516812b75a91abf1749be86c703b0c (diff) |
use a tuple rather then a dict()
-rw-r--r-- | modules/rna_wiki_reference.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/modules/rna_wiki_reference.py b/modules/rna_wiki_reference.py index a49f037c..aa56a7da 100644 --- a/modules/rna_wiki_reference.py +++ b/modules/rna_wiki_reference.py @@ -5,13 +5,14 @@ url_manual_prefix = "http://wiki.blender.org/index.php/Doc:2.6/Manual/" -# the key is infact a regex mapping '.*' means anything. -url_manual_mapping = { - "bpy.types.ArmatureModifier.*": "Modifiers/Deform/Armature", - "bpy.types.SmoothModifier.*": "Modifiers/Deform/Smooth", - "bpy.types.SubsurfModifier.*": "Modifiers/Generate/Subsurf", +# - The first item is a regex mapping '.*' means anything. +# - Expressions are evaluated top down (include catch-all expressions last). +url_manual_mapping = ( + ("bpy.types.ArmatureModifier.*", "Modifiers/Deform/Armature"), + ("bpy.types.SmoothModifier.*", "Modifiers/Deform/Smooth"), + ("bpy.types.SubsurfModifier.*", "Modifiers/Generate/Subsurf"), - "bpy.types.Material.diffuse.*": "Materials/Properties/Diffuse_Shaders", -} + ("bpy.types.Material.diffuse.*", "Materials/Properties/Diffuse_Shaders"), +) # may have 'url_reference_mapping'... etc later |