[dia] PyDia: fix ConnectionPoint.__members__ content



commit 882c3b9d17316a3cf66c93e85efde2bbd49c9c06
Author: Hans Breuer <hans breuer org>
Date:   Sun Jun 30 16:17:31 2013 +0200

    PyDia: fix ConnectionPoint.__members__ content
    
    Without this the newly added attributes (flags, directions) are
    usable, but can not be iterated as needed in pydiadoc.py.

 plug-ins/python/pydia-cpoint.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/python/pydia-cpoint.c b/plug-ins/python/pydia-cpoint.c
index 09265c7..1ba7596 100644
--- a/plug-ins/python/pydia-cpoint.c
+++ b/plug-ins/python/pydia-cpoint.c
@@ -62,7 +62,7 @@ static PyObject *
 PyDiaConnectionPoint_GetAttr(PyDiaConnectionPoint *self, gchar *attr)
 {
     if (!strcmp(attr, "__members__"))
-       return Py_BuildValue("[sss]", "connected", "object", "pos");
+       return Py_BuildValue("[sssss]", "connected", "object", "pos", "flags", "directions");
     else if (!strcmp(attr, "pos"))
        return PyDiaPoint_New(&(self->cpoint->pos));
     else if (!strcmp(attr, "object"))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]