s4auth: Fix the object names for PyCredentials and PyCredentialCacheContainer
authorAmitay Isaacs <amitay@gmail.com>
Wed, 20 Jul 2011 04:48:34 +0000 (14:48 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 28 Jul 2011 05:20:52 +0000 (15:20 +1000)
Use the object names as <modulename>.<objectname> to correctly generate the
object hierarchy in pydoc.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source4/auth/credentials/pycredentials.c

index 909d89786f89002d00ae1afb3d219d5b6d7a1218..5083174ba13f6b2d7455a57bfa1c3651a0538820 100644 (file)
@@ -420,7 +420,7 @@ static PyMethodDef py_creds_methods[] = {
 };
 
 PyTypeObject PyCredentials = {
-       .tp_name = "Credentials",
+       .tp_name = "credentials.Credentials",
        .tp_basicsize = sizeof(py_talloc_Object),
        .tp_new = py_creds_new,
        .tp_flags = Py_TPFLAGS_DEFAULT,
@@ -429,7 +429,7 @@ PyTypeObject PyCredentials = {
 
 
 PyTypeObject PyCredentialCacheContainer = {
-       .tp_name = "CredentialCacheContainer",
+       .tp_name = "credentials.CredentialCacheContainer",
        .tp_basicsize = sizeof(py_talloc_Object),
        .tp_flags = Py_TPFLAGS_DEFAULT,
 };