Re: problem with appending to a list, possibly mysqldb related

2006-08-31 Thread John Salerno
John Purser wrote: > On Thu, 31 Aug 2006 18:39:45 GMT > John Salerno <[EMAIL PROTECTED]> wrote: > >> John Salerno wrote: >>> John Purser wrote: >>> I'd say you had a record with a null value for the namefirst field. The join method don't like that. >>> Wow, you're right! I tried this:

Re: problem with appending to a list, possibly mysqldb related

2006-08-31 Thread John Purser
On Thu, 31 Aug 2006 18:39:45 GMT John Salerno <[EMAIL PROTECTED]> wrote: > John Salerno wrote: > > John Purser wrote: > > > >> I'd say you had a record with a null value for the namefirst field. > >> The join method don't like that. > > > > Wow, you're right! I tried this: > > > > if x[0] and

Re: problem with appending to a list, possibly mysqldb related

2006-08-31 Thread John Salerno
John Salerno wrote: > John Purser wrote: > >> I'd say you had a record with a null value for the namefirst field. >> The join method don't like that. > > Wow, you're right! I tried this: > > if x[0] and not x[0] == 'NULL': > > and sure enough it works after that. (Not sure if that's the best

Re: problem with appending to a list, possibly mysqldb related

2006-08-31 Thread John Salerno
John Purser wrote: > I'd say you had a record with a null value for the namefirst field. > The join method don't like that. Wow, you're right! I tried this: if x[0] and not x[0] == 'NULL': and sure enough it works after that. (Not sure if that's the best way to test, though. Just testing for

Re: problem with appending to a list, possibly mysqldb related

2006-08-31 Thread John Purser
On Thu, 31 Aug 2006 18:11:15 GMT John Salerno <[EMAIL PROTECTED]> wrote: > Here's the code: > > class MyFrame(wx.Frame): > > def __init__(self): > wx.Frame.__init__(self, None, wx.ID_ANY) > panel = wx.Panel(self) > dbconn = self.connect_db() > dbconn.exec