[wpdev-commits] wolfpack/python pyaccount.cpp,1.18,1.19
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2004-01-22 03:59:01
|
Update of /cvsroot/wpdev/wolfpack/python
In directory sc8-pr-cvs1:/tmp/cvs-serv524/python
Modified Files:
pyaccount.cpp
Log Message:
Allowed python access to the plevel too.
Index: pyaccount.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/pyaccount.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** pyaccount.cpp 9 Sep 2003 23:09:31 -0000 1.18
--- pyaccount.cpp 22 Jan 2004 03:58:58 -0000 1.19
***************
*** 223,228 ****
return PyFalse;
}
! else
return Py_FindMethod( wpAccountMethods, (PyObject*)self, name );
}
--- 223,231 ----
return PyFalse;
}
! else if(!strcmp(name,"plevel")) {
! return PyInt_FromLong(self->account->plevel());
! } else {
return Py_FindMethod( wpAccountMethods, (PyObject*)self, name );
+ }
}
|