summaryrefslogtreecommitdiffstats
path: root/source4/param/pyparam.c
Commit message (Collapse)AuthorAgeFilesLines
* Use public pytalloc header file.Jelmer Vernooij2011-08-141-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Aug 14 17:18:46 CEST 2011 on sn-devel-104
* pytalloc: Use consistent prefix for functions, add ABI file.Jelmer Vernooij2011-08-101-19/+19
|
* s4-param: Fix object names for python objects PyLoadparm and PyLoadparmContextAmitay Isaacs2011-07-281-2/+2
| | | | | | | Use the object names <modulename>.<objectname> to correctly generate the object hierarchy in pydoc. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-param Handle P_CHAR and P_BOOLREV in pyparamAndrew Bartlett2011-07-201-0/+4
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* param: Add hooks to s3 parm_struct and the parameters void * pointerAndrew Bartlett2011-07-081-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
* s4-param Merge struct parm_struct with version from source3/Andrew Bartlett2011-06-291-1/+1
|
* s4-param Remove 'modules dir'Andrew Bartlett2011-06-061-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
* s4-param Remove 'sam database' parameterAndrew Bartlett2011-06-061-0/+9
| | | | | | This now just relies on the private dir parameter, which remains. Andrew Bartlett
* s4-param Rename private_path() -> lpcfg_private_path()Andrew Bartlett2011-04-291-1/+1
| | | | | | This is consistent with lock_path() Andrew Bartlett
* s4:python bindings - handle NULL returns from "loadparm_init_global"Matthias Dieter Wallnöfer2011-03-221-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
* source4/param: Fix prototypes for all functions.Jelmer Vernooij2011-03-191-1/+3
|
* s4-provision Remove setup_path, setup_dir and find_setup_dirAndrew Bartlett2011-02-071-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
* s4-param Allow +foo syntax in smb.conf list parsingAndrew Bartlett2010-12-081-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
* pyparam: Use talloc.Object.Jelmer Vernooij2010-12-011-2/+6
|
* s4-loadparm: use loadparm_init_global() instead of loadparm_init()Andrew Tridgell2010-11-291-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>
* Avoid the use of PyAPI_DATA, which is for internal Python API's.Arnaud Faucher2010-11-221-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
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-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>
* testparm: Check netbios name and workgroup characters and length.Jelmer Vernooij2010-06-201-2/+2
|
* pyparam: Support Loadparm.get(p, "global")Jelmer Vernooij2010-06-201-52/+52
|
* pyparam: Allow specifying None as section name to LoadparmContext.get()Jelmer Vernooij2010-06-201-1/+1
| | | | to mean default section.
* s4-python: Add LoadparmService.dump()Jelmer Vernooij2010-06-201-0/+40
|
* s4-python: Implement LoadParm.dump().Jelmer Vernooij2010-06-201-0/+23
|
* pytalloc: allow for using a system libtalloc-dev with pytallocAndrew Tridgell2010-03-291-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
* s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer2010-02-091-4/+0
| | | | This was needed only by Python 2.3 which we no longer support.
* Fix initialisation of TypeObject samba.param.LoadparmService.Jelmer Vernooij2009-12-211-0/+3
| | | | Found by Ricardo Jorge <rvelhote@gmail.com>.
* s4-python: we need to include Python.h firstAndrew Tridgell2009-10-231-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.
* param/pyparam: Cope with string list parameters being empty.Ricardo Jorge2009-08-041-1/+7
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* python/loadparm: Get shares listing working.Ricardo Jorge2009-08-041-5/+6
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* use py_talloc_reference instead of py_talloc_importAndrew Tridgell2009-07-011-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
* param/python: Fix memory leak of LoadParm objects.Jelmer Vernooij2009-06-171-1/+12
|
* python: Provide way to iterate over available shares.Jelmer Vernooij2009-06-161-0/+16
|
* Fix unresolved symbol in python messaging module.Jelmer Vernooij2009-06-021-9/+0
|
* python: Move helper functions for using param into a separate file ratherJelmer Vernooij2009-06-021-24/+0
| | | | than linking against the python module.
* s4:pyparam: fix compiler warningsStefan Metzmacher2009-02-051-15/+15
| | | | metze
* s4:loadparm: s/class/pclassStefan Metzmacher2009-02-021-1/+1
| | | | metze
* Find default smb.conf path correctly, when it was not specified on theJelmer Vernooij2009-01-161-1/+12
| | | | command-line.
* python/param: Cope with lp configfile being NULL.Jelmer Vernooij2009-01-151-1/+5
|
* Avoid using a utility header for Python replacements included in Samba,Jelmer Vernooij2009-01-081-1/+5
| | | | since this will not be shipped with talloc/tdb/tevent/etc.
* s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4Tim Prouty2009-01-071-0/+1
|
* py: Properly increase the reference counter of Py_None.Jelmer Vernooij2009-01-061-4/+4
|
* python: Define Py_ssize_t if the Python library doesn't.Jelmer Vernooij2008-12-231-0/+6
|
* Fix missing symbols issues when building with shared libraries.Jelmer Vernooij2008-12-221-1/+1
|
* Raise proper exceptions when lp file can't be found, be aJelmer Vernooij2008-12-221-4/+4
| | | | bit less strict when no file was specified.
* Fix more tests, improve repr() functions for various Python types.Jelmer Vernooij2008-12-211-3/+2
|
* Convert param Python module to "manual" C.Jelmer Vernooij2008-12-211-151/+16
|
* Fix various Python-related bugs.Jelmer Vernooij2008-12-211-0/+495