https://bugs.documentfoundation.org/show_bug.cgi?id=92553

Julien Nabet <serval2...@yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|medium                      |high
                 CC|                            |aniste...@gmail.com,
                   |                            |jfernan...@igalia.com
           Severity|normal                      |major

--- Comment #2 from Julien Nabet <serval2...@yahoo.fr> ---
Xisco/Javier: 
There are several pbs here.
1) 
I could fix the first one (see my previous comment) with this patch:
diff --git a/wizards/com/sun/star/wizards/web/FTPDialogResources.py
b/wizards/com/sun/star/wizards/web/FTPDialogResources.py
index 399913c..631b7af 100644
--- a/wizards/com/sun/star/wizards/web/FTPDialogResources.py
+++ b/wizards/com/sun/star/wizards/web/FTPDialogResources.py
@@ -21,7 +21,7 @@ class FTPDialogResources(object):
     RID_COMMON_START = 500

     def __init__(self, oWizardResource):
-        super(FTPDialogResources, self).__init__(xmsf, self.MODULE_NAME)
+        super(FTPDialogResources, self).__init__()

         self.resFTPDialog_title = oWizardResource.getResText(
             self.RID_FTPDIALOG_START + 0)

since FTPDialogResources.py inherits from "object" not from "WizardDialog"

2) Then I had:
Traceback (most recent call last):
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/web/WWD_General.py",
line 88, in getFTPDialog
    self.ftpDialog = FTPDialog(self.xMSF, pub, self.oWizardResource)
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/web/FTPDialog.py",
line 116, in __init__
    self.setDialogProperties( True, 160, HelpIds.getHelpIdString(HID_FTP),
AttributeError: 'FTPDialog' object has no attribute 'setDialogProperties'
Traceback (most recent call last):
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/web/WWD_Events.py",
line 447, in showFTPDialog
    return self.getFTPDialog(pub).execute(self) == 1
AttributeError: 'NoneType' object has no attribute 'execute'

so disabled "self.setDialogProperties" line for the test.

3) Then I had:
Traceback (most recent call last):
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/web/WWD_General.py",
line 88, in getFTPDialog
    self.ftpDialog = FTPDialog(self.xMSF, pub, self.oWizardResource)
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/web/FTPDialog.py",
line 120, in __init__
    self.build()
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/web/FTPDialog.py",
line 177, in build
    (14, HelpIds.getHelpIdString(HID_FTP_OK), self.resources.resbtnOK_value,
"btnOK", 165, 142, PushButtonType_OK_value, 13, 50), self)
NameError: global name 'PushButtonType_OK_value' is not defined
Traceback (most recent call last):
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/web/WWD_Events.py",
line 447, in showFTPDialog
    return self.getFTPDialog(pub).execute(self) == 1
AttributeError: 'NoneType' object has no attribute 'execute'

So I tried:
from com.sun.star.awt.PushButtonType import OK, CANCEL, HELP, STANDARD

but finally I had this:
Traceback (most recent call last):
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/ui/UnoDialog.py",
line 134, in insertControlModel
    (sPropNames, oPropValues))
  File "/home/julien/compile-libreoffice/libreoffice/instdir/program/uno.py",
line 256, in invoke
    return pyuno.invoke( object, methodname, argTuple )
uno.com.sun.star.lang.IllegalArgumentException: Unable to convert the given
value for the property PushButtonType.
Expected type: short
Found type: com.sun.star.awt.PushButtonType
Traceback (most recent call last):
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/ui/UnoDialog.py",
line 134, in insertControlModel
    (sPropNames, oPropValues))
  File "/home/julien/compile-libreoffice/libreoffice/instdir/program/uno.py",
line 256, in invoke
    return pyuno.invoke( object, methodname, argTuple )
uno.com.sun.star.lang.IllegalArgumentException: Unable to convert the given
value for the property PushButtonType.
Expected type: short
Found type: com.sun.star.awt.PushButtonType
Traceback (most recent call last):
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/ui/UnoDialog.py",
line 134, in insertControlModel
    (sPropNames, oPropValues))
  File "/home/julien/compile-libreoffice/libreoffice/instdir/program/uno.py",
line 256, in invoke
    return pyuno.invoke( object, methodname, argTuple )
uno.com.sun.star.lang.IllegalArgumentException: Unable to convert the given
value for the property PushButtonType.
Expected type: short
Found type: com.sun.star.awt.PushButtonType
Traceback (most recent call last):
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/web/WWD_General.py",
line 88, in getFTPDialog
    self.ftpDialog = FTPDialog(self.xMSF, pub, self.oWizardResource)
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/web/FTPDialog.py",
line 121, in __init__
    self.disconnect()
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/web/FTPDialog.py",
line 347, in disconnect
    self.setEnabled(self.btnOK, False)
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/ui/UnoDialog.py",
line 266, in setEnabled
    control.Model.Enabled = enabled
AttributeError: 'NoneType' object has no attribute 'Model'
Traceback (most recent call last):
  File
"/home/julien/compile-libreoffice/libreoffice/instdir/program/wizards/web/WWD_Events.py",
line 447, in showFTPDialog
    return self.getFTPDialog(pub).execute(self) == 1
AttributeError: 'NoneType' object has no attribute 'execute'


So it seems we've got something quite broken here.

May one of you take a look or at least give some hint?
Thank you in advance.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to