<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Wizard service broken"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=132110">bug 132110</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>sbergman@redhat.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Wizard service broken"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=132110#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Wizard service broken"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=132110">bug 132110</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>Stephan: taking a look at this error:
Python exception: <class 'RuntimeError'>: Type [] string is unknown, traceback
follows
File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xe6.tmp_/OAuth2OOo.oxt/pythonpath/unolib/unolib.py",
line 46, in getPropertySetInfo
properties = self._getPropertySetInfo()
File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xeb.tmp_/smtpMailerOOo.oxt/pythonpath/smtpmailer/wizardhandler.py",
line 383, in _getPropertySetInfo
properties['DataSources'] = getProperty('DataSources', '[] string',
transient)
File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xe6.tmp_/OAuth2OOo.oxt/pythonpath/unolib/unotools.py",
line 53, in getProperty
property.Type = uno.getTypeByName(type)
File "/home/julien/lo/libreoffice/instdir/program/uno.py", line 73, in
getTypeByName
return pyuno.getTypeByName(typeName)
I thought we could use this patch:
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 92a7e6ca5120..b9f008365bcf 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -1906,6 +1906,7 @@ extern "C" void SAL_CALL
typelib_typedescription_getByName(
if (2 < name.getLength() && '[' == name[ 0 ])
{
OUString element_name( name.copy( 2 ) );
+ element_name = element_name.trim();
typelib_TypeDescription * element_td = nullptr;
typelib_typedescription_getByName( &element_td, element_name.pData
);
if (nullptr != element_td)
What do you think?
Is it ok or should the extension use "[]string" instead of "[] string"
in this block
378 def _getPropertySetInfo(self):
379 properties = {}
380 readonly =
uno.getConstantByName('com.sun.star.beans.PropertyAttribute.READONLY')
381 transient =
uno.getConstantByName('com.sun.star.beans.PropertyAttribute.TRANSIENT')
382 properties['Connection'] = getProperty('Connection',
'com.sun.star.sdbc.XConnection', transient)
383 properties['DataSources'] = getProperty('DataSources', '[]
string', transient)
384 properties['TableNames'] = getProperty('TableNames', '[]
string', transient)
385 properties['ColumnNames'] = getProperty('ColumnNames', '[]
string', transient)
386 return properties
?
prrvchr: even after workarounding this pb, I got a new Python error, see
console logs:
wizardpage.__init__() 1
warn:stoc:17328:17328:stoc/source/inspect/introspection.cxx:1612: object of
type "com.sun.star.uno.XReference" lacks XTypeProvider
warn:stoc:17328:17328:stoc/source/inspect/introspection.cxx:1612: object of
type "com.sun.star.uno.XReference" lacks XTypeProvider
Traceback (most recent call last):
File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xeb.tmp_/smtpMailerOOo.oxt/pythonpath/smtpmailer/wizardpage.py",
line 66, in __init__
self._refreshPage2()
File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xeb.tmp_/smtpMailerOOo.oxt/pythonpath/smtpmailer/wizardpage.py",
line 191, in _refreshPage2
self._handler.refreshTables(self.Window.getControl('ListBox1'))
File
"/home/julien/lo/libreoffice/instdir/user/uno_packages/cache/uno_packages/lu146xeb.tmp_/smtpMailerOOo.oxt/pythonpath/smtpmailer/wizardhandler.py",
line 259, in refreshTables
table = self._query.UpdateTableName
AttributeError: 'NoneType' object has no attribute 'UpdateTableName'</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>