From 30b2408c44ee8bf943c43b51c35f4b7a831c651f Mon Sep 17 00:00:00 2001
From: Luca Bonavita <mindrones@gmail.com>
Date: Sat, 8 Jan 2011 19:20:04 +0000
Subject: [PATCH] == Tracker urls formatting ==

READ THIS TO AVOID A LOT OF WORK!

New way of linking to tracker pages: just use the parameter "aid" (artifact ID),
to avoid a lot of manual updates later in wiki and svn.

Example:
=========

OLD WAY TO LINK TO TRACKER
-----------------------------

Complete url of a script in Upload
http://projects.blender.org/tracker/index.php?func=detail&aid=25349&group_id=153&atid=467

If we move this in contrib this url will become
http://projects.blender.org/tracker/index.php?func=detail&aid=25349&group_id=153&atid=468
467 becomes 468, so we have to update this in wiki page.

Later on, when this moves into Trunk, the url will become
http://projects.blender.org/tracker/index.php?func=detail&aid=25349&group_id=153&atid=469
468 becomes 469, so we have to update the url in wiki page and svn.

Annoying!

NEW WAY TO LINK TO TRACKER
-----------------------------

Best way to link to tracker page is using:
http://projects.blender.org/tracker/index.php?func=detail&aid=25349

Use "func=detail"
Use "aid"            (which is the "artifact ID")

DON'T use "group_id" (which is the project ID, bf-extensions is project 153)
DON'T use "atid"     (which is the "artifacts tracker ID")

Like this, the url is unique, and we will avoid to update wiki pages and svn after moving pages
---
 io_export_md3.py                      |  2 +-
 io_import_LRO_Lola_MGS_Mola_img.py    |  9 ++++++---
 io_import_voodoo_camera.py            |  2 +-
 mesh_fix_vertex_groups.py             | 27 ++++++++++++++-------------
 object_batch_rename_datablocks.py     | 10 ++++++----
 render_clay.py                        |  2 +-
 render_to_print.py                    | 11 ++++++-----
 space_view3d_game_props_visualiser.py |  2 +-
 space_view3d_manipulator_Menu.py      |  2 +-
 space_view3d_objects_panel.py         |  6 +++---
 system_keyboard_svg.py                |  2 +-
 text_editor_pasteall.py               | 27 ++++++++++++++-------------
 12 files changed, 55 insertions(+), 47 deletions(-)

diff --git a/io_export_md3.py b/io_export_md3.py
index 30a3f95f..24dcfd35 100644
--- a/io_export_md3.py
+++ b/io_export_md3.py
@@ -28,7 +28,7 @@ bl_addon_info = {
     'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/'\
         'Scripts/',
     'tracker_url': 'http://projects.blender.org/tracker/index.php?'\
-        'func=detail&aid=23160&group_id=153&atid=468',
+        'func=detail&aid=23160',
     'category': 'Import-Export'}
 
 
diff --git a/io_import_LRO_Lola_MGS_Mola_img.py b/io_import_LRO_Lola_MGS_Mola_img.py
index 7a2ddfed..dc679724 100644
--- a/io_import_LRO_Lola_MGS_Mola_img.py
+++ b/io_import_LRO_Lola_MGS_Mola_img.py
@@ -25,10 +25,13 @@ bl_addon_info = {
     "location": "3D window > Tool Shelf",
     "description": "Import DTM from LRO Lola and MGS Mola",
     "warning": "May consume a lot of memory",
-    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Import-Export/NASA_IMG_Importer",
-    "tracker_url":"http://projects.blender.org/tracker/index.php?func=detail&aid=25462&group_id=153&atid=468",
+    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
+        "Scripts/Import-Export/NASA_IMG_Importer",
+    "tracker_url":"http://projects.blender.org/tracker/index.php?"\
+        "func=detail&aid=25462",
     "category": "Import-Export"}
 
+
 #***********************************************************************
 #ver. 0.0.1: -First version
 #ver. 0.0.2: -Add check on path and file
@@ -553,4 +556,4 @@ def unregister():
     clear_properties()
 
 if __name__ == "__main__":
