[SCM] Samba Shared Repository - branch master updated

Jelmer Vernooij jelmer at samba.org
Sun Dec 5 10:13:01 MST 2010


The branch, master has been updated
       via  8897935 pytalloc: Add docstring for talloc.Object.
       via  71671a8 s4-python: Add more module docstrings.
       via  52d64c5 s4-python: Add some more module docstrings.
      from  496ef92 wafsamba: Only include versioned files when building tarball from bzr.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 889793566089a618bdce0279af580e42fcc70275
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Sun Dec 5 17:06:58 2010 +0100

    pytalloc: Add docstring for talloc.Object.
    
    Autobuild-User: Jelmer Vernooij <jelmer at samba.org>
    Autobuild-Date: Sun Dec  5 18:12:59 CET 2010 on sn-devel-104

commit 71671a84bbb93cee24f972b9ef72612166290ee0
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Sun Dec 5 17:00:45 2010 +0100

    s4-python: Add more module docstrings.

commit 52d64c53b9ac2abd25c4411b2bcb770e6ab89632
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Sun Dec 5 16:56:27 2010 +0100

    s4-python: Add some more module docstrings.

-----------------------------------------------------------------------

Summary of changes:
 lib/talloc/pytalloc.c                              |    4 +++-
 .../python/samba/tests/blackbox/__init__.py        |    1 +
 .../python/samba/tests/blackbox/ndrdump.py         |    9 ++++++---
 .../python/samba/tests/dcerpc/__init__.py          |    1 +
 .../scripting/python/samba/tests/dcerpc/bare.py    |    2 ++
 .../scripting/python/samba/tests/dcerpc/misc.py    |    2 ++
 .../python/samba/tests/dcerpc/registry.py          |    2 ++
 .../python/samba/tests/dcerpc/rpc_talloc.py        |    2 ++
 .../scripting/python/samba/tests/dcerpc/rpcecho.py |    2 ++
 source4/scripting/python/samba/tests/dcerpc/sam.py |    2 ++
 .../scripting/python/samba/tests/dcerpc/unix.py    |    3 +++
 source4/scripting/python/samba/tests/dsdb.py       |    2 ++
 source4/scripting/python/samba/tests/hostconfig.py |    3 +++
 source4/scripting/python/samba/tests/messaging.py  |    2 ++
 source4/scripting/python/samba/tests/netcmd.py     |    2 ++
 source4/scripting/python/samba/tests/ntacls.py     |    2 ++
 source4/scripting/python/samba/tests/param.py      |    2 ++
 source4/scripting/python/samba/tests/provision.py  |    2 ++
 source4/scripting/python/samba/tests/registry.py   |    2 ++
 source4/scripting/python/samba/tests/samba3.py     |    2 ++
 source4/scripting/python/samba/tests/samdb.py      |    3 +++
 source4/scripting/python/samba/tests/security.py   |    2 ++
 source4/scripting/python/samba/tests/upgrade.py    |    2 ++
 .../python/samba/tests/upgradeprovision.py         |    2 ++
 .../python/samba/tests/upgradeprovisionneeddc.py   |    2 ++
 source4/scripting/python/samba/tests/xattr.py      |    2 ++
 source4/scripting/python/samba/upgradehelpers.py   |    1 +
 27 files changed, 59 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/talloc/pytalloc.c b/lib/talloc/pytalloc.c
