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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-06-02 01:29:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-02 01:29:57 +0400
commitef545f4a6397ff6ee84c66b096c80d1aac9fe9b5 (patch)
treefb765f3e9638db69ca8b37a9e66e110e9a9a004f /modules
parent9623d5d66d516812b75a91abf1749be86c703b0c (diff)
use a tuple rather then a dict()
Diffstat (limited to 'modules')
-rw-r--r--modules/rna_wiki_reference.py15
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