On 4/19/06, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > On Wed, Apr 19, 2006 at 05:24:56PM +0300, Elver Loho wrote: > > class Transactions(SQLObject): > > sqlmeta.fromDatabase = True > > > > AttributeError: No connection has been defined for this thread or process > > You asked SQLObject to draw the definition for the table from the DB. > SQLObject honestly tried to do exactly that and failed because it cannot > connect to the DB. > Initialize a connection before manipulating with the DB; setting > sqlmeta.fromDatabase = True is a manipulation...
I want to have a class that is initialised from the database. I also want to put its definition in the same file or include the model just once into my program. However, this is impossible as far as I know. Or is it? Annoyingly enough, while bridging objects and relational databases, SQLObject is demanding a very linear approach while I want to use OO. Annoying. Really annoying. I would also love it if it didn't demand an id field. I'd like it to work with existing databases. Elver ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ sqlobject-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
