/usr/lib/python2.7/dist-packages/kolab/kolabobject.py is in python-kolab 1.0.2-10ubuntu6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_kolabobject', [dirname(__file__)])
except ImportError:
import _kolabobject
return _kolabobject
if fp is not None:
try:
_mod = imp.load_module('_kolabobject', fp, pathname, description)
finally:
fp.close()
return _mod
_kolabobject = swig_import_helper()
del swig_import_helper
else:
import _kolabobject
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object:
pass
_newclass = 0
class SwigPyIterator(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _kolabobject.delete_SwigPyIterator
__del__ = lambda self: None
def value(self):
return _kolabobject.SwigPyIterator_value(self)
def incr(self, n=1):
return _kolabobject.SwigPyIterator_incr(self, n)
def decr(self, n=1):
return _kolabobject.SwigPyIterator_decr(self, n)
def distance(self, x):
return _kolabobject.SwigPyIterator_distance(self, x)
def equal(self, x):
return _kolabobject.SwigPyIterator_equal(self, x)
def copy(self):
return _kolabobject.SwigPyIterator_copy(self)
def next(self):
return _kolabobject.SwigPyIterator_next(self)
def __next__(self):
return _kolabobject.SwigPyIterator___next__(self)
def previous(self):
return _kolabobject.SwigPyIterator_previous(self)
def advance(self, n):
return _kolabobject.SwigPyIterator_advance(self, n)
def __eq__(self, x):
return _kolabobject.SwigPyIterator___eq__(self, x)
def __ne__(self, x):
return _kolabobject.SwigPyIterator___ne__(self, x)
def __iadd__(self, n):
return _kolabobject.SwigPyIterator___iadd__(self, n)
def __isub__(self, n):
return _kolabobject.SwigPyIterator___isub__(self, n)
def __add__(self, n):
return _kolabobject.SwigPyIterator___add__(self, n)
def __sub__(self, *args):
return _kolabobject.SwigPyIterator___sub__(self, *args)
def __iter__(self):
return self
SwigPyIterator_swigregister = _kolabobject.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
import kolabformat
class XMLObject(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, XMLObject, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, XMLObject, name)
__repr__ = _swig_repr
def __init__(self):
this = _kolabobject.new_XMLObject()
try:
self.this.append(this)
except Exception:
self.this = this
def getSerializedUID(self):
return _kolabobject.XMLObject_getSerializedUID(self)
def getAttachments(self):
return _kolabobject.XMLObject_getAttachments(self)
def readEvent(self, s, version):
return _kolabobject.XMLObject_readEvent(self, s, version)
def writeEvent(self, *args):
return _kolabobject.XMLObject_writeEvent(self, *args)
def readTodo(self, s, version):
return _kolabobject.XMLObject_readTodo(self, s, version)
def writeTodo(self, *args):
return _kolabobject.XMLObject_writeTodo(self, *args)
def readJournal(self, s, version):
return _kolabobject.XMLObject_readJournal(self, s, version)
def writeJournal(self, *args):
return _kolabobject.XMLObject_writeJournal(self, *args)
def readFreebusy(self, s, version):
return _kolabobject.XMLObject_readFreebusy(self, s, version)
def writeFreebusy(self, *args):
return _kolabobject.XMLObject_writeFreebusy(self, *args)
def pictureAttachmentName(self):
return _kolabobject.XMLObject_pictureAttachmentName(self)
def logoAttachmentName(self):
return _kolabobject.XMLObject_logoAttachmentName(self)
def soundAttachmentName(self):
return _kolabobject.XMLObject_soundAttachmentName(self)
def readContact(self, s, version):
return _kolabobject.XMLObject_readContact(self, s, version)
def writeContact(self, *args):
return _kolabobject.XMLObject_writeContact(self, *args)
def readDistlist(self, s, version):
return _kolabobject.XMLObject_readDistlist(self, s, version)
def writeDistlist(self, *args):
return _kolabobject.XMLObject_writeDistlist(self, *args)
def readNote(self, s, version):
return _kolabobject.XMLObject_readNote(self, s, version)
def writeNote(self, *args):
return _kolabobject.XMLObject_writeNote(self, *args)
def readConfiguration(self, s, version):
return _kolabobject.XMLObject_readConfiguration(self, s, version)
def writeConfiguration(self, *args):
return _kolabobject.XMLObject_writeConfiguration(self, *args)
def readFile(self, s, version):
return _kolabobject.XMLObject_readFile(self, s, version)
def writeFile(self, *args):
return _kolabobject.XMLObject_writeFile(self, *args)
__swig_destroy__ = _kolabobject.delete_XMLObject
__del__ = lambda self: None
XMLObject_swigregister = _kolabobject.XMLObject_swigregister
XMLObject_swigregister(XMLObject)
_kolabobject.KOLAB_FOLDER_TYPE_MAIL_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_MAIL = _kolabobject.KOLAB_FOLDER_TYPE_MAIL
_kolabobject.KOLAB_FOLDER_TYPE_CONTACT_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_CONTACT = _kolabobject.KOLAB_FOLDER_TYPE_CONTACT
_kolabobject.KOLAB_FOLDER_TYPE_EVENT_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_EVENT = _kolabobject.KOLAB_FOLDER_TYPE_EVENT
_kolabobject.KOLAB_FOLDER_TYPE_TASK_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_TASK = _kolabobject.KOLAB_FOLDER_TYPE_TASK
_kolabobject.KOLAB_FOLDER_TYPE_JOURNAL_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_JOURNAL = _kolabobject.KOLAB_FOLDER_TYPE_JOURNAL
_kolabobject.KOLAB_FOLDER_TYPE_NOTE_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_NOTE = _kolabobject.KOLAB_FOLDER_TYPE_NOTE
_kolabobject.KOLAB_FOLDER_TYPE_CONFIGURATION_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_CONFIGURATION = _kolabobject.KOLAB_FOLDER_TYPE_CONFIGURATION
_kolabobject.KOLAB_FOLDER_TYPE_FREEBUSY_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_FREEBUSY = _kolabobject.KOLAB_FOLDER_TYPE_FREEBUSY
_kolabobject.KOLAB_FOLDER_TYPE_FILE_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_FILE = _kolabobject.KOLAB_FOLDER_TYPE_FILE
_kolabobject.KOLAB_FOLDER_TYPE_DEFAULT_SUFFIX_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_DEFAULT_SUFFIX = _kolabobject.KOLAB_FOLDER_TYPE_DEFAULT_SUFFIX
_kolabobject.KOLAB_FOLDER_TYPE_DRAFT_SUFFIX_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_DRAFT_SUFFIX = _kolabobject.KOLAB_FOLDER_TYPE_DRAFT_SUFFIX
_kolabobject.KOLAB_FOLDER_TYPE_SENT_SUFFIX_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_SENT_SUFFIX = _kolabobject.KOLAB_FOLDER_TYPE_SENT_SUFFIX
_kolabobject.KOLAB_FOLDER_TYPE_OUTBOX_SUFFIX_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_OUTBOX_SUFFIX = _kolabobject.KOLAB_FOLDER_TYPE_OUTBOX_SUFFIX
_kolabobject.KOLAB_FOLDER_TYPE_TRASH_SUFFIX_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_TRASH_SUFFIX = _kolabobject.KOLAB_FOLDER_TYPE_TRASH_SUFFIX
_kolabobject.KOLAB_FOLDER_TYPE_JUNK_SUFFIX_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_JUNK_SUFFIX = _kolabobject.KOLAB_FOLDER_TYPE_JUNK_SUFFIX
_kolabobject.KOLAB_FOLDER_TYPE_INBOX_SUFFIX_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_INBOX_SUFFIX = _kolabobject.KOLAB_FOLDER_TYPE_INBOX_SUFFIX
_kolabobject.KOLAB_FOLDER_TYPE_ANNOTATION_swigconstant(_kolabobject)
KOLAB_FOLDER_TYPE_ANNOTATION = _kolabobject.KOLAB_FOLDER_TYPE_ANNOTATION
_kolabobject.X_KOLAB_TYPE_HEADER_swigconstant(_kolabobject)
X_KOLAB_TYPE_HEADER = _kolabobject.X_KOLAB_TYPE_HEADER
_kolabobject.X_KOLAB_MIME_VERSION_HEADER_swigconstant(_kolabobject)
X_KOLAB_MIME_VERSION_HEADER = _kolabobject.X_KOLAB_MIME_VERSION_HEADER
_kolabobject.X_KOLAB_MIME_VERSION_HEADER_COMPAT_swigconstant(_kolabobject)
X_KOLAB_MIME_VERSION_HEADER_COMPAT = _kolabobject.X_KOLAB_MIME_VERSION_HEADER_COMPAT
_kolabobject.KOLAB_VERSION_V2_swigconstant(_kolabobject)
KOLAB_VERSION_V2 = _kolabobject.KOLAB_VERSION_V2
_kolabobject.KOLAB_VERSION_V3_swigconstant(_kolabobject)
KOLAB_VERSION_V3 = _kolabobject.KOLAB_VERSION_V3
_kolabobject.KOLAB_OBJECT_FILENAME_swigconstant(_kolabobject)
KOLAB_OBJECT_FILENAME = _kolabobject.KOLAB_OBJECT_FILENAME
_kolabobject.MIME_TYPE_XCAL_swigconstant(_kolabobject)
MIME_TYPE_XCAL = _kolabobject.MIME_TYPE_XCAL
_kolabobject.MIME_TYPE_XCARD_swigconstant(_kolabobject)
MIME_TYPE_XCARD = _kolabobject.MIME_TYPE_XCARD
_kolabobject.MIME_TYPE_KOLAB_swigconstant(_kolabobject)
MIME_TYPE_KOLAB = _kolabobject.MIME_TYPE_KOLAB
_kolabobject.KOLAB_TYPE_EVENT_swigconstant(_kolabobject)
KOLAB_TYPE_EVENT = _kolabobject.KOLAB_TYPE_EVENT
_kolabobject.KOLAB_TYPE_TASK_swigconstant(_kolabobject)
KOLAB_TYPE_TASK = _kolabobject.KOLAB_TYPE_TASK
_kolabobject.KOLAB_TYPE_JOURNAL_swigconstant(_kolabobject)
KOLAB_TYPE_JOURNAL = _kolabobject.KOLAB_TYPE_JOURNAL
_kolabobject.KOLAB_TYPE_CONTACT_swigconstant(_kolabobject)
KOLAB_TYPE_CONTACT = _kolabobject.KOLAB_TYPE_CONTACT
_kolabobject.KOLAB_TYPE_DISTLIST_V2_swigconstant(_kolabobject)
KOLAB_TYPE_DISTLIST_V2 = _kolabobject.KOLAB_TYPE_DISTLIST_V2
_kolabobject.KOLAB_TYPE_DISTLIST_swigconstant(_kolabobject)
KOLAB_TYPE_DISTLIST = _kolabobject.KOLAB_TYPE_DISTLIST
_kolabobject.KOLAB_TYPE_NOTE_swigconstant(_kolabobject)
KOLAB_TYPE_NOTE = _kolabobject.KOLAB_TYPE_NOTE
_kolabobject.KOLAB_TYPE_CONFIGURATION_swigconstant(_kolabobject)
KOLAB_TYPE_CONFIGURATION = _kolabobject.KOLAB_TYPE_CONFIGURATION
_kolabobject.KOLAB_TYPE_DICT_swigconstant(_kolabobject)
KOLAB_TYPE_DICT = _kolabobject.KOLAB_TYPE_DICT
_kolabobject.KOLAB_TYPE_FREEBUSY_swigconstant(_kolabobject)
KOLAB_TYPE_FREEBUSY = _kolabobject.KOLAB_TYPE_FREEBUSY
_kolabobject.KOLAB_TYPE_FILE_swigconstant(_kolabobject)
KOLAB_TYPE_FILE = _kolabobject.KOLAB_TYPE_FILE
_kolabobject.KOLAB_TYPE_RELATION_swigconstant(_kolabobject)
KOLAB_TYPE_RELATION = _kolabobject.KOLAB_TYPE_RELATION
_kolabobject.KolabV2_swigconstant(_kolabobject)
KolabV2 = _kolabobject.KolabV2
_kolabobject.KolabV3_swigconstant(_kolabobject)
KolabV3 = _kolabobject.KolabV3
_kolabobject.InvalidObject_swigconstant(_kolabobject)
InvalidObject = _kolabobject.InvalidObject
_kolabobject.EventObject_swigconstant(_kolabobject)
EventObject = _kolabobject.EventObject
_kolabobject.TodoObject_swigconstant(_kolabobject)
TodoObject = _kolabobject.TodoObject
_kolabobject.JournalObject_swigconstant(_kolabobject)
JournalObject = _kolabobject.JournalObject
_kolabobject.ContactObject_swigconstant(_kolabobject)
ContactObject = _kolabobject.ContactObject
_kolabobject.DistlistObject_swigconstant(_kolabobject)
DistlistObject = _kolabobject.DistlistObject
_kolabobject.NoteObject_swigconstant(_kolabobject)
NoteObject = _kolabobject.NoteObject
_kolabobject.DictionaryConfigurationObject_swigconstant(_kolabobject)
DictionaryConfigurationObject = _kolabobject.DictionaryConfigurationObject
_kolabobject.FreebusyObject_swigconstant(_kolabobject)
FreebusyObject = _kolabobject.FreebusyObject
_kolabobject.RelationConfigurationObject_swigconstant(_kolabobject)
RelationConfigurationObject = _kolabobject.RelationConfigurationObject
class MIMEObject(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, MIMEObject, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MIMEObject, name)
__repr__ = _swig_repr
def __init__(self):
this = _kolabobject.new_MIMEObject()
try:
self.this.append(this)
except Exception:
self.this = this
def parseMessage(self, msg):
return _kolabobject.MIMEObject_parseMessage(self, msg)
def setObjectType(self, arg2):
return _kolabobject.MIMEObject_setObjectType(self, arg2)
def setVersion(self, arg2):
return _kolabobject.MIMEObject_setVersion(self, arg2)
def getType(self):
return _kolabobject.MIMEObject_getType(self)
def getVersion(self):
return _kolabobject.MIMEObject_getVersion(self)
def getEvent(self):
return _kolabobject.MIMEObject_getEvent(self)
def getTodo(self):
return _kolabobject.MIMEObject_getTodo(self)
def getJournal(self):
return _kolabobject.MIMEObject_getJournal(self)
def getNote(self):
return _kolabobject.MIMEObject_getNote(self)
def getContact(self):
return _kolabobject.MIMEObject_getContact(self)
def getDistlist(self):
return _kolabobject.MIMEObject_getDistlist(self)
def getFreebusy(self):
return _kolabobject.MIMEObject_getFreebusy(self)
def getConfiguration(self):
return _kolabobject.MIMEObject_getConfiguration(self)
def writeEvent(self, *args):
return _kolabobject.MIMEObject_writeEvent(self, *args)
def readEvent(self, s):
return _kolabobject.MIMEObject_readEvent(self, s)
def writeTodo(self, *args):
return _kolabobject.MIMEObject_writeTodo(self, *args)
def readTodo(self, s):
return _kolabobject.MIMEObject_readTodo(self, s)
def writeJournal(self, *args):
return _kolabobject.MIMEObject_writeJournal(self, *args)
def readJournal(self, s):
return _kolabobject.MIMEObject_readJournal(self, s)
def writeNote(self, *args):
return _kolabobject.MIMEObject_writeNote(self, *args)
def readNote(self, s):
return _kolabobject.MIMEObject_readNote(self, s)
def writeContact(self, *args):
return _kolabobject.MIMEObject_writeContact(self, *args)
def readContact(self, s):
return _kolabobject.MIMEObject_readContact(self, s)
def writeDistlist(self, *args):
return _kolabobject.MIMEObject_writeDistlist(self, *args)
def readDistlist(self, s):
return _kolabobject.MIMEObject_readDistlist(self, s)
def writeFreebusy(self, *args):
return _kolabobject.MIMEObject_writeFreebusy(self, *args)
def readFreebusy(self, s):
return _kolabobject.MIMEObject_readFreebusy(self, s)
def writeConfiguration(self, *args):
return _kolabobject.MIMEObject_writeConfiguration(self, *args)
def readConfiguration(self, s):
return _kolabobject.MIMEObject_readConfiguration(self, s)
__swig_destroy__ = _kolabobject.delete_MIMEObject
__del__ = lambda self: None
MIMEObject_swigregister = _kolabobject.MIMEObject_swigregister
MIMEObject_swigregister(MIMEObject)
# This file is compatible with both classic and new-style classes.
|