Update of /cvsroot/mahogany/M/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31061/src/Python
Modified Files:
HeaderInfo.cpp-swig HeaderInfo.py-swig MDialogs.cpp-swig
MDialogs.py-swig MailFolder.cpp-swig MailFolder.py-swig
Message.cpp-swig Message.py-swig MimePart.cpp-swig
MimePart.py-swig MimeType.cpp-swig MimeType.py-swig
SendMessage.cpp-swig SendMessage.py-swig
Log Message:
regenerated with latest swig (1.3.28)
Index: HeaderInfo.cpp-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/HeaderInfo.cpp-swig,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -u -2 -r1.4 -r1.5
--- HeaderInfo.cpp-swig 16 Jan 2006 02:32:27 -0000 1.4
+++ HeaderInfo.cpp-swig 6 Apr 2006 00:09:27 -0000 1.5
@@ -1,5 +1,5 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.27
+ * Version 1.3.28
*
* This file is not intended to be easily readable and contains a number of
@@ -10,4 +10,5 @@
#define SWIGPYTHON
+#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
[...5993 lines suppressed...]
- {
- PyDict_SetItemString(d,"HeaderInfo_Invalid",
SWIG_From_int(static_cast<int >(HeaderInfo::Invalid)));
- }
- {
- PyDict_SetItemString(d,"HeaderInfo_From",
SWIG_From_int(static_cast<int >(HeaderInfo::From)));
- }
- {
- PyDict_SetItemString(d,"HeaderInfo_To", SWIG_From_int(static_cast<int
>(HeaderInfo::To)));
- }
- {
- PyDict_SetItemString(d,"HeaderInfo_Newsgroup",
SWIG_From_int(static_cast<int >(HeaderInfo::Newsgroup)));
- }
+
+ SWIG_Python_SetConstant(d,
"HeaderInfo_Invalid",SWIG_From_int(static_cast<int >(HeaderInfo::Invalid)));
+ SWIG_Python_SetConstant(d, "HeaderInfo_From",SWIG_From_int(static_cast<int
>(HeaderInfo::From)));
+ SWIG_Python_SetConstant(d, "HeaderInfo_To",SWIG_From_int(static_cast<int
>(HeaderInfo::To)));
+ SWIG_Python_SetConstant(d,
"HeaderInfo_Newsgroup",SWIG_From_int(static_cast<int >(HeaderInfo::Newsgroup)));
}
Index: HeaderInfo.py-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/HeaderInfo.py-swig,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -u -2 -r1.2 -r1.3
--- HeaderInfo.py-swig 16 Jan 2006 02:32:27 -0000 1.2
+++ HeaderInfo.py-swig 6 Apr 2006 00:09:27 -0000 1.3
@@ -1,18 +1,18 @@
-# This file was created automatically by SWIG 1.3.27.
+# This file was created automatically by SWIG 1.3.28.
# Don't modify this file, modify the SWIG interface instead.
+# This file is compatible with both classic and new-style classes.
import _HeaderInfo
-
-# This file is compatible with both classic and new-style classes.
+import new
+new_instancemethod = new.instancemethod
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "thisown"): return self.this.own(value)
if (name == "this"):
- if isinstance(value, class_type):
- self.__dict__[name] = value.this
- if hasattr(value,"thisown"): self.__dict__["thisown"] =
value.thisown
- del value.thisown
+ if type(value).__name__ == 'PySwigObject':
+ self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
- if (not static) or hasattr(self,name) or (name == "thisown"):
+ if (not static) or hasattr(self,name):
self.__dict__[name] = value
else:
@@ -23,4 +23,5 @@
def _swig_getattr(self,class_type,name):
+ if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
@@ -43,8 +44,11 @@
__getattr__ = lambda self, name: _swig_getattr(self, HeaderInfo, name)
def __repr__(self):
- return "<%s.%s; proxy of C++ HeaderInfo instance at %s>" %
(self.__class__.__module__, self.__class__.__name__, self.this,)
+ try: strthis = "at 0x%x" %( self.this, )
+ except: strthis = ""
+ return "<%s.%s; proxy of C++ HeaderInfo instance %s>" %
(self.__class__.__module__, self.__class__.__name__, strthis,)
def __init__(self, *args):
- _swig_setattr(self, HeaderInfo, 'this',
_HeaderInfo.new_HeaderInfo(*args))
- _swig_setattr(self, HeaderInfo, 'thisown', 1)
+ this = _HeaderInfo.new_HeaderInfo(*args)
+ try: self.this.append(this)
+ except: self.this = this
def GetSubject(*args): return _HeaderInfo.HeaderInfo_GetSubject(*args)
def GetFrom(*args): return _HeaderInfo.HeaderInfo_GetFrom(*args)
@@ -69,16 +73,7 @@
__swig_getmethods__["GetFromOrTo"] = lambda x:
_HeaderInfo.HeaderInfo_GetFromOrTo
if _newclass:GetFromOrTo = staticmethod(_HeaderInfo.HeaderInfo_GetFromOrTo)
- def __del__(self, destroy=_HeaderInfo.delete_HeaderInfo):
- try:
- if self.thisown: destroy(self)
- except: pass
-
-
-class HeaderInfoPtr(HeaderInfo):
- def __init__(self, this):
- _swig_setattr(self, HeaderInfo, 'this', this)
- if not hasattr(self,"thisown"): _swig_setattr(self, HeaderInfo,
'thisown', 0)
- self.__class__ = HeaderInfo
-_HeaderInfo.HeaderInfo_swigregister(HeaderInfoPtr)
+ __swig_destroy__ = _HeaderInfo.delete_HeaderInfo
+ __del__ = lambda self : None;
+_HeaderInfo.HeaderInfo_swigregister(HeaderInfo)
HeaderInfo_GetFromOrTo = _HeaderInfo.HeaderInfo_GetFromOrTo
@@ -89,7 +84,9 @@
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, HeaderInfoList, name)
- def __init__(self): raise RuntimeError, "No constructor defined"
+ def __init__(self): raise AttributeError, "No constructor defined"
def __repr__(self):
- return "<%s.%s; proxy of C++ HeaderInfoList instance at %s>" %
(self.__class__.__module__, self.__class__.__name__, self.this,)
+ try: strthis = "at 0x%x" %( self.this, )
+ except: strthis = ""
+ return "<%s.%s; proxy of C++ HeaderInfoList instance %s>" %
(self.__class__.__module__, self.__class__.__name__, strthis,)
__swig_getmethods__["Create"] = lambda x: _HeaderInfo.HeaderInfoList_Create
if _newclass:Create = staticmethod(_HeaderInfo.HeaderInfoList_Create)
@@ -122,16 +119,7 @@
def IsInCache(*args): return _HeaderInfo.HeaderInfoList_IsInCache(*args)
def ReallyGet(*args): return _HeaderInfo.HeaderInfoList_ReallyGet(*args)
- def __del__(self, destroy=_HeaderInfo.delete_HeaderInfoList):
- try:
- if self.thisown: destroy(self)
- except: pass
-
-
-class HeaderInfoListPtr(HeaderInfoList):
- def __init__(self, this):
- _swig_setattr(self, HeaderInfoList, 'this', this)
- if not hasattr(self,"thisown"): _swig_setattr(self, HeaderInfoList,
'thisown', 0)
- self.__class__ = HeaderInfoList
-_HeaderInfo.HeaderInfoList_swigregister(HeaderInfoListPtr)
+ __swig_destroy__ = _HeaderInfo.delete_HeaderInfoList
+ __del__ = lambda self : None;
+_HeaderInfo.HeaderInfoList_swigregister(HeaderInfoList)
HeaderInfoList_Create = _HeaderInfo.HeaderInfoList_Create
Index: MDialogs.cpp-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/MDialogs.cpp-swig,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -u -2 -r1.4 -r1.5
--- MDialogs.cpp-swig 16 Jan 2006 02:32:27 -0000 1.4
+++ MDialogs.cpp-swig 6 Apr 2006 00:09:28 -0000 1.5
@@ -1,5 +1,5 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.27
+ * Version 1.3.28
*
* This file is not intended to be easily readable and contains a number of
@@ -10,4 +10,5 @@
#define SWIGPYTHON
+#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
[...2975 lines suppressed...]
- /*
-----------------------------------------------------------------------------*
- * Initialize type list
- *
-----------------------------------------------------------------------------*/
-
#ifdef __cplusplus
}
@@ -2019,7 +3074,5 @@
#endif
SWIGEXPORT void SWIG_init(void) {
- static PyObject *SWIG_globals = 0;
PyObject *m, *d;
- if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
/* Fix SwigMethods to carry the callback ptrs when needed */
@@ -2032,4 +3085,5 @@
SWIG_InstallConstants(d,swig_const_table);
+
}
Index: MDialogs.py-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/MDialogs.py-swig,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -u -2 -r1.3 -r1.4
--- MDialogs.py-swig 16 Jan 2006 02:32:27 -0000 1.3
+++ MDialogs.py-swig 6 Apr 2006 00:09:28 -0000 1.4
@@ -1,18 +1,18 @@
-# This file was created automatically by SWIG 1.3.27.
+# This file was created automatically by SWIG 1.3.28.
# Don't modify this file, modify the SWIG interface instead.
+# This file is compatible with both classic and new-style classes.
import _MDialogs
-
-# This file is compatible with both classic and new-style classes.
+import new
+new_instancemethod = new.instancemethod
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "thisown"): return self.this.own(value)
if (name == "this"):
- if isinstance(value, class_type):
- self.__dict__[name] = value.this
- if hasattr(value,"thisown"): self.__dict__["thisown"] =
value.thisown
- del value.thisown
+ if type(value).__name__ == 'PySwigObject':
+ self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
- if (not static) or hasattr(self,name) or (name == "thisown"):
+ if (not static) or hasattr(self,name):
self.__dict__[name] = value
else:
@@ -23,4 +23,5 @@
def _swig_getattr(self,class_type,name):
+ if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
Index: MailFolder.cpp-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/MailFolder.cpp-swig,v
retrieving revision 1.56
retrieving revision 1.57
diff -b -u -2 -r1.56 -r1.57
--- MailFolder.cpp-swig 16 Jan 2006 02:32:27 -0000 1.56
+++ MailFolder.cpp-swig 6 Apr 2006 00:09:28 -0000 1.57
@@ -1,5 +1,5 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.27
+ * Version 1.3.28
*
* This file is not intended to be easily readable and contains a number of
@@ -10,4 +10,5 @@
#define SWIGPYTHON
+#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
[...12028 lines suppressed...]
+ SWIG_Python_SetConstant(d,
"MailFolder_REPLY_ALL",SWIG_From_int(static_cast<int >(MailFolder::REPLY_ALL)));
+ SWIG_Python_SetConstant(d,
"MailFolder_REPLY_LIST",SWIG_From_int(static_cast<int
>(MailFolder::REPLY_LIST)));
+ SWIG_Python_SetConstant(d,
"MailFolder_FOLLOWUP_TO_NEWSGROUP",SWIG_From_int(static_cast<int
>(MailFolder::FOLLOWUP_TO_NEWSGROUP)));
+ SWIG_Python_SetConstant(d, "MailFolder_REPLY",SWIG_From_int(static_cast<int
>(MailFolder::REPLY)));
+ SWIG_Python_SetConstant(d, "MailFolder_Normal",SWIG_From_int(static_cast<int
>(MailFolder::Normal)));
+ SWIG_Python_SetConstant(d,
"MailFolder_ReadOnly",SWIG_From_int(static_cast<int >(MailFolder::ReadOnly)));
+ SWIG_Python_SetConstant(d,
"MailFolder_HalfOpen",SWIG_From_int(static_cast<int >(MailFolder::HalfOpen)));
+ SWIG_Python_SetConstant(d,
"MailFolder_SEQ_UID",SWIG_From_int(static_cast<int >(MailFolder::SEQ_UID)));
+ SWIG_Python_SetConstant(d,
"MailFolder_SEQ_MSGNO",SWIG_From_int(static_cast<int >(MailFolder::SEQ_MSGNO)));
+ SWIG_Python_SetConstant(d,
"MailFolder_SEARCH_MSGNO",SWIG_From_int(static_cast<int
>(MailFolder::SEARCH_MSGNO)));
+ SWIG_Python_SetConstant(d,
"MailFolder_SEARCH_SET",SWIG_From_int(static_cast<int
>(MailFolder::SEARCH_SET)));
+ SWIG_Python_SetConstant(d,
"MailFolder_SEARCH_UNSET",SWIG_From_int(static_cast<int
>(MailFolder::SEARCH_UNSET)));
+ SWIG_Python_SetConstant(d,
"MailFolder_SEARCH_UNDELETED",SWIG_From_int(static_cast<int
>(MailFolder::SEARCH_UNDELETED)));
+ SWIG_Python_SetConstant(d,
"MailFolder_SEARCH_UID",SWIG_From_int(static_cast<int
>(MailFolder::SEARCH_UID)));
+ SWIG_Python_SetConstant(d,
"MailFolder_DELETE_ALLOW_TRASH",SWIG_From_int(static_cast<int
>(MailFolder::DELETE_ALLOW_TRASH)));
+ SWIG_Python_SetConstant(d,
"MailFolder_DELETE_NO_TRASH",SWIG_From_int(static_cast<int
>(MailFolder::DELETE_NO_TRASH)));
+ SWIG_Python_SetConstant(d,
"MailFolder_DELETE_NO_EXPUNGE",SWIG_From_int(static_cast<int
>(MailFolder::DELETE_NO_EXPUNGE)));
+ SWIG_Python_SetConstant(d,
"MailFolder_DELETE_EXPUNGE",SWIG_From_int(static_cast<int
>(MailFolder::DELETE_EXPUNGE)));
}
Index: MailFolder.py-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/MailFolder.py-swig,v
retrieving revision 1.51
retrieving revision 1.52
diff -b -u -2 -r1.51 -r1.52
--- MailFolder.py-swig 16 Jan 2006 02:32:28 -0000 1.51
+++ MailFolder.py-swig 6 Apr 2006 00:09:28 -0000 1.52
@@ -1,18 +1,18 @@
-# This file was created automatically by SWIG 1.3.27.
+# This file was created automatically by SWIG 1.3.28.
# Don't modify this file, modify the SWIG interface instead.
+# This file is compatible with both classic and new-style classes.
import _MailFolder
-
-# This file is compatible with both classic and new-style classes.
+import new
+new_instancemethod = new.instancemethod
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "thisown"): return self.this.own(value)
if (name == "this"):
- if isinstance(value, class_type):
- self.__dict__[name] = value.this
- if hasattr(value,"thisown"): self.__dict__["thisown"] =
value.thisown
- del value.thisown
+ if type(value).__name__ == 'PySwigObject':
+ self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
- if (not static) or hasattr(self,name) or (name == "thisown"):
+ if (not static) or hasattr(self,name):
self.__dict__[name] = value
else:
@@ -23,4 +23,5 @@
def _swig_getattr(self,class_type,name):
+ if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
@@ -42,7 +43,9 @@
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MailFolder, name)
- def __init__(self): raise RuntimeError, "No constructor defined"
+ def __init__(self): raise AttributeError, "No constructor defined"
def __repr__(self):
- return "<%s.%s; proxy of C++ MailFolder instance at %s>" %
(self.__class__.__module__, self.__class__.__name__, self.this,)
+ try: strthis = "at 0x%x" %( self.this, )
+ except: strthis = ""
+ return "<%s.%s; proxy of C++ MailFolder instance %s>" %
(self.__class__.__module__, self.__class__.__name__, strthis,)
MSG_STAT_NEW = _MailFolder.MailFolder_MSG_STAT_NEW
MSG_STAT_SEEN = _MailFolder.MailFolder_MSG_STAT_SEEN
@@ -181,16 +184,7 @@
def SuspendUpdates(*args): return
_MailFolder.MailFolder_SuspendUpdates(*args)
def ResumeUpdates(*args): return
_MailFolder.MailFolder_ResumeUpdates(*args)
- def __del__(self, destroy=_MailFolder.delete_MailFolder):
- try:
- if self.thisown: destroy(self)
- except: pass
-
-
-class MailFolderPtr(MailFolder):
- def __init__(self, this):
- _swig_setattr(self, MailFolder, 'this', this)
- if not hasattr(self,"thisown"): _swig_setattr(self, MailFolder,
'thisown', 0)
- self.__class__ = MailFolder
-_MailFolder.MailFolder_swigregister(MailFolderPtr)
+ __swig_destroy__ = _MailFolder.delete_MailFolder
+ __del__ = lambda self : None;
+_MailFolder.MailFolder_swigregister(MailFolder)
MailFolder_OpenFolder = _MailFolder.MailFolder_OpenFolder
@@ -256,20 +250,14 @@
__getattr__ = lambda self, name: _swig_getattr(self, SuspendFolderUpdates,
name)
def __repr__(self):
- return "<%s.%s; proxy of C++ SuspendFolderUpdates instance at %s>" %
(self.__class__.__module__, self.__class__.__name__, self.this,)
+ try: strthis = "at 0x%x" %( self.this, )
+ except: strthis = ""
+ return "<%s.%s; proxy of C++ SuspendFolderUpdates instance %s>" %
(self.__class__.__module__, self.__class__.__name__, strthis,)
def __init__(self, *args):
- _swig_setattr(self, SuspendFolderUpdates, 'this',
_MailFolder.new_SuspendFolderUpdates(*args))
- _swig_setattr(self, SuspendFolderUpdates, 'thisown', 1)
- def __del__(self, destroy=_MailFolder.delete_SuspendFolderUpdates):
- try:
- if self.thisown: destroy(self)
- except: pass
-
-
-class SuspendFolderUpdatesPtr(SuspendFolderUpdates):
- def __init__(self, this):
- _swig_setattr(self, SuspendFolderUpdates, 'this', this)
- if not hasattr(self,"thisown"): _swig_setattr(self,
SuspendFolderUpdates, 'thisown', 0)
- self.__class__ = SuspendFolderUpdates
-_MailFolder.SuspendFolderUpdates_swigregister(SuspendFolderUpdatesPtr)
+ this = _MailFolder.new_SuspendFolderUpdates(*args)
+ try: self.this.append(this)
+ except: self.this = this
+ __swig_destroy__ = _MailFolder.delete_SuspendFolderUpdates
+ __del__ = lambda self : None;
+_MailFolder.SuspendFolderUpdates_swigregister(SuspendFolderUpdates)
Index: Message.cpp-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/Message.cpp-swig,v
retrieving revision 1.35
retrieving revision 1.36
diff -b -u -2 -r1.35 -r1.36
--- Message.cpp-swig 16 Jan 2006 02:32:28 -0000 1.35
+++ Message.cpp-swig 6 Apr 2006 00:09:28 -0000 1.36
@@ -1,5 +1,5 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.27
+ * Version 1.3.28
*
* This file is not intended to be easily readable and contains a number of
@@ -10,4 +10,5 @@
#define SWIGPYTHON
+#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
[...6547 lines suppressed...]
+ SWIG_Python_SetConstant(d, "MAT_SENDER",SWIG_From_int(static_cast<int
>(MAT_SENDER)));
+ SWIG_Python_SetConstant(d, "MAT_RETURNPATH",SWIG_From_int(static_cast<int
>(MAT_RETURNPATH)));
+ SWIG_Python_SetConstant(d, "MAT_REPLYTO",SWIG_From_int(static_cast<int
>(MAT_REPLYTO)));
+ SWIG_Python_SetConstant(d, "MAT_TO",SWIG_From_int(static_cast<int
>(MAT_TO)));
+ SWIG_Python_SetConstant(d, "MAT_CC",SWIG_From_int(static_cast<int
>(MAT_CC)));
+ SWIG_Python_SetConstant(d, "MAT_BCC",SWIG_From_int(static_cast<int
>(MAT_BCC)));
+ SWIG_Python_SetConstant(d,
"HeaderIterator_Collapse",SWIG_From_int(static_cast<int
>(HeaderIterator::Collapse)));
+ SWIG_Python_SetConstant(d,
"HeaderIterator_MultiLineOk",SWIG_From_int(static_cast<int
>(HeaderIterator::MultiLineOk)));
+ SWIG_Python_SetConstant(d,
"Message_MSG_TYPETEXT",SWIG_From_int(static_cast<int >(Message::MSG_TYPETEXT)));
+ SWIG_Python_SetConstant(d,
"Message_MSG_TYPEMULTIPART",SWIG_From_int(static_cast<int
>(Message::MSG_TYPEMULTIPART)));
+ SWIG_Python_SetConstant(d,
"Message_MSG_TYPEMESSAGE",SWIG_From_int(static_cast<int
>(Message::MSG_TYPEMESSAGE)));
+ SWIG_Python_SetConstant(d,
"Message_MSG_TYPEAPPLICATION",SWIG_From_int(static_cast<int
>(Message::MSG_TYPEAPPLICATION)));
+ SWIG_Python_SetConstant(d,
"Message_MSG_TYPEAUDIO",SWIG_From_int(static_cast<int
>(Message::MSG_TYPEAUDIO)));
+ SWIG_Python_SetConstant(d,
"Message_MSG_TYPEIMAGE",SWIG_From_int(static_cast<int
>(Message::MSG_TYPEIMAGE)));
+ SWIG_Python_SetConstant(d,
"Message_MSG_TYPEVIDEO",SWIG_From_int(static_cast<int
>(Message::MSG_TYPEVIDEO)));
+ SWIG_Python_SetConstant(d,
"Message_MSG_TYPEMODEL",SWIG_From_int(static_cast<int
>(Message::MSG_TYPEMODEL)));
+ SWIG_Python_SetConstant(d,
"Message_MSG_TYPEOTHER",SWIG_From_int(static_cast<int
>(Message::MSG_TYPEOTHER)));
+ SWIG_Python_SetConstant(d,
"Message_MSG_TYPEINVALID",SWIG_From_int(static_cast<int
>(Message::MSG_TYPEINVALID)));
}
Index: Message.py-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/Message.py-swig,v
retrieving revision 1.33
retrieving revision 1.34
diff -b -u -2 -r1.33 -r1.34
--- Message.py-swig 16 Jan 2006 02:32:28 -0000 1.33
+++ Message.py-swig 6 Apr 2006 00:09:28 -0000 1.34
@@ -1,18 +1,18 @@
-# This file was created automatically by SWIG 1.3.27.
+# This file was created automatically by SWIG 1.3.28.
# Don't modify this file, modify the SWIG interface instead.
+# This file is compatible with both classic and new-style classes.
import _Message
-
-# This file is compatible with both classic and new-style classes.
+import new
+new_instancemethod = new.instancemethod
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "thisown"): return self.this.own(value)
if (name == "this"):
- if isinstance(value, class_type):
- self.__dict__[name] = value.this
- if hasattr(value,"thisown"): self.__dict__["thisown"] =
value.thisown
- del value.thisown
+ if type(value).__name__ == 'PySwigObject':
+ self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
- if (not static) or hasattr(self,name) or (name == "thisown"):
+ if (not static) or hasattr(self,name):
self.__dict__[name] = value
else:
@@ -23,4 +23,5 @@
def _swig_getattr(self,class_type,name):
+ if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
@@ -50,25 +51,19 @@
__getattr__ = lambda self, name: _swig_getattr(self, HeaderIterator, name)
def __repr__(self):
- return "<%s.%s; proxy of C++ HeaderIterator instance at %s>" %
(self.__class__.__module__, self.__class__.__name__, self.this,)
+ try: strthis = "at 0x%x" %( self.this, )
+ except: strthis = ""
+ return "<%s.%s; proxy of C++ HeaderIterator instance %s>" %
(self.__class__.__module__, self.__class__.__name__, strthis,)
Collapse = _Message.HeaderIterator_Collapse
MultiLineOk = _Message.HeaderIterator_MultiLineOk
def __init__(self, *args):
- _swig_setattr(self, HeaderIterator, 'this',
_Message.new_HeaderIterator(*args))
- _swig_setattr(self, HeaderIterator, 'thisown', 1)
+ this = _Message.new_HeaderIterator(*args)
+ try: self.this.append(this)
+ except: self.this = this
def GetNext(*args): return _Message.HeaderIterator_GetNext(*args)
def GetAll(*args): return _Message.HeaderIterator_GetAll(*args)
def Reset(*args): return _Message.HeaderIterator_Reset(*args)
- def __del__(self, destroy=_Message.delete_HeaderIterator):
- try:
- if self.thisown: destroy(self)
- except: pass
-
-
-class HeaderIteratorPtr(HeaderIterator):
- def __init__(self, this):
- _swig_setattr(self, HeaderIterator, 'this', this)
- if not hasattr(self,"thisown"): _swig_setattr(self, HeaderIterator,
'thisown', 0)
- self.__class__ = HeaderIterator
-_Message.HeaderIterator_swigregister(HeaderIteratorPtr)
+ __swig_destroy__ = _Message.delete_HeaderIterator
+ __del__ = lambda self : None;
+_Message.HeaderIterator_swigregister(HeaderIterator)
class Message(_object):
@@ -77,7 +72,9 @@
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Message, name)
- def __init__(self): raise RuntimeError, "No constructor defined"
+ def __init__(self): raise AttributeError, "No constructor defined"
def __repr__(self):
- return "<%s.%s; proxy of C++ Message instance at %s>" %
(self.__class__.__module__, self.__class__.__name__, self.this,)
+ try: strthis = "at 0x%x" %( self.this, )
+ except: strthis = ""
+ return "<%s.%s; proxy of C++ Message instance %s>" %
(self.__class__.__module__, self.__class__.__name__, strthis,)
__swig_getmethods__["Create"] = lambda x: _Message.Message_Create
if _newclass:Create = staticmethod(_Message.Message_Create)
@@ -140,11 +137,5 @@
__swig_getmethods__["FindAddress"] = lambda x: _Message.Message_FindAddress
if _newclass:FindAddress = staticmethod(_Message.Message_FindAddress)
-
-class MessagePtr(Message):
- def __init__(self, this):
- _swig_setattr(self, Message, 'this', this)
- if not hasattr(self,"thisown"): _swig_setattr(self, Message,
'thisown', 0)
- self.__class__ = Message
-_Message.Message_swigregister(MessagePtr)
+_Message.Message_swigregister(Message)
Message_Create = _Message.Message_Create
Index: MimePart.cpp-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/MimePart.cpp-swig,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -u -2 -r1.4 -r1.5
--- MimePart.cpp-swig 16 Jan 2006 02:32:28 -0000 1.4
+++ MimePart.cpp-swig 6 Apr 2006 00:09:28 -0000 1.5
@@ -1,5 +1,5 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.27
+ * Version 1.3.28
*
* This file is not intended to be easily readable and contains a number of
@@ -10,4 +10,5 @@
#define SWIGPYTHON
+#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
[...3888 lines suppressed...]
- }
- {
- PyDict_SetItemString(d,"MIME_ENC_QUOTEDPRINTABLE",
SWIG_From_int(static_cast<int >(MIME_ENC_QUOTEDPRINTABLE)));
- }
- {
- PyDict_SetItemString(d,"MIME_ENC_OTHER", SWIG_From_int(static_cast<int
>(MIME_ENC_OTHER)));
- }
- {
- PyDict_SetItemString(d,"MIME_ENC_INVALID",
SWIG_From_int(static_cast<int >(MIME_ENC_INVALID)));
- }
+
+ SWIG_Python_SetConstant(d, "MIME_ENC_7BIT",SWIG_From_int(static_cast<int
>(MIME_ENC_7BIT)));
+ SWIG_Python_SetConstant(d, "MIME_ENC_8BIT",SWIG_From_int(static_cast<int
>(MIME_ENC_8BIT)));
+ SWIG_Python_SetConstant(d, "MIME_ENC_BINARY",SWIG_From_int(static_cast<int
>(MIME_ENC_BINARY)));
+ SWIG_Python_SetConstant(d, "MIME_ENC_BASE64",SWIG_From_int(static_cast<int
>(MIME_ENC_BASE64)));
+ SWIG_Python_SetConstant(d,
"MIME_ENC_QUOTEDPRINTABLE",SWIG_From_int(static_cast<int
>(MIME_ENC_QUOTEDPRINTABLE)));
+ SWIG_Python_SetConstant(d, "MIME_ENC_OTHER",SWIG_From_int(static_cast<int
>(MIME_ENC_OTHER)));
+ SWIG_Python_SetConstant(d, "MIME_ENC_INVALID",SWIG_From_int(static_cast<int
>(MIME_ENC_INVALID)));
}
Index: MimePart.py-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/MimePart.py-swig,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -u -2 -r1.2 -r1.3
--- MimePart.py-swig 16 Jan 2006 02:32:28 -0000 1.2
+++ MimePart.py-swig 6 Apr 2006 00:09:28 -0000 1.3
@@ -1,18 +1,18 @@
-# This file was created automatically by SWIG 1.3.27.
+# This file was created automatically by SWIG 1.3.28.
# Don't modify this file, modify the SWIG interface instead.
+# This file is compatible with both classic and new-style classes.
import _MimePart
-
-# This file is compatible with both classic and new-style classes.
+import new
+new_instancemethod = new.instancemethod
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "thisown"): return self.this.own(value)
if (name == "this"):
- if isinstance(value, class_type):
- self.__dict__[name] = value.this
- if hasattr(value,"thisown"): self.__dict__["thisown"] =
value.thisown
- del value.thisown
+ if type(value).__name__ == 'PySwigObject':
+ self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
- if (not static) or hasattr(self,name) or (name == "thisown"):
+ if (not static) or hasattr(self,name):
self.__dict__[name] = value
else:
@@ -23,4 +23,5 @@
def _swig_getattr(self,class_type,name):
+ if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
@@ -43,8 +44,11 @@
__getattr__ = lambda self, name: _swig_getattr(self, MimeParameter, name)
def __repr__(self):
- return "<%s.%s; proxy of C++ MimeParameter instance at %s>" %
(self.__class__.__module__, self.__class__.__name__, self.this,)
+ try: strthis = "at 0x%x" %( self.this, )
+ except: strthis = ""
+ return "<%s.%s; proxy of C++ MimeParameter instance %s>" %
(self.__class__.__module__, self.__class__.__name__, strthis,)
def __init__(self, *args):
- _swig_setattr(self, MimeParameter, 'this',
_MimePart.new_MimeParameter(*args))
- _swig_setattr(self, MimeParameter, 'thisown', 1)
+ this = _MimePart.new_MimeParameter(*args)
+ try: self.this.append(this)
+ except: self.this = this
__swig_setmethods__["name"] = _MimePart.MimeParameter_name_set
__swig_getmethods__["name"] = _MimePart.MimeParameter_name_get
@@ -53,16 +57,7 @@
__swig_getmethods__["value"] = _MimePart.MimeParameter_value_get
if _newclass:value = property(_MimePart.MimeParameter_value_get,
_MimePart.MimeParameter_value_set)
- def __del__(self, destroy=_MimePart.delete_MimeParameter):
- try:
- if self.thisown: destroy(self)
- except: pass
-
-
-class MimeParameterPtr(MimeParameter):
- def __init__(self, this):
- _swig_setattr(self, MimeParameter, 'this', this)
- if not hasattr(self,"thisown"): _swig_setattr(self, MimeParameter,
'thisown', 0)
- self.__class__ = MimeParameter
-_MimePart.MimeParameter_swigregister(MimeParameterPtr)
+ __swig_destroy__ = _MimePart.delete_MimeParameter
+ __del__ = lambda self : None;
+_MimePart.MimeParameter_swigregister(MimeParameter)
MIME_ENC_7BIT = _MimePart.MIME_ENC_7BIT
@@ -78,12 +73,11 @@
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, MimePart, name)
- def __init__(self): raise RuntimeError, "No constructor defined"
+ def __init__(self): raise AttributeError, "No constructor defined"
def __repr__(self):
- return "<%s.%s; proxy of C++ MimePart instance at %s>" %
(self.__class__.__module__, self.__class__.__name__, self.this,)
- def __del__(self, destroy=_MimePart.delete_MimePart):
- try:
- if self.thisown: destroy(self)
- except: pass
-
+ try: strthis = "at 0x%x" %( self.this, )
+ except: strthis = ""
+ return "<%s.%s; proxy of C++ MimePart instance %s>" %
(self.__class__.__module__, self.__class__.__name__, strthis,)
+ __swig_destroy__ = _MimePart.delete_MimePart
+ __del__ = lambda self : None;
def GetParent(*args): return _MimePart.MimePart_GetParent(*args)
def GetNext(*args): return _MimePart.MimePart_GetNext(*args)
@@ -107,11 +101,5 @@
def GetTextEncoding(*args): return
_MimePart.MimePart_GetTextEncoding(*args)
def GetNumberOfLines(*args): return
_MimePart.MimePart_GetNumberOfLines(*args)
-
-class MimePartPtr(MimePart):
- def __init__(self, this):
- _swig_setattr(self, MimePart, 'this', this)
- if not hasattr(self,"thisown"): _swig_setattr(self, MimePart,
'thisown', 0)
- self.__class__ = MimePart
-_MimePart.MimePart_swigregister(MimePartPtr)
+_MimePart.MimePart_swigregister(MimePart)
Index: MimeType.cpp-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/MimeType.cpp-swig,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -u -2 -r1.2 -r1.3
--- MimeType.cpp-swig 16 Jan 2006 02:32:28 -0000 1.2
+++ MimeType.cpp-swig 6 Apr 2006 00:09:28 -0000 1.3
@@ -1,5 +1,5 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.27
+ * Version 1.3.28
*
* This file is not intended to be easily readable and contains a number of
@@ -10,4 +10,5 @@
#define SWIGPYTHON
+#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
[...3979 lines suppressed...]
- }
+
+ SWIG_Python_SetConstant(d, "MimeType_TEXT",SWIG_From_int(static_cast<int
>(MimeType::TEXT)));
+ SWIG_Python_SetConstant(d,
"MimeType_MULTIPART",SWIG_From_int(static_cast<int >(MimeType::MULTIPART)));
+ SWIG_Python_SetConstant(d, "MimeType_MESSAGE",SWIG_From_int(static_cast<int
>(MimeType::MESSAGE)));
+ SWIG_Python_SetConstant(d,
"MimeType_APPLICATION",SWIG_From_int(static_cast<int >(MimeType::APPLICATION)));
+ SWIG_Python_SetConstant(d, "MimeType_AUDIO",SWIG_From_int(static_cast<int
>(MimeType::AUDIO)));
+ SWIG_Python_SetConstant(d, "MimeType_IMAGE",SWIG_From_int(static_cast<int
>(MimeType::IMAGE)));
+ SWIG_Python_SetConstant(d, "MimeType_VIDEO",SWIG_From_int(static_cast<int
>(MimeType::VIDEO)));
+ SWIG_Python_SetConstant(d, "MimeType_MODEL",SWIG_From_int(static_cast<int
>(MimeType::MODEL)));
+ SWIG_Python_SetConstant(d, "MimeType_OTHER",SWIG_From_int(static_cast<int
>(MimeType::OTHER)));
+ SWIG_Python_SetConstant(d, "MimeType_CUSTOM1",SWIG_From_int(static_cast<int
>(MimeType::CUSTOM1)));
+ SWIG_Python_SetConstant(d, "MimeType_CUSTOM2",SWIG_From_int(static_cast<int
>(MimeType::CUSTOM2)));
+ SWIG_Python_SetConstant(d, "MimeType_CUSTOM3",SWIG_From_int(static_cast<int
>(MimeType::CUSTOM3)));
+ SWIG_Python_SetConstant(d, "MimeType_CUSTOM4",SWIG_From_int(static_cast<int
>(MimeType::CUSTOM4)));
+ SWIG_Python_SetConstant(d, "MimeType_CUSTOM5",SWIG_From_int(static_cast<int
>(MimeType::CUSTOM5)));
+ SWIG_Python_SetConstant(d, "MimeType_CUSTOM6",SWIG_From_int(static_cast<int
>(MimeType::CUSTOM6)));
+ SWIG_Python_SetConstant(d, "MimeType_INVALID",SWIG_From_int(static_cast<int
>(MimeType::INVALID)));
}
Index: MimeType.py-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/MimeType.py-swig,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -u -2 -r1.2 -r1.3
--- MimeType.py-swig 16 Jan 2006 02:32:28 -0000 1.2
+++ MimeType.py-swig 6 Apr 2006 00:09:28 -0000 1.3
@@ -1,18 +1,18 @@
-# This file was created automatically by SWIG 1.3.27.
+# This file was created automatically by SWIG 1.3.28.
# Don't modify this file, modify the SWIG interface instead.
+# This file is compatible with both classic and new-style classes.
import _MimeType
-
-# This file is compatible with both classic and new-style classes.
+import new
+new_instancemethod = new.instancemethod
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "thisown"): return self.this.own(value)
if (name == "this"):
- if isinstance(value, class_type):
- self.__dict__[name] = value.this
- if hasattr(value,"thisown"): self.__dict__["thisown"] =
value.thisown
- del value.thisown
+ if type(value).__name__ == 'PySwigObject':
+ self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
- if (not static) or hasattr(self,name) or (name == "thisown"):
+ if (not static) or hasattr(self,name):
self.__dict__[name] = value
else:
@@ -23,4 +23,5 @@
def _swig_getattr(self,class_type,name):
+ if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
@@ -43,5 +44,7 @@
__getattr__ = lambda self, name: _swig_getattr(self, MimeType, name)
def __repr__(self):
- return "<%s.%s; proxy of C++ MimeType instance at %s>" %
(self.__class__.__module__, self.__class__.__name__, self.this,)
+ try: strthis = "at 0x%x" %( self.this, )
+ except: strthis = ""
+ return "<%s.%s; proxy of C++ MimeType instance %s>" %
(self.__class__.__module__, self.__class__.__name__, strthis,)
TEXT = _MimeType.MimeType_TEXT
MULTIPART = _MimeType.MimeType_MULTIPART
@@ -61,6 +64,7 @@
INVALID = _MimeType.MimeType_INVALID
def __init__(self, *args):
- _swig_setattr(self, MimeType, 'this', _MimeType.new_MimeType(*args))
- _swig_setattr(self, MimeType, 'thisown', 1)
+ this = _MimeType.new_MimeType(*args)
+ try: self.this.append(this)
+ except: self.this = this
def Assign(*args): return _MimeType.MimeType_Assign(*args)
def IsOk(*args): return _MimeType.MimeType_IsOk(*args)
@@ -75,16 +79,7 @@
def Matches(*args): return _MimeType.MimeType_Matches(*args)
def __eq__(*args): return _MimeType.MimeType___eq__(*args)
- def __del__(self, destroy=_MimeType.delete_MimeType):
- try:
- if self.thisown: destroy(self)
- except: pass
-
-
-class MimeTypePtr(MimeType):
- def __init__(self, this):
- _swig_setattr(self, MimeType, 'this', this)
- if not hasattr(self,"thisown"): _swig_setattr(self, MimeType,
'thisown', 0)
- self.__class__ = MimeType
-_MimeType.MimeType_swigregister(MimeTypePtr)
+ __swig_destroy__ = _MimeType.delete_MimeType
+ __del__ = lambda self : None;
+_MimeType.MimeType_swigregister(MimeType)
Index: SendMessage.cpp-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/SendMessage.cpp-swig,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -u -2 -r1.4 -r1.5
--- SendMessage.cpp-swig 16 Jan 2006 02:32:28 -0000 1.4
+++ SendMessage.cpp-swig 6 Apr 2006 00:09:28 -0000 1.5
@@ -1,5 +1,5 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.27
+ * Version 1.3.28
*
* This file is not intended to be easily readable and contains a number of
@@ -10,4 +10,5 @@
#define SWIGPYTHON
+#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
[...6456 lines suppressed...]
SWIGEXPORT void SWIG_init(void) {
- static PyObject *SWIG_globals = 0;
PyObject *m, *d;
- if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
/* Fix SwigMethods to carry the callback ptrs when needed */
@@ -4607,10 +5501,7 @@
SWIG_InstallConstants(d,swig_const_table);
- {
- PyDict_SetItemString(d,"SendMessage_NeverQueue",
SWIG_From_int(static_cast<int >(SendMessage::NeverQueue)));
- }
- {
- PyDict_SetItemString(d,"SendMessage_Silent",
SWIG_From_int(static_cast<int >(SendMessage::Silent)));
- }
+
+ SWIG_Python_SetConstant(d,
"SendMessage_NeverQueue",SWIG_From_int(static_cast<int
>(SendMessage::NeverQueue)));
+ SWIG_Python_SetConstant(d,
"SendMessage_Silent",SWIG_From_int(static_cast<int >(SendMessage::Silent)));
}
Index: SendMessage.py-swig
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/SendMessage.py-swig,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -u -2 -r1.2 -r1.3
--- SendMessage.py-swig 16 Jan 2006 02:32:29 -0000 1.2
+++ SendMessage.py-swig 6 Apr 2006 00:09:28 -0000 1.3
@@ -1,18 +1,18 @@
-# This file was created automatically by SWIG 1.3.27.
+# This file was created automatically by SWIG 1.3.28.
# Don't modify this file, modify the SWIG interface instead.
+# This file is compatible with both classic and new-style classes.
import _SendMessage
-
-# This file is compatible with both classic and new-style classes.
+import new
+new_instancemethod = new.instancemethod
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "thisown"): return self.this.own(value)
if (name == "this"):
- if isinstance(value, class_type):
- self.__dict__[name] = value.this
- if hasattr(value,"thisown"): self.__dict__["thisown"] =
value.thisown
- del value.thisown
+ if type(value).__name__ == 'PySwigObject':
+ self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
- if (not static) or hasattr(self,name) or (name == "thisown"):
+ if (not static) or hasattr(self,name):
self.__dict__[name] = value
else:
@@ -23,4 +23,5 @@
def _swig_getattr(self,class_type,name):
+ if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
@@ -42,7 +43,9 @@
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SendMessage, name)
- def __init__(self): raise RuntimeError, "No constructor defined"
+ def __init__(self): raise AttributeError, "No constructor defined"
def __repr__(self):
- return "<%s.%s; proxy of C++ SendMessage instance at %s>" %
(self.__class__.__module__, self.__class__.__name__, self.this,)
+ try: strthis = "at 0x%x" %( self.this, )
+ except: strthis = ""
+ return "<%s.%s; proxy of C++ SendMessage instance %s>" %
(self.__class__.__module__, self.__class__.__name__, strthis,)
NeverQueue = _SendMessage.SendMessage_NeverQueue
Silent = _SendMessage.SendMessage_Silent
@@ -69,16 +72,7 @@
def SendOrQueue(*args): return _SendMessage.SendMessage_SendOrQueue(*args)
def Preview(*args): return _SendMessage.SendMessage_Preview(*args)
- def __del__(self, destroy=_SendMessage.delete_SendMessage):
- try:
- if self.thisown: destroy(self)
- except: pass
-
-
-class SendMessagePtr(SendMessage):
- def __init__(self, this):
- _swig_setattr(self, SendMessage, 'this', this)
- if not hasattr(self,"thisown"): _swig_setattr(self, SendMessage,
'thisown', 0)
- self.__class__ = SendMessage
-_SendMessage.SendMessage_swigregister(SendMessagePtr)
+ __swig_destroy__ = _SendMessage.delete_SendMessage
+ __del__ = lambda self : None;
+_SendMessage.SendMessage_swigregister(SendMessage)
SendMessage_Create = _SendMessage.SendMessage_Create
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates