summaryrefslogtreecommitdiff
path: root/source4/lib/events/events.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-28 16:55:45 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-28 11:03:01 -0600
commit57d62f4361822a2f8cbc9635427e4afc2fb503f5 (patch)
treee36f97c0f3b35fa03d635ed85b2e3642c2ae3736 /source4/lib/events/events.py
parent68b698270481f2b033046dcd6e0a293c1cdaf838 (diff)
downloadsamba-57d62f4361822a2f8cbc9635427e4afc2fb503f5.tar.gz
samba-57d62f4361822a2f8cbc9635427e4afc2fb503f5.tar.bz2
samba-57d62f4361822a2f8cbc9635427e4afc2fb503f5.zip
r26625: Wrap some more events functions for Python and add a trivial test for it.
(This used to be commit 7873666a958a0b92c979dba93f3c3e5136e28d29)
Diffstat (limited to 'source4/lib/events/events.py')
-rw-r--r--source4/lib/events/events.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/source4/lib/events/events.py b/source4/lib/events/events.py
index 19494c60b3..d8f70f6319 100644
--- a/source4/lib/events/events.py
+++ b/source4/lib/events/events.py
@@ -57,16 +57,19 @@ def _swig_setattr_nondynamic_method(set):
return set_attr
-class event_context(object):
+class event(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
- def __init__(self): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
- __swig_destroy__ = _events.delete_event_context
-event_context_swigregister = _events.event_context_swigregister
-event_context_swigregister(event_context)
+ def __init__(self, *args, **kwargs):
+ _events.event_swiginit(self,_events.new_event(*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)
+event_swigregister = _events.event_swigregister
+event_swigregister(event)
-event_context_init = _events.event_context_init
event_context_init_byname = _events.event_context_init_byname
event_backend_list = _events.event_backend_list
+set_default_backend = _events.set_default_backend