[Chicago] Import question

Daniel Griffin dgriff1 at gmail.com
Tue Dec 23 01:58:42 CET 2008

I am having a problem with imports. I have 2 files, 1 which sets up
SQLAlchemy and maps the object and the other which imports the first so that
it can get a database connection.

file obj

import db
class obj:

file db
from obj import obj
Session() = scoped_session()

from obj import obj
can't find obj

I hope this makes sense, its twisting my brain around. Does anyone know what
I am doing wrong?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20081222/fe398912/attachment.htm>

More information about the Chicago mailing list