Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#169 InheritableSQLObjects use DB during init.

closed-wont-fix
Oleg Broytman
General (126)
5
2006-05-19
2006-05-02
Anonymous
No

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.

Discussion

  • Oleg Broytman
    Oleg Broytman
    2006-05-19

    Logged In: YES
    user_id=4799

    InheritableSQLObject does not do it. Probably a bug in
    TurboGears.

     
  • Oleg Broytman
    Oleg Broytman
    2006-05-19

    • assigned_to: nobody --> phd
    • status: open --> closed-wont-fix