Thread: [SQL-CVS] [ sqlobject-Bugs-1480745 ] InheritableSQLObjects use DB during init.
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: SourceForge.net <no...@so...> - 2006-05-02 23:11:35
|
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 |
From: SourceForge.net <no...@so...> - 2006-05-19 14:34:43
|
Bugs item #1480745, was opened at 2006-05-03 03:11 Message generated for change (Comment added) made by phd 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: Closed >Resolution: Wont Fix Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Oleg Broytmann (phd) 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. ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2006-05-19 18:34 Message: Logged In: YES user_id=4799 InheritableSQLObject does not do it. Probably a bug in TurboGears. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1480745&group_id=74338 |