On Jan 30, 2008 4:25 PM, Mike Driscoll <[EMAIL PROTECTED]> wrote:

[...]

>
>   File "C:\TurboGears\tblog\tblog\BlogAuthorController
> \controllers.py", line 6,
> in ?
>     from tblog.model import session, BlogAuthor
> ImportError: cannot import name session
>
>
> If I run the author's code from their site, it works. I tried
> comparing the two files using a program called "Beyond Compare" but
> cannot find my error. Does anyone have any debugging tips?

I have not read the book but...

could you try to replace the line

from tblog.model import session, BlogAuthor

by those two line:

from turbogears.database import session
from tblog.model import BlogAuthor

session is provided by turbogears database and should be fetched
directly from there.

Regards,
Florent.

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to