Re: [dabo-users] Struggling with connection editor

Author: Dave Kelly

Posted: 2012-07-24 at 02:35:12

Ed,

I checked out the most recent revision with:

dave@Mint-Maya ~ $ svn checkout http://svn.dabodev.com/dabo/trunk dabo

U dabo/ide/CxnEditor.py

Checked out revision 7208.

I deleted the 0 length connection file.

I re-ran the connection editor and received the following error:

dave@Mint-Maya ~/timeclock/db $ dconnect

/usr/lib/python2.7/dist-packages/dabo/lib/SimpleCrypt.py:52: UserWarning:

WARNING: SimpleCrypt is not secure. Please see

http://wiki.dabodev.com/SimpleCrypt for more information

warnings.warn("WARNING: SimpleCrypt is not secure. Please see

http://wiki.dabodev.com/SimpleCrypt for more information")

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/dabo/ui/uiwx/dControlMixin.py",

line 27, in _onWxHit

self.raiseEvent(dEvents.Hit, evt, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/dabo/ui/uiwx/dPemMixin.py", line

1074, in raiseEvent

super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,

**kwargs)

File "/usr/lib/python2.7/dist-packages/dabo/lib/eventMixin.py", line 81,

in raiseEvent

bindingFunction(event)

File "/home/dave/dabo/ide/CxnEditor.py", line 278, in onSave

self.saveFile()

File "/home/dave/dabo/ide/CxnEditor.py", line 23, in _wrapped

return fnc(self, *args, **kwargs)

File "/home/dave/dabo/ide/CxnEditor.py", line 437, in saveFile

self.writeChanges()

File "/home/dave/dabo/ide/CxnEditor.py", line 552, in writeChanges

vals = self.relPaths(self.connDict.values())

File "/home/dave/dabo/ide/CxnEditor.py", line 565, in relPaths

if self.isFileBasedBackend(val["dbtype"]):

KeyError: 'dbtype'

Sorry,

Dave Kelly

The Priory Inn

01666 502 251

www.theprioryinn.co.uk

"Dining in a 30 Mile Food Zone"

-----Original Message-----

From: dabo-users-bounces@leafe.com [mailto:dabo-users-bounces@leafe.com] On

Behalf Of Ed Leafe

Sent: 23 July 2012 17:18

To: Dabo Users list

Subject: Re: [dabo-users] Struggling with connection editor

On Jul 21, 2012, at 10:27 AM, Dave Kelly wrote:

> I tried to use the connection editor under Windows 7 and after a

> successful test, when I went to use the connection, I received an

> error. Taking a look at the file, it had a zero length. I deleted

> the file and tried again in Windows and I saved a screen shot of the

> console output here http://theprioryinn.co.uk/dabo/cxneditor.png.

OK, I've re-worked the code in that script, and it should be working

correctly now. If you can update from the latest svn and test to confirm, I

would appreciate it.

-- 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/56521B9A-2B80-474C-9B20-16C9338DAB3E@leafe.c

om

_______________________________________________

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/004801cd696e$dcca31d0$965e9570$@theprioryinn.co.uk

©2012 Dave Kelly