/usr/lib/python2.7/dist-packages/kopano/body.py is in python-kopano 8.5.5-0ubuntu1.
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 | """
Part of the high-level python bindings for Kopano
Copyright 2005 - 2016 Zarafa and its licensors (see LICENSE file)
Copyright 2016 - Kopano and its licensors (see LICENSE file)
Deprecated
"""
import sys
import warnings
from .compat import (
repr as _repr, fake_unicode as _unicode
)
from .errors import _DeprecationWarning
class Body(object):
"""Item Body class"""
def __init__(self, item):
warnings.warn('class Body is deprecated', _DeprecationWarning)
self.item = item
@property
def text(self):
""" Plain text representation """
warnings.warn('Body.text is deprecated', _DeprecationWarning)
return self.item.text
@text.setter
def text(self, x):
warnings.warn('Body.text is deprecated', _DeprecationWarning)
self.item.text = x
@property
def html(self):
""" HTML representation """
warnings.warn('Body.html is deprecated', _DeprecationWarning)
return self.item.html
@html.setter
def html(self, x):
warnings.warn('Body.html is deprecated', _DeprecationWarning)
self.item.html = x
@property
def rtf(self):
""" RTF representation """
warnings.warn('Body.rtf is deprecated', _DeprecationWarning)
return self.item.rtf
@property
def type_(self):
""" original body type: 'text', 'html', 'rtf' or *None* if it
cannot be determined """
warnings.warn('Body.type_ is deprecated', _DeprecationWarning)
return self.item.body_type
def __unicode__(self):
return u'Body()'
def __repr__(self):
return _repr(self)
|