index 262ba49..6ddcac9 100644
--- a/lib/talloc/pytalloc.c
+++ b/lib/talloc/pytalloc.c
@@ -114,6 +114,7 @@ static int py_talloc_default_cmp(PyObject *_obj1, PyObject *_obj2)
 
 static PyTypeObject TallocObject_Type = {
 	.tp_name = "talloc.Object",
+	.tp_doc = "Python wrapper for a talloc-maintained object.",
 	.tp_basicsize = sizeof(py_talloc_Object),
 	.tp_dealloc = (destructor)py_talloc_dealloc,
 	.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
@@ -128,7 +129,8 @@ void inittalloc(void)
 	if (PyType_Ready(&TallocObject_Type) < 0)
 		return;
 
-	m = Py_InitModule3("talloc", talloc_methods, "Debug utilities for talloc-wrapped objects.");
+	m = Py_InitModule3("talloc", talloc_methods,
+					   "Python wrapping of talloc-maintained objects.");
 	if (m == NULL)
 		return;
 
diff --git a/source4/scripting/python/samba/tests/blackbox/__init__.py b/source4/scripting/python/samba/tests/blackbox/__init__.py
index e69de29..8569cb5 100644
--- a/source4/scripting/python/samba/tests/blackbox/__init__.py
+++ b/source4/scripting/python/samba/tests/blackbox/__init__.py
@@ -0,0 +1 @@
+"""Blackbox tests. """
diff --git a/source4/scripting/python/samba/tests/blackbox/ndrdump.py b/source4/scripting/python/samba/tests/blackbox/ndrdump.py
index 06c1b5c..5a56afd 100755
--- a/source4/scripting/python/samba/tests/blackbox/ndrdump.py
+++ b/source4/scripting/python/samba/tests/blackbox/ndrdump.py
@@ -1,9 +1,12 @@
 #!/usr/bin/python
-# Blackbox tests for masktest
-# Copyright (C) 2008 Andrew Tridgell
-# Copyright (C) 2008 Andrew Bartlett
+# Blackbox tests for ndrdump
+# Copyright (C) 2008 Andrew Tridgell <tridge at samba.org>
+# Copyright (C) 2008 Andrew Bartlett <abartlet at samba.org>
+# Copyright (C) 2010 Jelmer Vernooij <jelmer at samba.org>
 # based on test_smbclient.sh
 
+"""Blackbox tests for ndrdump."""
+
 import os
 from samba.tests import BlackboxTestCase
 
diff --git a/source4/scripting/python/samba/tests/dcerpc/__init__.py b/source4/scripting/python/samba/tests/dcerpc/__init__.py
index b6bf830..0f96255 100644
--- a/source4/scripting/python/samba/tests/dcerpc/__init__.py
+++ b/source4/scripting/python/samba/tests/dcerpc/__init__.py
@@ -17,4 +17,5 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+"""Tests for the DCE/RPC Python bindings."""
 
diff --git a/source4/scripting/python/samba/tests/dcerpc/bare.py b/source4/scripting/python/samba/tests/dcerpc/bare.py
index c3679fe..2216369 100644
--- a/source4/scripting/python/samba/tests/dcerpc/bare.py
+++ b/source4/scripting/python/samba/tests/dcerpc/bare.py
@@ -18,6 +18,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.dcerpc.bare."""
+
 from samba.dcerpc import ClientConnection
 import samba.tests
 
diff --git a/source4/scripting/python/samba/tests/dcerpc/misc.py b/source4/scripting/python/samba/tests/dcerpc/misc.py
index 689cea3..37a647a 100644
--- a/source4/scripting/python/samba/tests/dcerpc/misc.py
+++ b/source4/scripting/python/samba/tests/dcerpc/misc.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.dcerpc.misc."""
+
 from samba.dcerpc import misc
 import samba.tests
 
diff --git a/source4/scripting/python/samba/tests/dcerpc/registry.py b/source4/scripting/python/samba/tests/dcerpc/registry.py
index 7b0cb5f..f0716d5 100644
--- a/source4/scripting/python/samba/tests/dcerpc/registry.py
+++ b/source4/scripting/python/samba/tests/dcerpc/registry.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.dcerpc.registry."""
+
 from samba.dcerpc import winreg
 from samba.tests import RpcInterfaceTestCase
 
diff --git a/source4/scripting/python/samba/tests/dcerpc/rpc_talloc.py b/source4/scripting/python/samba/tests/dcerpc/rpc_talloc.py
index d561dde..fe0f93e 100755
--- a/source4/scripting/python/samba/tests/dcerpc/rpc_talloc.py
+++ b/source4/scripting/python/samba/tests/dcerpc/rpc_talloc.py
@@ -10,6 +10,8 @@
 #
 #    trial samba.tests.dcerpc.rpc_talloc
 
+"""Tests for the talloc handling in the generated Python DCE/RPC bindings."""
+
 import sys
 
 sys.path.insert(0, "bin/python")
diff --git a/source4/scripting/python/samba/tests/dcerpc/rpcecho.py b/source4/scripting/python/samba/tests/dcerpc/rpcecho.py
index b7dd065..ba7ad96 100644
--- a/source4/scripting/python/samba/tests/dcerpc/rpcecho.py
+++ b/source4/scripting/python/samba/tests/dcerpc/rpcecho.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.dceprc.rpcecho."""
+
 from samba.dcerpc import echo
 from samba.ndr import ndr_pack, ndr_unpack
 from samba.tests import RpcInterfaceTestCase, TestCase
diff --git a/source4/scripting/python/samba/tests/dcerpc/sam.py b/source4/scripting/python/samba/tests/dcerpc/sam.py
index 4ae5fd8..38b381d 100644
--- a/source4/scripting/python/samba/tests/dcerpc/sam.py
+++ b/source4/scripting/python/samba/tests/dcerpc/sam.py
@@ -18,6 +18,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.dcerpc.sam."""
+
 from samba.dcerpc import samr, security
 from samba.tests import RpcInterfaceTestCase
 
diff --git a/source4/scripting/python/samba/tests/dcerpc/unix.py b/source4/scripting/python/samba/tests/dcerpc/unix.py
index 4e1fe65..16bf37e 100644
--- a/source4/scripting/python/samba/tests/dcerpc/unix.py
+++ b/source4/scripting/python/samba/tests/dcerpc/unix.py
@@ -17,6 +17,9 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.dcerpc.unixinfo."""
+
+
 from samba.dcerpc import unixinfo
 from samba.tests import RpcInterfaceTestCase
 
diff --git a/source4/scripting/python/samba/tests/dsdb.py b/source4/scripting/python/samba/tests/dsdb.py
index 4a50c96..d4331f3 100644
--- a/source4/scripting/python/samba/tests/dsdb.py
+++ b/source4/scripting/python/samba/tests/dsdb.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.dsdb."""
+
 from samba.credentials import Credentials
 from samba.samdb import SamDB
 from samba.auth import system_session
diff --git a/source4/scripting/python/samba/tests/hostconfig.py b/source4/scripting/python/samba/tests/hostconfig.py
index 6f5f7f7..78ca620 100644
--- a/source4/scripting/python/samba/tests/hostconfig.py
+++ b/source4/scripting/python/samba/tests/hostconfig.py
@@ -16,6 +16,9 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
+
+"""Tests for samba.hostconfig."""
+
 from samba.hostconfig import SharesContainer
 from samba.tests import TestCase
 
diff --git a/source4/scripting/python/samba/tests/messaging.py b/source4/scripting/python/samba/tests/messaging.py
index 91cf024..d2a0b73 100644
--- a/source4/scripting/python/samba/tests/messaging.py
+++ b/source4/scripting/python/samba/tests/messaging.py
@@ -18,6 +18,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.messaging."""
+
 from samba.messaging import Messaging
 from samba.tests import TestCase
 
diff --git a/source4/scripting/python/samba/tests/netcmd.py b/source4/scripting/python/samba/tests/netcmd.py
index 4d83f2e..787bcd5 100644
--- a/source4/scripting/python/samba/tests/netcmd.py
+++ b/source4/scripting/python/samba/tests/netcmd.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.netcmd."""
+
 from samba.netcmd import Command
 import samba.tests
 
diff --git a/source4/scripting/python/samba/tests/ntacls.py b/source4/scripting/python/samba/tests/ntacls.py
index 06fa1d8..2d8d6b9 100644
--- a/source4/scripting/python/samba/tests/ntacls.py
+++ b/source4/scripting/python/samba/tests/ntacls.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.ntacls."""
+
 from samba.ntacls import setntacl, getntacl, XattrBackendError
 from samba.dcerpc import xattr, security
 from samba.param import LoadParm
diff --git a/source4/scripting/python/samba/tests/param.py b/source4/scripting/python/samba/tests/param.py
index 34d6544..7848e1c 100644
--- a/source4/scripting/python/samba/tests/param.py
+++ b/source4/scripting/python/samba/tests/param.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.param."""
+
 from samba import param
 import samba.tests
 
diff --git a/source4/scripting/python/samba/tests/provision.py b/source4/scripting/python/samba/tests/provision.py
index 58bb030..29287ff 100644
--- a/source4/scripting/python/samba/tests/provision.py
+++ b/source4/scripting/python/samba/tests/provision.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.provision."""
+
 import os
 from samba.provision import setup_secretsdb, findnss, ProvisionPaths
 import samba.tests
diff --git a/source4/scripting/python/samba/tests/registry.py b/source4/scripting/python/samba/tests/registry.py
index d01ebff..9792685 100644
--- a/source4/scripting/python/samba/tests/registry.py
+++ b/source4/scripting/python/samba/tests/registry.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.registry."""
+
 import os
 from samba import registry
 import samba.tests
diff --git a/source4/scripting/python/samba/tests/samba3.py b/source4/scripting/python/samba/tests/samba3.py
index 1a85082..c55de8b 100644
--- a/source4/scripting/python/samba/tests/samba3.py
+++ b/source4/scripting/python/samba/tests/samba3.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.samba3."""
+
 from samba.samba3 import (GroupMappingDatabase, Registry, PolicyDatabase,
         SecretsDatabase, TdbSam)
 from samba.samba3 import (WinsDatabase, SmbpasswdFile, ACB_NORMAL,
diff --git a/source4/scripting/python/samba/tests/samdb.py b/source4/scripting/python/samba/tests/samdb.py
index 1536f16..cedb0d0 100644
--- a/source4/scripting/python/samba/tests/samdb.py
+++ b/source4/scripting/python/samba/tests/samdb.py
@@ -16,6 +16,9 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
+
+"""Tests for samba.samdb."""
+
 import logging
 import os
 import uuid
diff --git a/source4/scripting/python/samba/tests/security.py b/source4/scripting/python/samba/tests/security.py
index 22f7df6..59e3113 100644
--- a/source4/scripting/python/samba/tests/security.py
+++ b/source4/scripting/python/samba/tests/security.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.dcerpc.security."""
+
 import samba.tests
 from samba.dcerpc import security
 
diff --git a/source4/scripting/python/samba/tests/upgrade.py b/source4/scripting/python/samba/tests/upgrade.py
index f49a0c5..16ccbd5 100644
--- a/source4/scripting/python/samba/tests/upgrade.py
+++ b/source4/scripting/python/samba/tests/upgrade.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.upgrade."""
+
 from samba.upgrade import import_wins
 from samba.tests import LdbTestCase
 
diff --git a/source4/scripting/python/samba/tests/upgradeprovision.py b/source4/scripting/python/samba/tests/upgradeprovision.py
index c819397..50dcfeb 100644
--- a/source4/scripting/python/samba/tests/upgradeprovision.py
+++ b/source4/scripting/python/samba/tests/upgradeprovision.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.upgradeprovision."""
+
 import os
 from samba.upgradehelpers import  (usn_in_range, dn_sort,
                                   get_diff_sddls, update_secrets,
diff --git a/source4/scripting/python/samba/tests/upgradeprovisionneeddc.py b/source4/scripting/python/samba/tests/upgradeprovisionneeddc.py
index d4d6b84..3a9c78e 100644
--- a/source4/scripting/python/samba/tests/upgradeprovisionneeddc.py
+++ b/source4/scripting/python/samba/tests/upgradeprovisionneeddc.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.upgradeprovision that need a DC."""
+
 import os
 import re
 import shutil
diff --git a/source4/scripting/python/samba/tests/xattr.py b/source4/scripting/python/samba/tests/xattr.py
index ad35b51..f978ee5 100644
--- a/source4/scripting/python/samba/tests/xattr.py
+++ b/source4/scripting/python/samba/tests/xattr.py
@@ -17,6 +17,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+"""Tests for samba.xattr_native and samba.xattr_tdb."""
+
 import samba.xattr_native, samba.xattr_tdb
 from samba.dcerpc import xattr
 from samba.ndr import ndr_pack
diff --git a/source4/scripting/python/samba/upgradehelpers.py b/source4/scripting/python/samba/upgradehelpers.py
index ded3ff1..ddc857e 100755
--- a/source4/scripting/python/samba/upgradehelpers.py
+++ b/source4/scripting/python/samba/upgradehelpers.py
@@ -21,6 +21,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+"""Helers used for upgrading between different database formats."""
 
 import os
 import string


-- 
Samba Shared Repository


More information about the samba-cvs mailing list