diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-05-22 18:47:18 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-05-23 00:38:02 +0200 |
commit | 37d000d052795063f63a321835d60de55389c1bd (patch) | |
tree | 37e0e407dbc7d17d8a250df0d9850d11fddebeb1 /source4/lib/events/events.py | |
parent | 985d6d8dddd1e9ff1328575e068338ad43211643 (diff) | |
download | samba-37d000d052795063f63a321835d60de55389c1bd.tar.gz samba-37d000d052795063f63a321835d60de55389c1bd.tar.bz2 samba-37d000d052795063f63a321835d60de55389c1bd.zip |
Add docstrings to events python module.
(This used to be commit 7d43d2c7c91c86246b9bb2ae7eda050079767e7a)
Diffstat (limited to 'source4/lib/events/events.py')
-rw-r--r-- | source4/lib/events/events.py | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/source4/lib/events/events.py b/source4/lib/events/events.py index 237726897d..264e0b7cdf 100644 --- a/source4/lib/events/events.py +++ b/source4/lib/events/events.py @@ -61,7 +61,16 @@ class event(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args, **kwargs): + """S.__init__()""" _events.event_swiginit(self,_events.new_event(*args, **kwargs)) + def loop_once(*args, **kwargs): + """S.loop_once() -> int""" + return _events.event_loop_once(*args, **kwargs) + + def loop_wait(*args, **kwargs): + """S.loop_wait() -> int""" + return _events.event_loop_wait(*args, **kwargs) + __swig_destroy__ = _events.delete_event event.loop_once = new_instancemethod(_events.event_loop_once,None,event) event.loop_wait = new_instancemethod(_events.event_loop_wait,None,event) @@ -69,7 +78,13 @@ event_swigregister = _events.event_swigregister event_swigregister(event) event_context_init_byname = _events.event_context_init_byname -event_backend_list = _events.event_backend_list -set_default_backend = _events.set_default_backend + +def event_backend_list(*args): + """event_backend_list() -> list""" + return _events.event_backend_list(*args) + +def set_default_backend(*args, **kwargs): + """event_set_default_backend(name) -> None""" + return _events.set_default_backend(*args, **kwargs) |