[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1517] contrib/py/scripts/addons/ text_editor_pasteall.py: fix for registering problem

Dalai Felinto dfelinto at gmail.com
Thu Jan 27 19:56:43 CET 2011


Revision: 1517
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1517
Author:   dfelinto
Date:     2011-01-27 18:56:42 +0000 (Thu, 27 Jan 2011)
Log Message:
-----------
fix for registering problem

Modified Paths:
--------------
    contrib/py/scripts/addons/text_editor_pasteall.py

Modified: contrib/py/scripts/addons/text_editor_pasteall.py
===================================================================
--- contrib/py/scripts/addons/text_editor_pasteall.py	2011-01-27 17:37:02 UTC (rev 1516)
+++ contrib/py/scripts/addons/text_editor_pasteall.py	2011-01-27 18:56:42 UTC (rev 1517)
@@ -20,8 +20,8 @@
     "name": "PasteAll",
     "author": "Dalai Felinto (dfelinto)",
     "version": (0,5),
-    "blender": (2, 5, 4),
-    "api": 31999,
+    "blender": (2, 5, 6),
+    "api": 34529,
     "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/"\
@@ -60,12 +60,12 @@
 
     def draw(self, context):
         layout = self.layout        
-        layout.operator("text.PasteAll", icon='URL')
+        layout.operator("text.pasteall", icon='URL')
         layout.prop(context.scene, "use_webbrowser")
 
-class PasteAllOperator(bpy.types.Operator):
+class TEXT_OT_pasteall(bpy.types.Operator):
     ''''''
-    bl_idname = "text.PasteAll"
+    bl_idname = "text.pasteall"
     bl_label = "PasteAll.org"
     bl_description = "Send the current text or selection to www.pasteall.org"
 
@@ -214,5 +214,4 @@
     del bpy.types.Scene.use_webbrowser
 
 if __name__ == "__main__":
-    register()
-
+    register()
\ No newline at end of file



More information about the Bf-extensions-cvs mailing list