Sorry for the extra \\\"\\\\\\\"\\\'s.

Attaching programs incase anyone wants to run them.

Thanks,

Ray

from sqlobject import *

class Test(SQLObject):
   desc=StringCol()
from sqlobject import *

class Test(SQLObject):
   desc=StringCol()
#
# test sqlobject for 2 databases with same table name
#

from sqlobject import *
import os

import import_test1
import import_test2


if os.path.exists('c:\\test1.db'):
   os.unlink('c:\\test1.db')
con1=connectionForURI('sqlite:/c|/test1.db')

if os.path.exists('c:\\test2.db'):
   os.unlink('c:\\test2.db')
con2=connectionForURI('sqlite:/c|/test2.db')


import_test1.Test.createTable(connection=con1)
import_test2.Test.createTable(connection=con2)


con1.close()
con2.close()
-------------------------------------------------------------------------
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&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to