Use restructuredText formatting for docstrings.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 22 May 2008 15:42:18 +0000 (17:42 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 22 May 2008 22:37:22 +0000 (00:37 +0200)
(This used to be commit 0cc58decd74d20f3d7dff93ddef1c8bce4d49ad0)

source4/lib/ldb/ldb.i
source4/lib/ldb/ldb.py
source4/scripting/python/samba/__init__.py
source4/scripting/python/samba/idmap.py
source4/scripting/python/samba/provision.py
source4/scripting/python/samba/samba3.py
source4/scripting/python/samba/samdb.py
source4/scripting/python/samba/upgrade.py

index 2c5b7535b561cf8270b30a147031354c96de1dc1..21bee63ea8479149e908e0b8979979a0f83d8a63 100644 (file)
@@ -920,3 +920,7 @@ time_t ldb_string_to_time(const char *s);
                                           "Register a LDB module.";
 %rename(register_module) ldb_register_module;
 ldb_int_error ldb_register_module(const struct ldb_module_ops *);
+
+%pythoncode {
+__docformat__ = "restructuredText"
+}
index e458398b0b44bd1f220bdb46d9da8346ad424219..03869799c2adbde0a16da57bc0c00e18f84c314a 100644 (file)
@@ -471,5 +471,7 @@ def register_module(*args, **kwargs):
     Register a LDB module.
     """
   return _ldb.register_module(*args, **kwargs)
+__docformat__ = "restructuredText"
+
 
 
index 29afdb931da2558c1c5f313f0405eae799bb37cd..c7d71d3747288c7b3a50c2b6b729e59b8f8958a8 100644 (file)
@@ -20,6 +20,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+__docformat__ = "restructuredText"
+
 import os
 
 def _in_source_tree():
index 16efcd04709db45de02446b5ee8ca571611ce4bd..755ec52c7b4a66f9062a2bbc885772a86a42a952 100644 (file)
@@ -20,6 +20,8 @@
 
 """Convenience functions for using the idmap database."""
 
+__docformat__ = "restructuredText"
+
 import samba
 import misc
 import ldb
index 69c7e8846d78316458829d45aeee3c416105e1d3..68b43eff406fac615cc7ead99115ed69af095755 100644 (file)
@@ -43,6 +43,8 @@ from ldb import SCOPE_SUBTREE, SCOPE_ONELEVEL, SCOPE_BASE, LdbError, \
 
 """Functions for setting up a Samba configuration."""
 
+__docformat__ = "restructuredText"
+
 DEFAULTSITE = "Default-First-Site-Name"
 
 class InvalidNetbiosName(Exception):
index cffedb54af7f8d67136f3740a1494280ec4c2e59..9e802fa093a5e004aef1dcb41ae0eabc8131fb23 100644 (file)
@@ -19,6 +19,8 @@
 
 """Support for reading Samba 3 data files."""
 
+__docformat__ = "restructuredText"
+
 REGISTRY_VALUE_PREFIX = "SAMBA_REGVAL"
 REGISTRY_DB_VERSION = 1
 
index 198d1e9f5cb8c12a0858344754241e6088b45593..6465f495191f5c8f8c72bf43a801fbfc151ebc11 100644 (file)
@@ -28,6 +28,8 @@ import ldb
 from samba.idmap import IDmapDB
 import pwd
 
+__docformat__ = "restructuredText"
+
 class SamDB(samba.Ldb):
     """The SAM database."""
 
index f40f2cffe7f5ac58a655290d0cb3e6729c3fd1f5..0c83604e827503dc5abbdd82f9ab64b53bd0fed2 100644 (file)
@@ -7,6 +7,8 @@
 
 """Support code for upgrading from Samba 3 to Samba 4."""
 
+__docformat__ = "restructuredText"
+
 from provision import findnss, provision, FILL_DRS
 import grp
 import ldb