[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1535] trunk/py/scripts/addons/modules/ extensions_framework/plugin.py: extensions_framework: disable broken plugin .uninstall method

Doug Hammond doughammond at hamsterfight.co.uk
Wed Feb 2 01:42:00 CET 2011


Revision: 1535
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1535
Author:   dougal2
Date:     2011-02-02 00:42:00 +0000 (Wed, 02 Feb 2011)
Log Message:
-----------
extensions_framework: disable broken plugin.uninstall method

Modified Paths:
--------------
    trunk/py/scripts/addons/modules/extensions_framework/plugin.py

Modified: trunk/py/scripts/addons/modules/extensions_framework/plugin.py
===================================================================
--- trunk/py/scripts/addons/modules/extensions_framework/plugin.py	2011-02-01 20:18:08 UTC (rev 1534)
+++ trunk/py/scripts/addons/modules/extensions_framework/plugin.py	2011-02-02 00:42:00 UTC (rev 1535)
@@ -86,9 +86,13 @@
 	
 	@classmethod
 	def uninstall(r_class):
+		"""TODO: make this work again"""
+		return
+		
 		"""Unregister property groups in reverse order"""
 		reverse_property_groups = [p for p in r_class.property_groups]
 		reverse_property_groups.reverse()
 		for property_group_parent, property_group in reverse_property_groups:
-			prototype = getattr(bpy.types, property_group_parent)
-			prototype.RemoveProperty(property_group.__name__)
+			if hasattr(bpy.types, property_group_parent):
+				prototype = getattr(bpy.types, property_group_parent)
+				prototype.RemoveProperty(property_group.__name__)



More information about the Bf-extensions-cvs mailing list