Hello.

I'm trying to use sqlalchemy with mod_python, but im getting a strange
behavior when i try to use the function sessionmaker. Here is the error:



AttributeError: 'module' object has no attribute 'sessionmaker'


on the line:

Session = sqlalchemy.orm.sessionmaker(autoflush=False, transactional=False)



I've tried various methods to import the function with no sucess. Works fine
on the console. Heres what i tried (changing the call to sessionmaker
acordingly)

import sqlalchemy, sqlalchemy.orm

from  sqlalchemy.orm import *

from  sqlalchemy.orm.session import *

orm = apache.import_module('sqlalchemy.orm')

orm = apache.import_module('sqlalchemy.orm.session')



Can someone please help me?

Thanks a lot in advance!

Tiago Becker

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to