-    register()
\ No newline at end of file
+    register()
diff --git a/io_import_voodoo_camera.py b/io_import_voodoo_camera.py
index d83d33e0..e517c6a0 100644
--- a/io_import_voodoo_camera.py
+++ b/io_import_voodoo_camera.py
@@ -28,7 +28,7 @@ bl_addon_info = {
     "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"
         "Scripts/",
     "tracker_url": "https://projects.blender.org/tracker/index.php?"\
-        "func=detail&aid=22510&group_id=153&atid=468",
+        "func=detail&aid=22510",
     "category": "Import-Export"}
 
 """
diff --git a/mesh_fix_vertex_groups.py b/mesh_fix_vertex_groups.py
index def0b8a3..7f89a0f1 100644
--- a/mesh_fix_vertex_groups.py
+++ b/mesh_fix_vertex_groups.py
@@ -16,6 +16,20 @@
 #
 # ##### END GPL LICENSE BLOCK #####
 
+bl_addon_info = {
+    'name': 'Fix Vertex Groups',
+    'author': 'Martin Ellison',
+    'version': (1, 0),
+    'blender': (2, 5, 4),
+    'api': 32516,
+    'location': 'Toolbox',
+    'description': 'Finds all the vertex groups that chosen verts are in, & any verts that are not in any group',
+    'warning': '', # used for warning icon and text in addons panel
+    'wiki_url': '',
+    'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
+        'func=detail&aid=22025',
+    'category': 'Mesh'}
+
 """
 This script finds all the vertex groups that chosen vertexes are in, and any vertexes that are not in any vertex group.
 
@@ -33,19 +47,6 @@ You may want to use the mesh select/deselect all (keyboard A) operator to start.
 Once you have the right vertexes selected, you can use the standard vertex groups property editor to add them to or remove them from the desired vertex groups.
 """
 
-bl_addon_info = {
-    'name': 'Fix Vertex Groups',
-    'author': 'Martin Ellison',
-    'version': (1, 0),
-    'blender': (2, 5, 4),
-    'api': 32516,
-    'location': 'Toolbox',
-    'description': 'Finds all the vertex groups that chosen verts are in, & any verts that are not in any group',
-    'warning': '', # used for warning icon and text in addons panel
-    'wiki_url': '',
-    'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
-        'func=detail&aid=22025&group_id=153&atid=468',
-    'category': 'Mesh'}
 
 import bpy
 from bpy.props import *
diff --git a/object_batch_rename_datablocks.py b/object_batch_rename_datablocks.py
index bf5e97b2..de3960e8 100644
--- a/object_batch_rename_datablocks.py
+++ b/object_batch_rename_datablocks.py
@@ -15,7 +15,7 @@
 #  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
 # ##### END GPL LICENSE BLOCK #####
-#######################################################################
+
 bl_addon_info = {
     "name": "Batch Rename Datablocks",
     "author": "tstscr",
@@ -25,11 +25,13 @@ bl_addon_info = {
     "location": "use the search :)",
     "description": "Batch renaming of datablocks (e.g. rename materials after objectnames)",
     "warning": "",
-    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Object/Batch_Rename_Datablocks",
-    "tracker_url": "http://projects.blender.org/tracker/index.php?func=detail&aid=25242&group_id=153&atid=468",
+    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
+        "Scripts/Object/Batch_Rename_Datablocks",
+    "tracker_url": "http://projects.blender.org/tracker/index.php?"\
+        "func=detail&aid=25242",
     "category": "Object"}
 
-#######################################################################
+
 import bpy
 from bpy.props import *
 
diff --git a/render_clay.py b/render_clay.py
index 85d4bd4b..af0aa2df 100644
--- a/render_clay.py
+++ b/render_clay.py
@@ -30,7 +30,7 @@ bl_addon_info = {
     "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
         "Scripts/Clay_Render",
     "tracker_url": "https://projects.blender.org/tracker/index.php?"\
-        "func=detail&aid=22971&group_id=153&atid=467",
+        "func=detail&aid=22971",
     "category": "Render"}
 
 import bpy
diff --git a/render_to_print.py b/render_to_print.py
index 4eb7b544..9dad4da9 100644
--- a/render_to_print.py
+++ b/render_to_print.py
@@ -16,10 +16,6 @@
 #
 # ##### END GPL LICENSE BLOCK #####
 
-import bpy
-import math
-from bpy.props import *
-
 bl_addon_info = {
     'name': 'Render to Print',
     'author': 'Marco Crippa <thekrypt77@tiscali.it>',
@@ -30,9 +26,14 @@ bl_addon_info = {
     'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/'\
         'Scripts/Render/Render to Print',
     'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
-        'func=detail&aid=24219&group_id=153&atid=468',
+        'func=detail&aid=24219',
     'category': 'Render'}
 
+
+import bpy
+import math
+from bpy.props import *
+
 class RenderButtonsPanel():
     bl_space_type = 'PROPERTIES'
     bl_region_type = 'WINDOW'
diff --git a/space_view3d_game_props_visualiser.py b/space_view3d_game_props_visualiser.py
index bf846d3d..583040a5 100644
--- a/space_view3d_game_props_visualiser.py
+++ b/space_view3d_game_props_visualiser.py
@@ -31,7 +31,7 @@ bl_addon_info = {
     'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/'\
         'Scripts/Index_Visualiser',
     'tracker_url': 'http://projects.blender.org/tracker/index.php?'\
-        'func=detail&aid=21557&group_id=153&atid=468',
+        'func=detail&aid=21557',
     'category': '3D View'}
 
 """
