[SQLObject] Re: SQLObject / FireBird / WebWare
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian S. <ian...@et...> - 2003-09-29 13:46:20
|
"Randall Randall" <ra...@ra...> wrote in message news:B6C...@ra...... > If you can be more specific about something you'd like > to see an example of, I can just pull out some of my > current code (assuming I'm doing whatever you want to > see). I'm guessing that something like : #mypage.py: from WebKit.Page import Page import MySOClasses class mypage(Page): ... def writeContent... test = MySoClasses.MyObject(1) test.name = 'Fred' I'm assuming that if I have another servlet that has similar code that the two servlets share : 1. A database connection. 2. The same SQLObject cache manager Overall my assumption is that in MySOClasses.py I define a database connection and the SQLObject classes I want to use and then I'm free to use them in any servlet just by doing an "import MySOClasses" and that any threading and cache management issues are handled for me? Thanks. |