From ben at cohack.com Wed Apr 13 05:20:55 2005 From: ben at cohack.com (Ben Godfrey) Date: Wed, 13 Apr 2005 04:20:55 +0100 Subject: [Z3-sqlos] Error adapting connection Message-ID: <43c3c6a1de82355f87df1d88a7b720cc@cohack.com> Hi, I'm trying to get sqlos running, just from the tutorial really, but I'm getting this error: TypeError: ('Could not adapt', , ) I have Zope X3 checked out of SVN yesterday. My SQLObject is 0.6.1. My sqlos is also SVN. I'm using mysqldbda, which is also latest SVN. Please see below for the configure.zcml for my (test) package and I've attached a full traceback from transcript.log. Also, I do get a little debug dump in transcript.log: ************************************************************************ ****** {'username': u'root', 'parameters': {}, 'port': '', 'host': u'localhost', 'password': 'XXX', 'dbname': u'photodb'} ************************************************************************ ****** In addition, I have a couple of questions: How can I use connections created through the site management folder instead of hard-coded into ZCML? Secondly, I'm interested in the possibility of building on top of sqlos to make using SQLObjects one step more generic, i.e. creating SQLObject classes from databases which in turn create interfaces which is all patched together somehow with ZCML. The goal being that if you provide a connection to a database you magically get a whole new set of containers and types to add based on the structure of that database. This is just a crazy idea really. I'm very green with Zope 3, and in fact Zope full stop. I have no idea whether it's possible but it seems an interesting idea, if fraught with danger :-) Ben -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: traceback.txt Url: http://codespeak.net/pipermail/z3-sqlos/attachments/20050413/9a01244f/attachment.txt -------------- next part -------------- ((Ben Godfrey) (Software) (see "http://www.cohack.com/?src=eval"))