Hmm.  That first part works, but because im including * from
helpdatabasemodel the second part does not.

I took what you wrote, and came up with this:

import ft8.turboLink.help.HelpDatabaseModel as HelpDatabaseModel

classes=[]
for value in dir(HelpDatabaseModel):
    try:
        c = getattr( HelpDatabaseModel, value)
        if issubclass( c, SQLObject ):
            if value!='SQLObject':
                classes.append(c)
    except:
        pass

del(HelpDatabaseModel)

from ft8.turboLink.help.HelpDatabaseModel import *

for c in classes:
    c._connection = __connection__

ah.  no more evals.  Thanks for the help!  Much less Hacky now.

-percious


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to