diff --git a/space_view3d_manipulator_Menu.py b/space_view3d_manipulator_Menu.py
index e96d3e40..569a8464 100644
--- a/space_view3d_manipulator_Menu.py
+++ b/space_view3d_manipulator_Menu.py
@@ -31,7 +31,7 @@ bl_addon_info = {
     'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/'\
         'Scripts/3D_interaction/Manipulator_Menu',
     'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
-        'func=detail&aid=22092&group_id=153&atid=468',
+        'func=detail&aid=22092',
     'category': '3D View'}
 
 "Add manipulator menu  (Ctrl-space in 3d view)"
diff --git a/space_view3d_objects_panel.py b/space_view3d_objects_panel.py
index 30bed600..19d21963 100644
--- a/space_view3d_objects_panel.py
+++ b/space_view3d_objects_panel.py
@@ -16,7 +16,6 @@
 #
 # ##### END GPL LICENSE BLOCK #####
 
-
 bl_addon_info = {
     "name": "Add Objects Panel",
     "author": "Murat Egretli (Demohero)",
@@ -29,9 +28,10 @@ bl_addon_info = {
     "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
         "Scripts/",
     "tracker_url": "https://projects.blender.org/tracker/index.php?"\
-        "func=detail&aid=22154&group_id=153&atid=468",
+        "func=detail&aid=22154",
     "category": "3D View"}
-	
+
+
 import bpy
 
 
diff --git a/system_keyboard_svg.py b/system_keyboard_svg.py
index 41761c77..00d0a5cf 100644
--- a/system_keyboard_svg.py
+++ b/system_keyboard_svg.py
@@ -33,7 +33,7 @@ bl_addon_info = {
     "wiki_url": 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
         'Scripts/System/Keyboard Layout (svg)',
     "tracker_url": "https://projects.blender.org/tracker/index.php?" \
-        "func==detail&aid=21490&group_id=153&atid=468",
+        "func==detail&aid=21490",
     "category": "System"}
 
 import bpy
diff --git a/text_editor_pasteall.py b/text_editor_pasteall.py
index d6254e18..fba22e18 100644
--- a/text_editor_pasteall.py
+++ b/text_editor_pasteall.py
@@ -16,6 +16,20 @@
 #
 # ##### END GPL LICENSE BLOCK #####
 
+bl_addon_info = {
+    "name": "PasteAll",
+    "author": "Dalai Felinto (dfelinto)",
+    "version": (0,5),
+    "blender": (2, 5, 4),
+    "api": 31999,
+    "location": "Text editor > Properties panel",
+    "description": "Send your selection or text to www.pasteall.org",
+    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
+        "Scripts/Text_Editor/PasteAll",
+    "tracker_url": "https://projects.blender.org/tracker/index.php?"\
+        "func=detail&aid=23493",
+    "category": "Text Editor"}
+
 # ########################################################
 # PasteAll.org Text Sender Script
 #
@@ -33,19 +47,6 @@
 #
 # ########################################################
 
-bl_addon_info = {
-    "name": "PasteAll",
-    "author": "Dalai Felinto (dfelinto)",
-    "version": (0,5),
-    "blender": (2, 5, 4),
-    "api": 31999,
-    "location": "Text editor > Properties panel",
-    "description": "Send your selection or text to www.pasteall.org",
-    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
-        "Scripts/Text_Editor/PasteAll",
-    "tracker_url": "https://projects.blender.org/tracker/index.php?"\
-        "func=detail&aid=23493&group_id=153&atid=468",
-    "category": "Text Editor"}
 
 import bpy
 import urllib
-- 
GitLab