PDA

View Full Version : [Help Needed]: Python-Suds and QTextBrowser


EIPI
02-04-2010, 09:46 PM
I have a 2 questions, one related to Python and the other related to QT:

1. In scratchbox, I am using the python-suds package from extras-devel in my python code to access a WSDL service. On my N900, I enabled extras-devel, and from the CLI tried "apt-get install python-suds", which did not find that package. From here (http://maemo.org/packages/view/python-suds/), it appears the armel package is there. What am I doing wrong?

2. I am using a QTextBrowser box in the GUI to display some information. How do I specify a HTML link in the QTextBrowser object? For instance, I am setting the text within this object as follows:

ui.resultsBrowser.setText('Status for %s %s\n\
From: %s %s\n\
To: %s %s\n\
Current Status: %s\n\
Data courtesy of: %s'\
% (A, B, C, D, E, F, G, H))I would like 'H' above to be a HTML link... any ideas how this can be done?

EIPI
02-04-2010, 10:19 PM
I answered my own question for #2:

ui.resultsBrowser.setText('Status for %s %s\n\
From: %s %s\n\
To: %s %s\n\
Current Status: %s\n\
Data courtesy of:<a href="http://www.url.com">URL</a>\
% (A, B, C, D, E, F, G))

Still not able to get python-suds on the N900 though.

pelago
02-05-2010, 06:22 AM
Did you apt-get update after adding the extras-devel repository and before trying to apt-get python-suds?

EIPI
02-05-2010, 08:59 AM
Did you apt-get update after adding the extras-devel repository and before trying to apt-get python-suds?

Yes, this was the problem. I did not apt-get update before attempting the install of suds. Thank you very much!