summaryrefslogtreecommitdiff
path: root/source4/lib/events/events.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-11 14:31:01 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:49:29 +0100
commit68dc2dc526e146dd0ac68d5d68eb55b601282caf (patch)
tree3cb17dbc091b56cd4293a7d9d095d71c93234094 /source4/lib/events/events.py
parent78a4f5eadad447cd92f27a5fe4311eceea12f1f9 (diff)
downloadsamba-68dc2dc526e146dd0ac68d5d68eb55b601282caf.tar.gz
samba-68dc2dc526e146dd0ac68d5d68eb55b601282caf.tar.bz2
samba-68dc2dc526e146dd0ac68d5d68eb55b601282caf.zip
r26399: Use -O option for SWIG (less evil generated code).
(This used to be commit 3378b6a559272cb702b52966692bf423f67a2b41)
Diffstat (limited to 'source4/lib/events/events.py')
-rw-r--r--source4/lib/events/events.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/source4/lib/events/events.py b/source4/lib/events/events.py
index 9cce31fac4..1e41e2d7e7 100644
--- a/source4/lib/events/events.py
+++ b/source4/lib/events/events.py
@@ -2,7 +2,6 @@
# Version 1.3.33
#
# Don't modify this file, modify the SWIG interface instead.
-# This file is compatible with both classic and new-style classes.
import _events
import new
@@ -48,6 +47,16 @@ except AttributeError:
del types
+def _swig_setattr_nondynamic_method(set):
+ def set_attr(self,name,value):
+ if (name == "thisown"): return self.this.own(value)
+ if hasattr(self,name) or (name == "this"):
+ set(self,name,value)
+ else:
+ raise AttributeError("You cannot add attributes to %s" % self)
+ return set_attr
+
+
event_context_init = _events.event_context_init
event_context_init_byname = _events.event_context_init_byname
event_backend_list = _events.event_backend_list