1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-13 08:59:08 +03:00
Commit Graph

33 Commits

Author SHA1 Message Date
d1e5a73806 s4-provision Remove setup_path, setup_dir and find_setup_dir
We now have a reliable way to know the current location of the
templates: dyn_SETUPDIR, which is updated for both the in-build and
installed binaries.

This replaces the function arguments and the distributed resolution of
the setup directory with one 'global' function (imported as required).

This also removes the ability to specify an alternate setup directory
on the command line, as this was rarely if ever used and never tested.

Andrew Bartlett
2011-02-07 13:22:01 +11:00
eb5a8e29cf s4-python: Some reformatting for the purpose of pydoctor. 2010-11-28 17:23:28 +01:00
4cb423f527 s4-python: python is not always in /usr/bin
Using "#!/usr/bin/env python" is more portable. It still isn't ideal
though, as we should really use the python path found at configure
time. We do that in many places already, but some don't.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-24 18:46:57 +10:00
956a256faa s4-python: Start using standard python logging infrastructure rather
than simple messaging callbacks.
2010-06-13 18:19:03 +02:00
89aa3b766b s4-python: Format to PEP8, simplify tests. 2010-03-29 18:05:29 +02:00
4291e28a93 s4-python: Fix formatting. 2010-01-25 15:18:02 +01:00
3ca61d9a01 s4:upgrade.py - remove my copyright
First I wanted to add also other changes but then I didn't introduce them.
Therefore remove my copyright again.
2009-11-28 18:50:27 +01:00
68f7b84140 s4:upgrade.py - readd accidentally removed empty lines
Jelmer pointed out that this is against the PEP8 norm
2009-11-28 18:29:49 +01:00
ecfd1dfcbd s4:samba3.py/upgrade.py: Revert
This reverts commit 2175c0ed06.
This reverts commit 6c3e2417a0.
This reverts commit dbb8989e05.
This reverts commit 82adfa39b7.
This reverts commit f299efa8f0.

After a small discussion with Jelmer we agreed that this isn't the right way
to fix the problem. We should wait for a real patch rather to rely on temporal
hacks.
2009-11-28 15:34:43 +01:00
08b3c396d7 s4:upgrade.py - Umlaut problem 2009-11-27 16:42:11 +01:00
0cc45b47dc s4:upgrade.py - rework to make the upgrade s3 -> s4 possible again
Able to read basic settings "workgroup", "realm", "netbios name" and the
function mode from the s3 "smb.conf" and use them for the provision of s4.
2009-11-27 16:06:07 +01:00
dbb8989e05 s4:upgrade.py - the import of WINS databases don't seem to work always
Disable it for now until the cause has been found
2009-11-27 15:02:18 +01:00
478446f96d Remove unnecessary imports. 2009-07-19 18:51:15 +02:00
c401aa9357 Use restructuredText formatting for docstrings.
(This used to be commit 0cc58decd7)
2008-05-23 00:37:22 +02:00
a7e1fa0bef Try to fix up part of the upgrade test.
There are still problems with the upgrade test, but these are not
related to the provision system.

Andrew Bartlett
(This used to be commit d331bc400f)
2008-03-07 19:20:39 +11:00
14c5f968e1 Rework provision scripts for more testing
This fixes up some issues with testdir (was not honoured) and
increases test coverage.

We now check all the major provision modes.  In doing so, to make it
possible to call from the multiple layers of 'sh', I have allowed 'dc'
to alias 'domain controller' and 'member' to alias 'member server'.
Fighting shell quoting in the test system was just too hard...

Also fix upgrade.py

Andrew Bartlett
(This used to be commit 0923de1228)
2008-03-07 10:57:52 +11:00
2cf29aebff Add tests for upgrade of WINS database.
(This used to be commit 7777611c0f)
2008-02-09 22:29:42 +01:00
2fa4c15858 Fix syntax of docstrings, set project name when generating Python API documentation.
(This used to be commit 68f13d87eb)
2008-02-09 17:37:42 +01:00
4932e4bb7a Fix upgrade after provision parameter rename.
(This used to be commit 361b9f43fb)
2008-02-09 03:59:45 +01:00
37f35d2a03 python/provision: Reconcile code partitions-only provisioning and generic provisioning, some other minor refactoring of the provisioning.
Pair-programmed by Andrew and me using obby :-)
(This used to be commit 688adcbb63)
2008-01-25 01:02:13 +01:00
8ad2a035e3 r26616: Support parsing of user data in SAmba 3 tdbsam.
(This used to be commit 2f33e0451d)
2007-12-27 17:36:06 -06:00
222262b54e r26608: More improvements to the upgrade code.
(This used to be commit 7ea06d91f6)
2007-12-26 21:18:02 -06:00
c4d3666ac2 r26607: Fix reading of values and subkeys in Samba 3 registry files.
(This used to be commit e3d7454ef7)
2007-12-26 15:03:02 -06:00
533cc583ed 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 2227fb6df6)
2007-12-26 11:57:08 -06:00
7c146c42d2 r26593: - More work on the python versions of samba3dump and the samba3sam tests.
- Initial work converting the upgrade code to Python.
- Removed the old EJS upgrade code because it has been broken for a long time.
(This used to be commit 150cf39fbd)
2007-12-26 11:57:07 -06:00
3c22677a8c r26591: Get the first bits of samba3dump to work again.
(This used to be commit 3511027515)
2007-12-26 11:57:06 -06:00
95b1f554b2 r26587: Fix reading Samba 3 WINS database and initial work on group db, aliases and secrets.
(This used to be commit c7c4cf258a)
2007-12-26 11:57:04 -06:00
aa0a06f13c r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.
(This used to be commit c550c03372)
2007-12-24 01:51:03 -06:00
c2fffa8335 r26538: Pass path generation function around rather than base directory.
(This used to be commit 5f921af41e)
2007-12-21 05:51:59 +01:00
86f91db7d5 r26536: More tests for provisioning code.
(This used to be commit 43c8bfeedf)
2007-12-21 05:51:56 +01:00
323c174be3 r26506: Start running (really trivial) tests for upgrade script.
(This used to be commit 73bd4a9566)
2007-12-21 05:51:12 +01:00
b414ac5052 r26369: Start on tests for the upgrade python code.
(This used to be commit c4458d11c7)
2007-12-21 05:49:06 +01:00
c926cddfad r26366: Import provision scripts in Python.
(This used to be commit 090c799f98)
2007-12-21 05:49:06 +01:00