On Jul 27, 2010, at 6:46 AM, david whiting wrote: > I can save a connection using ./CxnEditor.py with mysql as the > backend, but if I try to use sqlite I get the following error: > > Traceback (most recent call last): > File "/home/dwhiting/Desktop/dabo/dabo/ui/uiwx/dControlMixin.py", > line 27, in _onWxHit > self.raiseEvent(dEvents.Hit, evt, *args, **kwargs) > File "/home/dwhiting/Desktop/dabo/dabo/ui/uiwx/dPemMixin.py", line > 981, in raiseEvent > super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs) > File "/home/dwhiting/Desktop/dabo/dabo/lib/eventMixin.py", line 92, > in raiseEvent > bindingFunction(event) > File "./CxnEditor.py", line 225, in onOpen > self.openFile() > File "./CxnEditor.py", line 431, in openFile > if not self.confirmChanges(): > File "./CxnEditor.py", line 478, in confirmChanges > self.writeChanges() > File "./CxnEditor.py", line 501, in writeChanges > vals = self.relPaths(self.connDict.values()) > File "./CxnEditor.py", line 514, in relPaths > if self.isFileBasedBackend(val["dbtype"]): > TypeError: string indices must be integers
That's odd. Can you do the following to help me figure out what's going on? Modify the relPaths() method of CxnEditor.py to add the following line after the current line #513: 512 def relPaths(self, vals): 513 for val in vals: print "VAL:", type(val), val 514 if self.isFileBasedBackend(val["dbtype"]): 515 db = val["database"] 516 if os.path.exists(db): 517 val["database"] = self.connDict["database"] = utils.relativePath(db, self.Application.HomeDirectory) 518 return vals Save it, and then try running again as you did above. After the error, copy the line (or lines) in the terminal that start with 'VAL:' and paste them into your reply. -- Ed Leafe _______________________________________________ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/bcecd699-7408-43d6-8f11-df7780966...@leafe.com