Bugs item #1480745, was opened at 2006-05-02 16:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1480745&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: SQLObject release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: InheritableSQLObjects use DB during init.
Initial Comment:
In the release of SQLObject packaged with TurboGears
0.9a5 I have encountered quite a problem -
descendants of InheritableSQLObjects attempt to
connect to the database, while the parent object or
normal SQLObjects do not until used.
Specifically, when you have a python package
registered as a TurboGears extension it gets queried
upon load (by TG's own __init__.py script) before
anything else can possibly happen. While this
ordinarily doesn't matter, there is something strange
going on inside InheritableSQLObject descendants that
is causing this error.
There is the following ticket against TG right now:
http://trac.turbogears.org/turbogears/ticket/817
This ticket, along with the forum discussion linked
to in that ticket, describes the problem in detail.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1480745&group_id=74338
|