svn commit: samba r25898 - in branches/4.0-python: . source/lib/ldb/swig source/lib/ldb/tests/python

jelmer at samba.org jelmer at samba.org
Wed Nov 7 22:11:42 GMT 2007


Author: jelmer
Date: 2007-11-07 22:11:41 +0000 (Wed, 07 Nov 2007)
New Revision: 25898

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25898

Log:
Support set_modules_dir, set_create_perms.
Modified:
   branches/4.0-python/
   branches/4.0-python/source/lib/ldb/swig/ldb.i
   branches/4.0-python/source/lib/ldb/tests/python/api.py


Changeset:

Property changes on: branches/4.0-python
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/4.0-python/source/lib/ldb/swig/ldb.i
===================================================================
--- branches/4.0-python/source/lib/ldb/swig/ldb.i	2007-11-07 20:45:04 UTC (rev 25897)
+++ branches/4.0-python/source/lib/ldb/swig/ldb.i	2007-11-07 22:11:41 UTC (rev 25898)
@@ -421,7 +421,8 @@
         ldb_dn *get_schema_basedn();
         ldb_dn *get_default_basedn();
         const char *errstring();
-
+        void set_create_perms(unsigned int perms);
+        void set_modules_dir(const char *path);
         ldb_error transaction_start();
         ldb_error transaction_commit();
         ldb_error transaction_cancel();

Modified: branches/4.0-python/source/lib/ldb/tests/python/api.py
===================================================================
--- branches/4.0-python/source/lib/ldb/tests/python/api.py	2007-11-07 20:45:04 UTC (rev 25897)
+++ branches/4.0-python/source/lib/ldb/tests/python/api.py	2007-11-07 22:11:41 UTC (rev 25898)
@@ -24,6 +24,14 @@
         x = ldb.Ldb()
         x.connect("foo.tdb")
 
+    def test_set_create_perms(self):
+        x = ldb.Ldb()
+        x.set_create_perms(0600)
+
+    def test_set_modules_dir(self):
+        x = ldb.Ldb()
+        x.set_modules_dir("/tmp")
+
     def test_search(self):
         l = ldb.Ldb("foo.tdb")
         self.assertEquals(len(l.search()), 1)



More information about the samba-cvs mailing list