From 73b789b6d25698dba15c867c71d0cdd8c264f352 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 24 May 2008 04:01:57 +0200 Subject: Add docstrings to a couple more python modules. (This used to be commit b4560c90e5e8d3a35367d3a21d361dc4c9c0de23) --- source4/lib/events/events.i | 2 +- source4/lib/events/events.py | 4 ++++ source4/lib/registry/registry.i | 6 +++++- source4/lib/registry/registry.py | 4 ++++ 4 files changed, 14 insertions(+), 2 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/events/events.i b/source4/lib/events/events.i index 7de8aec79d..5f790aeac5 100644 --- a/source4/lib/events/events.i +++ b/source4/lib/events/events.i @@ -16,7 +16,7 @@ along with this program. If not, see . */ -%module(package="samba.events") events; +%module(docstring="Event management.",package="samba.events") events; %import "../talloc/talloc.i"; diff --git a/source4/lib/events/events.py b/source4/lib/events/events.py index 264e0b7cdf..90695e3d92 100644 --- a/source4/lib/events/events.py +++ b/source4/lib/events/events.py @@ -3,6 +3,10 @@ # # Don't modify this file, modify the SWIG interface instead. +""" +Event management. +""" + import _events import new new_instancemethod = new.instancemethod diff --git a/source4/lib/registry/registry.i b/source4/lib/registry/registry.i index 7dd02b344c..9420ba2014 100644 --- a/source4/lib/registry/registry.i +++ b/source4/lib/registry/registry.i @@ -16,7 +16,11 @@ along with this program. If not, see . */ -%module registry +%define DOCSTRING +"Access to various registry formats and the Samba registry." +%enddef + +%module(docstring=DOCSTRING) registry %{ /* Include headers */ diff --git a/source4/lib/registry/registry.py b/source4/lib/registry/registry.py index 4c6e735414..0aeefb86c1 100644 --- a/source4/lib/registry/registry.py +++ b/source4/lib/registry/registry.py @@ -3,6 +3,10 @@ # # Don't modify this file, modify the SWIG interface instead. +""" +Access to various registry formats and the Samba registry. +""" + import _registry import new new_instancemethod = new.instancemethod -- cgit