Revision: 20431
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20431
Author:   kazanbas
Date:     2009-05-26 19:08:10 +0200 (Tue, 26 May 2009)

Log Message:
-----------
In bpy, renamed "exec" operator method to "execu" for compatibility 
with py 2.x ("exec" is a keyword in py 2.x).

Modified Paths:
--------------
    branches/soc-2009-kazanbas/source/blender/python/intern/bpy_operator_wrap.c

Modified: 
branches/soc-2009-kazanbas/source/blender/python/intern/bpy_operator_wrap.c
===================================================================
--- branches/soc-2009-kazanbas/source/blender/python/intern/bpy_operator_wrap.c 
2009-05-26 17:01:56 UTC (rev 20430)
+++ branches/soc-2009-kazanbas/source/blender/python/intern/bpy_operator_wrap.c 
2009-05-26 17:08:10 UTC (rev 20431)
@@ -232,7 +232,7 @@
                        PyTuple_SET_ITEM(args, 1, pyop_dict_from_event(event));
                }
                else if (mode==PYOP_EXEC) {
-                       item= PyObject_GetAttrString(py_class, "exec");
+                       item= PyObject_GetAttrString(py_class, "execu");
                        args = PyTuple_New(1);
                }
                else if (mode==PYOP_POLL) {
@@ -328,7 +328,7 @@
        /* api callbacks, detailed checks dont on adding */ 
        if (PyObject_HasAttrString(py_class, "invoke"))
                ot->invoke= PYTHON_OT_invoke;
-       if (PyObject_HasAttrString(py_class, "exec"))
+       if (PyObject_HasAttrString(py_class, "execu"))
                ot->exec= PYTHON_OT_exec;
        if (PyObject_HasAttrString(py_class, "poll"))
                ot->poll= PYTHON_OT_poll;
@@ -391,7 +391,7 @@
                {PYOP_ATTR_UINAME,              's', 0, 
BPY_CLASS_ATTR_OPTIONAL},
                {PYOP_ATTR_PROP,                'l', 0, 
BPY_CLASS_ATTR_OPTIONAL},
                {PYOP_ATTR_DESCRIPTION, 's', 0, BPY_CLASS_ATTR_NONE_OK},
-               {"exec",        'f', 1, BPY_CLASS_ATTR_OPTIONAL},
+               {"execu",       'f', 1, BPY_CLASS_ATTR_OPTIONAL},
                {"invoke",      'f', 2, BPY_CLASS_ATTR_OPTIONAL},
                {"poll",        'f', 2, BPY_CLASS_ATTR_OPTIONAL},
                {NULL, 0, 0, 0}


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to