Re: DSV -> csv

"Joe Pham" <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
I tried out your patch and got this exception:

An unexpected exception has occurred.
Please see the help for details on what to do.

Traceback (most recent call last):
  File "c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\gui.py", line 173, in run
    res=call()
  File "c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\gui.py", line 113, in __call__
    return apply(self.method, self.args+args, d)
  File "c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\gui.py", line 1659, in getdata
    i[1](results)
  File "c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\com_samsung.py", line 682, in _getsms
    sms_l.read()
  File "c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\com_samsung.py", line 1141, in read
    self._inbox.read()
  File "c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\com_samsung.py", line 1030, in read
    s=self._phone.get_sms_inbox(i)
  File "c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\com_samsung.py", line 320, in get_sms_inbox
    return self.splitandunescape(s[0])
  File "c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\com_samsung.py", line 372, in splitandunescape
    e=csv.reader(f).next()
Error: newline inside string

Variables by last 8 frames, innermost last

Frame run in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\gui.py at line 166
              e =  <_csv.Error instance at 0x039265F8>
            res =  None
           self =  <WorkerThread(BitPim helper, started daemon)>
           item =  (<gui.Request instance at 0x0326E440>, <gui.Callback instance at 0x0326E4B8>)
           call =  <gui.Request instance at 0x0326E440>
             ex =  <_csv.Error instance at 0x039265F8>
       resultcb =  <gui.Callback instance at 0x0326E4B8>
          first =  0

Frame __call__ in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\gui.py at line 113
           self =  <gui.Request instance at 0x0326E440>
           args =  ()
              d =  Keys []
                   {}
         kwargs =  Keys []
                   {}

Frame getdata in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\gui.py at line 1659
          count =  7
              i =  (<bound method GetPhoneDialog.GetSMSSetting of <guiwidgets.GetPhoneDialog; proxy
           self =  <WorkerThread(BitPim helper, started daemon)>
            req =  <guiwidgets.GetPhoneDialog; proxy of C++ wxDialog instance at _788ed601_p_wxDial
       willcall =  [(<bound method GetPhoneDialog.GetPhoneBookSetting of <guiwidgets.GetPhoneDialog
        results =  Keys ['calendar', 'groups', 'memo', 'phonebook', 'ringtone', 'ringtone-index', 'sync', 'todo', 'uniqueserial', 'wallpaper-index', 'wallpapers']
                   {'phonebook': {1: {'serials': [{'serial2': '1', 'serial1': '1', 'sourcetype': 's
           sync =  Keys ['calendar', 'memo', 'phonebook', 'ringtone', 'sms', 'todo', 'wallpaper']
                   {'memo': 'OVERWRITE', 'wallpaper': 'OVERWRITE', 'sms': 'OVERWRITE', 'ringtone': 
             st =  0
           todo =  [(<bound method WorkerThread.rebootcheck of <WorkerThread(BitPim helper, started

Frame _getsms in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\com_samsung.py at line 682
           self =  <com_samsungscha650.Phone instance at 0x02CEB670>
         result =  Keys ['calendar', 'groups', 'memo', 'phonebook', 'ringtone', 'ringtone-index', 'sync', 'todo', 'uniqueserial', 'wallpaper-index', 'wallpapers']
                   {'phonebook': {1: {'serials': [{'serial2': '1', 'serial1': '1', 'sourcetype': 's
          sms_l =  <com_samsung.SMSList object at 0x0324E8B0>

Frame read in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\com_samsung.py at line 1141
           self =  <com_samsung.SMSList object at 0x0324E8B0>

Frame read in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\com_samsung.py at line 1030
              i =  2
              s =  ['1', '0', '2', '20050310T140840', '[email protected] (Joe Pham) From my PC, vte
            txt =  'From my PC, vtext.com'
              e =  <sms.SMSEntry object at 0x02CE1FD0>
           self =  <com_samsung.SMS_Inbox_List object at 0x03276250>

Frame get_sms_inbox in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\com_samsung.py at line 322
              s =  ['#PSRMR: 2,0,2,20050316T223117,"[email protected] (Subject) SMS from Netzero v
           self =  <com_samsungscha650.Phone instance at 0x02CEB670>
    entry_index =  2

Frame splitandunescape in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\com_samsung.py at line 372
           self =  <com_samsungscha650.Phone instance at 0x02CEB670>
           line =  '#PSRMR: 2,0,2,20050316T223117,"[email protected] (Subject) SMS from Netzero vi
       StringIO =  <class StringIO.StringIO at 0x0090F540>
            col =  6
              f =  <StringIO.StringIO instance at 0x03926698>


-Joe Pham




______________________________________________________________________
NetZero Is Giving Away $3,000 A Day!
Sign up for NetZero HiSpeed 3G with Instant On!
Visit http://www.netzero.com/3Gsweeps TODAY for your chance to win!



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.