<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, "KIO.NetAccess
Testing")</font>
<br><font size=2 face="Courier New">myURL = KURL("/usr/bin/python")</font>
<br>
<br><font size=2 face="Courier New">if KIO.NetAccess.exists(myURL):</font>
<br><font size=2 face="Courier New"> udsEntry=[]</font>
<br><font size=2 face="Courier New"> if
KIO.NetAccess.stat(myURL, udsEntry):</font>
<br><font size=2 face="Courier New">
#It doesn't get any UDSAtom...len (udsEntry)
is always 0</font>
<br><font size=2 face="Courier New">
print "Number of UDSAtoms in UDSEntry:
", 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>