Tiago Becker
tiagobecker at gmail.com
Fri Oct 17 09:02:03 EDT 2008
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20081017/97a2246e/attachment.html
|