diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-25 16:36:44 -0600 |
|---|---|---|
| committer | Stefan Metzmacher <metze@samba.org> | 2007-12-26 11:57:08 -0600 |
| commit | 533cc583ed20efdfd6bee60f86d16fef3942898b (patch) | |
| tree | b89f9b0988d38e9995a71ff8d14ea023cc37783a /source4/scripting/python/samba/__init__.py | |
| parent | cea31e32163fe639be72b3f4dfca1362c93b5576 (diff) | |
| download | samba-533cc583ed20efdfd6bee60f86d16fef3942898b.tar.gz samba-533cc583ed20efdfd6bee60f86d16fef3942898b.tar.bz2 samba-533cc583ed20efdfd6bee60f86d16fef3942898b.zip | |
r26596: Fixed upgrade.py.
Added blackbox tests for provision and upgrade Python scripts.
Clean up temporary files created by the Python tests.
(This used to be commit 2227fb6df62240cae64d27a1920d878316f819fc)
Diffstat (limited to 'source4/scripting/python/samba/__init__.py')
| -rw-r--r-- | source4/scripting/python/samba/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py index 5b345341330..359457d8150 100644 --- a/source4/scripting/python/samba/__init__.py +++ b/source4/scripting/python/samba/__init__.py @@ -164,9 +164,9 @@ class Ldb(ldb.Ldb): self.add(msg) def modify_ldif(self, ldif): - for (changetype, msg) in ldb.parse_ldif(data): - assert changetype == CHANGETYPE_MODIFY - ldb.modify(msg) + for (changetype, msg) in self.parse_ldif(ldif): + assert changetype == ldb.CHANGETYPE_MODIFY + self.modify(msg) def substitute_var(text, values): |
