On Tue, Feb 16, 2010 at 4:00 AM, mk <mrk...@gmail.com> wrote: > Hello everyone, > > On the front page I see: > > "The book covers the Pylons 0.9.7 release..." > > Is there any chance for Pylons Book to be upgraded for Pylons 1.0?
I can't speak about the book, but I'd assume no unless James says otherwise. There's not that many changes that would warrant a new edition. Although I'm hoping James maintains a list of the differences between the book and the current version of Pylons. But there wouldn't be much on it except what's in Ben's email earlier. > I need to restart my "learning Pylons" effort (which for the lack of time I > had to suspend) and previously found Pylons Book to be very readable (big > thanks to James for the effort!), but I am worried that if I use Pylons 1.0 > I'm going to get problems. > > Why 1.0 instead of 0.9.7: well I need SQLA as recent as possible, which has > seen many advanced features done. I have used SQLA 0.5.3 on medium-sized > project and while I certainly didn't hit the wall with SQLA, in some cases > I've been pushing it hard, I will need those features on upcoming project. There's hardly any difference in the model between 1.0 and 0.9.7. The sessionmaker args are updated to SQLA 0.5 standards, and the comments have been removed from the default model. That's because there are more parallel ways now to define your model (declarative vs traditional, specified columns vs autoloading), and it's more confusing than it's worth to outline all of them in comments. Just follow the SQLA manual. Anything depending on a live engine has to be set in init_model(), while anything else can be defined at module level. In practice, this means that autoloaded tables and the mappers that depend on them have to be in init_model(), but if you're not using autoloading you can leave init_model() alone and declare everything outside it. -- Mike Orr <sluggos...@gmail.com> -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.