3 messages in com.googlegroups.pylons-discussRe: AttributeError: 'Blog' object has...
FromSent OnAttachments
A. K.10 Dec 2007 22:12 
Mike Orr11 Dec 2007 16:31 
Mike Orr12 Dec 2007 01:30 
Subject:Re: AttributeError: 'Blog' object has no attribute 'session'
From:Mike Orr (slug@public.gmane.org)
Date:12/12/2007 01:30:27 AM
List:com.googlegroups.pylons-discuss

OK, I finished updating the tutorial. I added things like a site template but did not incorporate gardsted's modify/delete code because I ran out of time. I also introduced an init_model function in the model, which I'll be adding to "SQLAlchemy 0.4 for people in a hurry" shortly. This allows you to import the model anywhere, though you have to call init_model in environment.py or at the beginning of any standalone program.

Can somebody please test this with Pylons 0.9.6.1? I'm on a development version. I tried to keep everything 0.9.6 compatible but it's worth testing.

For some reason h.url_for is returning None, so I hardcoded all the URLs. Maybe somebody can figure out what's going on. (I added a home page route to routing.py, but that was after this error appeared.)

http://wiki.pylonshq.com/display/pylonscookbook/Making+a+Pylons+Blog