s4-samdb: added a few function comments for pydoc
authorAndrew Tridgell <tridge@samba.org>
Fri, 2 Sep 2011 04:42:50 +0000 (14:42 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 5 Sep 2011 09:19:25 +0000 (11:19 +0200)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/scripting/python/samba/samdb.py

index 794479f4257953054fb8f7fb3302c9c84f53a202..5cceb062eaf074692c3a2d83e5c3143b7dd7db57 100644 (file)
@@ -63,6 +63,7 @@ class SamDB(samba.Ldb):
             dsdb._dsdb_set_am_rodc(self, am_rodc)
 
     def connect(self, url=None, flags=0, options=None):
+        '''connect to the database'''
         if self.lp is not None and not os.path.exists(url):
             url = self.lp.private_path(url)
         self.url = url
@@ -71,9 +72,11 @@ class SamDB(samba.Ldb):
                 options=options)
 
     def am_rodc(self):
+        '''return True if we are an RODC'''
         return dsdb._am_rodc(self)
 
     def domain_dn(self):
+        '''return the domain DN'''
         return str(self.get_default_basedn())
 
     def enable_account(self, search_filter):