PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 531 - sessionProperty "ConnectInBackground" does not work
: sessionProperty "ConnectInBackground" does not work
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: QtNetwork
: 1.0.0 beta3
: Other Other
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-12-06 19:24 EET by dom
Modified: 2011-01-21 15:44 EET (History)
8 users (show)

See Also:


Attachments
Code that reproduces the error on N900 running Maemo PR1.3 and pyside 1.0.0beta1 (1.32 KB, text/x-python)
2010-12-06 19:24 EET, dom
Details
c++ code (2.73 KB, application/x-gzip)
2011-01-14 11:05 EET, renato filho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dom 2010-12-06 19:24:28 EET
Created attachment 167 [details]
Code that reproduces the error on N900 running Maemo PR1.3 and pyside
1.0.0beta1

Setting the sessionProperty "ConnectInBackground" to True leads to an
Unidentified Error. 
http://doc.qt.nokia.com/4.7/qnetworksession.html#sessionProperty

Is the sessionProperty "ConnectInBackground" not implemented for Maemo5
PR1.3/N900?
Comment 1 Matti Airas 2010-12-07 06:46:46 EET
Thanks for the report. I'm prioritizing this P3 - this will be taken into our
upcoming sprints.

Did you test whether this works on the desktop Linux or is this a
Maemo-specific issue? (I'm assuming it wouldn't work on the desktop either.)

Apparently the documentation formatting is also pretty broken form
QNetworkSession. I'll file a separate bug for that.
Comment 2 dom 2010-12-07 07:58:30 EET
On Linux (Kubuntu 10.10, pyside-1.0.0beta1) the sessionProperty
"ConnectInBackground" cannot be set. 

>>> print "session property:", session.sessionProperty("ConnectInBackground")
session property: None
>>> session.setSessionProperty( "ConnectInBackground", True)
>>> print "session property:", session.sessionProperty("ConnectInBackground")
session property: None

Shouldn't the sessionProperty "ConnectInBackground" be set to False by default?
None is kind of strange ...
Comment 3 dom 2010-12-07 12:20:47 EET
There's already a bug report for the broken document formatting:
http://bugreports.qt.nokia.com/browse/QTBUG-13794
Comment 4 renato filho 2011-01-12 18:47:18 EET
Hi don,

About the None value used as default for this property, this is the correct
value, in the documentation we can confirm that: 
"This property is not set by default and support for it depends on the
platform."

If you try this on C++ the returned value will be a empty QVariant.

Now about the bug I tried your code on fremantle PR 1.3 with PySide
1.0.0-1maemo1~beta3 and all works fine.
This is the output genereted by your code:

WLAN
HSPA
session state: True
wait for opened: True

Can you check this and close the bug if this works? 
Thanks
Comment 5 dom 2011-01-12 19:57:23 EET
Hi Renato,

I just upgraded my N900 running fremantle PR 1.3 to PySide 1.0.0-1maemo1~beta3
and ran the code with the following output. The device was _NOT_ connected to a
network:

------------------
WLAN
HSDPA
session property: None
session property: True
new state: 2
new state: 5
error: 4 | error string: Unidentified Error
wait for opened: False
------------------

When the N900 is already connected via WLAN the output is:

------------------
WLAN
HSPA
session property: None
session property: True
session state: True
wait for opened: True
------------------

Is this the expected outcome? Shouldn't the WLAN network connection be
established silently in the background?
In December I filed the following bug report:
http://bugreports.qt.nokia.com/browse/QTBUG-15924

And yes, this is most likely not a PySide issue. Qt issue or even Maemo issue?
Any hints are highly appreciated!

Greetings,
Dom
Comment 6 renato filho 2011-01-14 11:05:27 EET
Created attachment 221 [details]
c++ code

translated example to c++
Comment 7 renato filho 2011-01-14 11:09:53 EET
I updated the QTBUG-15924 with the c++ example which have the same bug, Then we
can confirm this is not a PySide bug, because of that I will close this bug as
invalid. Thanks for your help.
Comment 8 renato filho 2011-01-21 15:44:42 EET
release beta4