diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-10-11 10:52:39 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-10-11 10:52:39 +0000 |
commit | 071e2f60ae3b1447238c9a06e4dd67b4a6a240c3 (patch) | |
tree | 91ed24431222bfbeee35e63c64d0ae10936cc194 /pyuno | |
parent | 132720d229e72f198d3d847e574f8cd77542bad4 (diff) |
INTEGRATION: CWS pyunofixes4 (1.7.46); FILE MERGED
2007/07/30 19:43:44 jbu 1.7.46.1: adding pythonpath import functionality, fixed a gc deadlock, fixed some minor issues
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/uno.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/pyuno/source/module/uno.py b/pyuno/source/module/uno.py index 9f3c221a1..1bf7c6eb2 100644 --- a/pyuno/source/module/uno.py +++ b/pyuno/source/module/uno.py @@ -4,9 +4,9 @@ # # $RCSfile: uno.py,v $ # -# $Revision: 1.7 $ +# $Revision: 1.8 $ # -# last change: $Author: obo $ $Date: 2006-03-22 10:52:57 $ +# last change: $Author: kz $ $Date: 2007-10-11 11:52:39 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -340,7 +340,8 @@ def _uno_struct__eq__(self,cmp): if hasattr(cmp,"value"): return self.__dict__["value"] == cmp.__dict__["value"] return False - + +# referenced from pyuno shared lib and pythonscript.py def _uno_extract_printable_stacktrace( trace ): mod = None try: @@ -349,9 +350,13 @@ def _uno_extract_printable_stacktrace( trace ): pass ret = "" if mod: - lst = mod.format_tb( trace ) - for i in lst: - ret = ret + i + lst = mod.extract_tb( trace ) + max = len(lst) + for j in range(max): + i = lst[max-j-1] + ret = ret + " " + str(i[0]) + ":" + \ + str(i[1]) + " in function " + \ + str(i[2]) + "() [" + str(i[3]) + "]\n" else: - ret = "Coludn't import traceback module" + ret = "Couldn't import traceback module" return ret |