summaryrefslogtreecommitdiff
path: root/source4/param/pyparam.c
AgeCommit message (Collapse)AuthorFilesLines
2011-07-20s4-param Handle P_CHAR and P_BOOLREV in pyparamAndrew Bartlett1-0/+4
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-08param: Add hooks to s3 parm_struct and the parameters void * pointerAndrew Bartlett1-2/+2
This is to that the pyparam hooks can use the hooks to connect with the s3 loadparm system. This now also includes per-service parameters. Andrew Bartlett
2011-06-29s4-param Merge struct parm_struct with version from source3/Andrew Bartlett1-1/+1
2011-06-06s4-param Remove 'modules dir'Andrew Bartlett1-0/+7
The Samba waf build ensures that dyn_MODULESDIR is always correct (even for in-tree binaries), so we don't need to allow the user to configure this at run time. Andrew Bartlett
2011-06-06s4-param Remove 'sam database' parameterAndrew Bartlett1-0/+9
This now just relies on the private dir parameter, which remains. Andrew Bartlett
2011-04-29s4-param Rename private_path() -> lpcfg_private_path()Andrew Bartlett1-1/+1
This is consistent with lock_path() Andrew Bartlett
2011-03-22s4:python bindings - handle NULL returns from "loadparm_init_global"Matthias Dieter Wallnöfer1-0/+4
Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Mar 22 19:52:57 CET 2011 on sn-devel-104
2011-03-19source4/param: Fix prototypes for all functions.Jelmer Vernooij1-1/+3
2011-02-07s4-provision Remove setup_path, setup_dir and find_setup_dirAndrew Bartlett1-0/+8
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
2010-12-08s4-param Allow +foo syntax in smb.conf list parsingAndrew Bartlett1-0/+1
The idea here is to allow an smb.conf file to work from the defaults, rather than override them. For example, 'server services = +openchange'. Pair-Programmed-With: Andrew Tridgell <tridge@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Dec 8 09:39:06 CET 2010 on sn-devel-104
2010-12-01pyparam: Use talloc.Object.Jelmer Vernooij1-2/+6
2010-11-29s4-loadparm: use loadparm_init_global() instead of loadparm_init()Andrew Tridgell1-1/+1
this prevents us having two lp_ctx contexts in these tools which leads to bizarre behaviour Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-22Avoid the use of PyAPI_DATA, which is for internal Python API's.Arnaud Faucher1-2/+2
Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Nov 22 00:52:56 CET 2010 on sn-devel-104
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-24/+24
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-20testparm: Check netbios name and workgroup characters and length.Jelmer Vernooij1-2/+2
2010-06-20pyparam: Support Loadparm.get(p, "global")Jelmer Vernooij1-52/+52
2010-06-20pyparam: Allow specifying None as section name to LoadparmContext.get()Jelmer Vernooij1-1/+1
to mean default section.
2010-06-20s4-python: Add LoadparmService.dump()Jelmer Vernooij1-0/+40
2010-06-20s4-python: Implement LoadParm.dump().Jelmer Vernooij1-0/+23
2010-03-29pytalloc: allow for using a system libtalloc-dev with pytallocAndrew Tridgell1-1/+1
When we have a system talloc library, we still need to grab pytalloc.h from lib/talloc. We don't want to just use -Ilib/talloc, as otherwise we'll get the in-tree talloc.h which may not be compatible with the system talloc.h So we need to give the path to pytalloc.h
2010-02-09s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer1-4/+0
This was needed only by Python 2.3 which we no longer support.
2009-12-21Fix initialisation of TypeObject samba.param.LoadparmService.Jelmer Vernooij1-0/+3
Found by Ricardo Jorge <rvelhote@gmail.com>.
2009-10-23s4-python: we need to include Python.h firstAndrew Tridgell1-4/+1
If we don't include Python.h first then we get a pile of warnings due to broken redefines of XOPEN_SOURCE in the Python includes.
2009-08-04param/pyparam: Cope with string list parameters being empty.Ricardo Jorge1-1/+7
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-08-04python/loadparm: Get shares listing working.Ricardo Jorge1-5/+6
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-07-01use py_talloc_reference instead of py_talloc_importAndrew Tridgell1-1/+1
This is one of the few cases where we want the object to be owned by both the python object and C code
2009-06-17param/python: Fix memory leak of LoadParm objects.Jelmer Vernooij1-1/+12
2009-06-16python: Provide way to iterate over available shares.Jelmer Vernooij1-0/+16
2009-06-02Fix unresolved symbol in python messaging module.Jelmer Vernooij1-9/+0
2009-06-02python: Move helper functions for using param into a separate file ratherJelmer Vernooij1-24/+0
than linking against the python module.
2009-02-05s4:pyparam: fix compiler warningsStefan Metzmacher1-15/+15
metze
2009-02-02s4:loadparm: s/class/pclassStefan Metzmacher1-1/+1
metze
2009-01-16Find default smb.conf path correctly, when it was not specified on theJelmer Vernooij1-1/+12
command-line.
2009-01-15python/param: Cope with lp configfile being NULL.Jelmer Vernooij1-1/+5
2009-01-08Avoid using a utility header for Python replacements included in Samba,Jelmer Vernooij1-1/+5
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-07s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4Tim Prouty1-0/+1
2009-01-06py: Properly increase the reference counter of Py_None.Jelmer Vernooij1-4/+4
2008-12-23python: Define Py_ssize_t if the Python library doesn't.Jelmer Vernooij1-0/+6
2008-12-22Fix missing symbols issues when building with shared libraries.Jelmer Vernooij1-1/+1
2008-12-22Raise proper exceptions when lp file can't be found, be aJelmer Vernooij1-4/+4
bit less strict when no file was specified.
2008-12-21Fix more tests, improve repr() functions for various Python types.Jelmer Vernooij1-3/+2
2008-12-21Convert param Python module to "manual" C.Jelmer Vernooij1-151/+16
2008-12-21Fix various Python-related bugs.Jelmer Vernooij1-0/+495