<br><font size=2 face="Courier New">Hi,</font>
<br>
<br><font size=2 face="Courier New">I'm a newbie in python and pyKde and
was trying to use NetAccess.stat. My problem is, that the UDSEntry parameter
returns always empty.</font>
<br>
<br><font size=2 face="Courier New">I tried with the following sample code:</font>
<br><font size=2 face="Courier New">------------------------------------------------</font>
<br><font size=2 face="Courier New">import sys</font>
<br><font size=2 face="Courier New">from kio import KIO</font>
<br><font size=2 face="Courier New">from kdecore import KApplication,KURL</font>
<br>
<br><font size=2 face="Courier New">app=KApplication(sys.argv, &quot;KIO.NetAccess
Testing&quot;)</font>
<br><font size=2 face="Courier New">myURL = KURL(&quot;/usr/bin/python&quot;)</font>
<br>
<br><font size=2 face="Courier New">if KIO.NetAccess.exists(myURL):</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; udsEntry=[]</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; if
KIO.NetAccess.stat(myURL, udsEntry):</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; #It doesn't get any UDSAtom...len (udsEntry)
is always 0</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; print &quot;Number of UDSAtoms in UDSEntry:
&quot;, len(udsEntry)</font>
<br><font size=2 face="Courier New">------------------------------------------------</font>
<br>
<br><font size=2 face="Courier New">Maybe what I'm doing is completely
wrong, I don't know, so please help! I really would appreciate any hint.</font>
<br>
<br><font size=2 face="Courier New">Thanks.</font>
<br><font size=2 face="Courier New">Juan Ignacio Saitua.</font>
<br>
<br><font size=2 face="Courier New">P.D: I'm using kubuntu 6.10 with pykde-3.15.2,
pyqt-3.16, sip-4.4.5 and kde-3.5.5</font>
<br>