[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29091] trunk/blender/release/scripts/ui/ space_userpref.py: 2.5 Addons:
Thomas Dinges
dingto at gmx.de
Sun May 30 22:48:11 CEST 2010
Revision: 29091
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29091
Author: dingto
Date: 2010-05-30 22:48:09 +0200 (Sun, 30 May 2010)
Log Message:
-----------
2.5 Addons:
Request from mindrones :)
* Next to the Wiki URL, it's now possible to have a link to the tracker, for bug reports.
"bl_addon_info" dictionary:
* Renamed 'url' to 'wiki_url'
* Added 'tracker_url'
Modified Paths:
--------------
trunk/blender/release/scripts/ui/space_userpref.py
Modified: trunk/blender/release/scripts/ui/space_userpref.py
===================================================================
--- trunk/blender/release/scripts/ui/space_userpref.py 2010-05-30 20:21:50 UTC (rev 29090)
+++ trunk/blender/release/scripts/ui/space_userpref.py 2010-05-30 20:48:09 UTC (rev 29091)
@@ -1191,7 +1191,7 @@
# If there are Infos or UI is expanded
if info["expanded"]:
row.operator("wm.addon_expand", icon="TRIA_DOWN").module = module_name
- elif info["author"] or info["version"] or info["url"] or info["location"]:
+ elif info["author"] or info["version"] or info["wiki_url"] or info["location"]:
row.operator("wm.addon_expand", icon="TRIA_RIGHT").module = module_name
else:
# Else, block UI
@@ -1220,12 +1220,19 @@
split = column.row().split(percentage=0.15)
split.label(text='Description:')
split.label(text=info["description"])
- if info["url"]:
+ if info["wiki_url"] or info["tracker_url"]:
split = column.row().split(percentage=0.15)
split.label(text="Internet:")
- split.operator("wm.addon_links", text="Link to the Wiki").link = info["url"]
- split.separator()
- split.separator()
+ if info["wiki_url"]:
+ split.operator("wm.addon_links", text="Link to the Wiki").link = info["wiki_url"]
+ if info["tracker_url"]:
+ split.operator("wm.addon_links", text="Report a Bug").link = info["tracker_url"]
+
+ if info["wiki_url"] and info["tracker_url"]:
+ split.separator()
+ else:
+ split.separator()
+ split.separator()
# Append missing scripts
# First collect scripts that are used but have no script file.
@@ -1249,7 +1256,7 @@
from bpy.props import *
-def addon_info_get(mod, info_basis={"name": "", "author": "", "version": "", "blender": "", "location": "", "description": "", "url": "", "category": "", "expanded": False}):
+def addon_info_get(mod, info_basis={"name": "", "author": "", "version": "", "blender": "", "location": "", "description": "", "wiki_url": "", "tracker_url": "", "category": "", "expanded": False}):
addon_info = getattr(mod, "bl_addon_info", {})
# avoid re-initializing
More information about the Bf-blender-cvs
mailing list