~ubuntu-branches/ubuntu/vivid/ctdb/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/tdb/swig/tdb.py

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Parent
  • Date: 2010-02-10 19:39:13 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100210193913-c2kyhrx49cj64z72
Tags: 1.0.111.really.1.0.108-1
* Back to 1.0.108 which works better with samba 3.4.x and 3.5.0
  (See <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/
  2010-February/009100.html>)
* Cheery pick some commits from 1.0.108-3 to 1.0.111-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This file was created automatically by SWIG 1.3.28.
 
2
# Don't modify this file, modify the SWIG interface instead.
 
3
# This file is compatible with both classic and new-style classes.
 
4
 
 
5
import _tdb
 
6
import new
 
7
new_instancemethod = new.instancemethod
 
8
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
9
    if (name == "thisown"): return self.this.own(value)
 
10
    if (name == "this"):
 
11
        if type(value).__name__ == 'PySwigObject':
 
12
            self.__dict__[name] = value
 
13
            return
 
14
    method = class_type.__swig_setmethods__.get(name,None)
 
15
    if method: return method(self,value)
 
16
    if (not static) or hasattr(self,name):
 
17
        self.__dict__[name] = value
 
18
    else:
 
19
        raise AttributeError("You cannot add attributes to %s" % self)
 
20
 
 
21
def _swig_setattr(self,class_type,name,value):
 
22
    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
23
 
 
24
def _swig_getattr(self,class_type,name):
 
25
    if (name == "thisown"): return self.this.own()
 
26
    method = class_type.__swig_getmethods__.get(name,None)
 
27
    if method: return method(self)
 
28
    raise AttributeError,name
 
29
 
 
30
import types
 
31
try:
 
32
    _object = types.ObjectType
 
33
    _newclass = 1
 
34
except AttributeError:
 
35
    class _object : pass
 
36
    _newclass = 0
 
37
del types
 
38
 
 
39
 
 
40
TDB_REPLACE = _tdb.TDB_REPLACE
 
41
TDB_INSERT = _tdb.TDB_INSERT
 
42
TDB_MODIFY = _tdb.TDB_MODIFY
 
43
TDB_DEFAULT = _tdb.TDB_DEFAULT
 
44
TDB_CLEAR_IF_FIRST = _tdb.TDB_CLEAR_IF_FIRST
 
45
TDB_INTERNAL = _tdb.TDB_INTERNAL
 
46
TDB_NOLOCK = _tdb.TDB_NOLOCK
 
47
TDB_NOMMAP = _tdb.TDB_NOMMAP
 
48
TDB_CONVERT = _tdb.TDB_CONVERT
 
49
TDB_BIGENDIAN = _tdb.TDB_BIGENDIAN
 
50
 
 
51
open = _tdb.open
 
52
 
 
53
open_ex = _tdb.open_ex
 
54
 
 
55
reopen = _tdb.reopen
 
56
 
 
57
reopen_all = _tdb.reopen_all
 
58
 
 
59
logging_function = _tdb.logging_function
 
60
 
 
61
error = _tdb.error
 
62
 
 
63
errorstr = _tdb.errorstr
 
64
 
 
65
fetch = _tdb.fetch
 
66
 
 
67
delete = _tdb.delete
 
68
 
 
69
store = _tdb.store
 
70
 
 
71
append = _tdb.append
 
72
 
 
73
close = _tdb.close
 
74
 
 
75
firstkey = _tdb.firstkey
 
76
 
 
77
nextkey = _tdb.nextkey
 
78
 
 
79
traverse = _tdb.traverse
 
80
 
 
81
exists = _tdb.exists
 
82
 
 
83
lockall = _tdb.lockall
 
84
 
 
85
unlockall = _tdb.unlockall
 
86
 
 
87
chainlock = _tdb.chainlock
 
88
 
 
89
chainunlock = _tdb.chainunlock
 
90
 
 
91
dump_all = _tdb.dump_all
 
92
 
 
93
printfreelist = _tdb.printfreelist
 
94
 
 
95