Never mind, I was looking at the old code.
-- "***@netzero.com" <***@netzero.com> wrote:
Vic, thanks for the info. Based on what you posted, get_phone_entry won't work because it's looking for the subtring '\r\bOK\r\n' in the return before it processes the return. It appears that the OK substring has been stripped from the returns from commport.sendatcommand. I will need to update com_samsung to account for this. Stay tune.
-Joe Pham
Post by Vic HeintzWhat I'm finding is that get_phone_entry is always returning [] and so
len(pb_entry) is always 0 - Vic
Digging further I put a print statement in routine get_phone entry:
s=self.comm.sendatcommand("#PBOKR=%d" % entry_index)
print s
I get things like:
['#PBOKR: 40,10,0,0,"Dummy
entry",2,0,2345678901,0,4567890123,0,3216549870,0,5678912304,0,678901234
5,0,Adjg1bjk,0,,,"Eedjljmm",5,0,"",20041027T233952']
And the line
return split(split(s, ": ")[1], ",")
always returns [] for this.
I'm a python novice but shouldn't "s" be getting just the string from
the POBKR command? Doesn't [] indicate an array? What's with the single
quotes surrounding the string inside the brackets?
Vic
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bitpim-devel mailing list
Bitpim-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
________________________________________________________________
Speed up your surfing with NetZero HiSpeed.
Now includes pop-up blocker!
Only $14.95/ month - visit http://www.netzero.com/surf to sign up today!
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bitpim-devel mailing list
Bitpim-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
________________________________________________________________
Speed up your surfing with NetZero HiSpeed.
Now includes pop-up blocker!
Only $14.95/ month - visit http://www.netzero.com/surf to sign up today!