TurboGears 2.1a1 released

Introduction

We are ready to start testing the next version of TurboGears: 2.1.  This release is the first of what will be a series of alpha and beta releases before we move into production.  2.1 is not a huge departure from the 2.0 codebase, rather, it’s efforts are to clean up and speed up the existing codebase, both conceptually and technically.  So, if you have some time, install it today and give it a whirl!

Major Differences (Things that affect present 2.0 users)

==================================================

Rendering

The item that will affect most 2.0 users is the renderer.  Json rendering is now not a special hard-coded case, so you will need to add it to your default config.  Most 2.0 apps will have to add the following line to their app_cfg.py if you are using @expose(‘json’) at all::

base_config.renderers.append(‘json’)

If you should forget to do this, you will get an error message reminding you to do so.

TurboJson

Support for TurboJson has been removed.  We have not found many people using this, and in fact, if you still need it, you can still put it into your TG application.  For the most part SimpleJson does a good job of rendering Json for us, and because it is a part of the python default library in 2.6, it makes sense to utilize it.  This allowed us to remove about 8 package dependencies.

Minor Differences (Things that affect folks familiar with how TG already works)

==================================================================

Dispatch

The dispatch mechanism has been completely refactored.  This means that pesky things like requiring *args at the end of a RestController.edit are now not required.  The new dispatcher is much faster, up to 200% faster for RestController dispatching.  It also has the flexibility to add a _dispatch() method to your Controller class to drive the dispatch.  This is not yet documented, but it’s on the high priority list for documentation.

Setup-app

Setup-app has been broken into two pieces, schema creation and bootstrapping.  This will not affect existing TurboGears apps, but if you were familiar with a certain way quickstart works, this has changed.  There are now schema.py and bootstrap.py modules in the websetup directory of your quickstart.  These isolate database schema creation from adding bootstrap data to the database.  This helps when you are writing scripts that modify a database, but do not add the bootstrap data (useful for testing).  Having them in separate modules makes the separation of concerns more apparent.

Catwalk

While the branding was nice, we decided to drop the Catwalk name in order to make it easier to follow tutorials that utilize tgext.admin.  Therefore, in quickstarts, you will no longer see catwalk, just tgext.admin calls.  This also allowed us to drop yet another dependency.  Catwalk will still remain a viable package, but it will no longer be maintained.  The good news is that nearly all the functionality for the admin resides withing tgext.admin.  Catwalk was simply a configuration of the former.

New Features

===============

Documentation

A concerted effort has been made to increase the depth, breadth, and organization of the docs.  Areas of focus have been: Organization of the docs themselves, Configuration, Tutorials, and Utilities.  Part of the 2.1 push will be to get the docs to a level of completion never seen before, and an organized effort is taking place to ensure this aspect of the project’s success.

Mako!!

TurboGears2 has always supported Mako, but we are now providing template support in our quickstart.  When you quickstart a new project, it will ask you if you want to use mako templates instead of Genshi.  Mako is usually about 3x as fast as Genshi for complex rendered pages, and up to 10x as fast for simple ones.  Careful attention has been given the Admin to make sure it still works with Mako (it does), so you can be certain if you make the choice to use mako, it will work out of the box.

local:

In order to handle template inheritance gracefully, an identifier for the local project has been added to the template lookup in Mako.  This allows the admin to inherit your local project’s master.mak file.  An inhertance clause in Mako that uses local would looks something like::

<%inherit file=”local:templates.master”/>

Genshi has support for this automatically, but it is not explicit, and we are looking at ways to support this explicitly before 2.1 goes to final.

ToscaWidgets2 Support

ToscaWidgets2 recently made a 2.0a1 release.  We have included in TurboGears2.1 the ability to easily configure your application for TW2, along with other added support for this next-generation widget framework.

Thanks

=======

This release comes not without considerable effort on the part of the TurboGears team.  I would like to thank Michael Pedersen for his undying effort with the docs.  Michael helped to collect about 190 todo items for our docs, and squashed a countless number of them.  We now have about 130 items todo on the docs, but that number is ever-decreasing with his and other’s effort.  Thanks to those folks who have contributed to the DocSprint, and who still continue to contribute, including Michael Fletcher, Jorge Vargas, and Seth Davis.  If you use TurboGears, and find you need to dig into the source code to figure stuff out, please help us make the docs better by contributing to a DocSprint or sending us a pull request.

Thanks to Jorge for straightening out the Json rendering issue.  Also, by removing TurboJson from the stack of required packages, we have opened the door for TurboGears to run on AppEngine and Jython.  This would not be possible without Jorge’s effort.

Thanks also to Mark Ramm, Christopher Ardnt, Florent Aide, Alberto Valverde, Paul Johnston, Christoph Zwerschke, and Lee McFadden for their continued support of TG.

Finally, I just wanted to send a thank you to the folks who have contributed to the TG codebase by association.  Mike Bayer, Jason Kirtland, Ben Bangert, Philip Jenvey, Chris McDonough, and last but not least Ian Bicking.  Thanks for all of your effort making possible this great conglomeration of parts.

56 Responses to “TurboGears 2.1a1 released”

  1. Damn, this sounds cool. Will there be a 2.0 to 2.1 migration document describing all the changes one must, should and could do to their TG project to migrate to 2.1? With explicit patches and pointers to more info (like how to move from Genshi to Mako templates)?

    What I love in TG is the relatively painless upgrades for existing software, but some more explicit docs for that would be very appreciated so that I don’t have to do a diff on the quickstart projects between the releases.

  2. percious says:

    @Aigars:

    The above document describes all that is needed to migrate from 2.0 to 2.1. Basically, you add:

    base_config.renderers.append(‘json’)

    To your app_cfg.py, and you are good to go. I appreciate your notion about explicit docs, but in this case, I believe the announcement is enough of a document to describe the changes needed. I will consider adding more about what changes between versions in future alpha releases, and certainly 2.1 final will have an explicit document about what is different from 2.0.

  3. sharky says:

    How can we install it? The tutorial to install it automatically dont work

  4. sports news says:

    Hey There. I found your blog using msn. This is a really well written article. I’ll make sure to bookmark it and return to read more of your useful information. Thanks for the post. I will certainly comeback.

  5. My brother recommended I might like this web site. He was totally right. This post actually made my day. You can not imagine just how much time I had spent for this info! Thanks!

  6. How do i just say such a relief to discover a kid who actually knows what theyre having a debate about on the web. You certainly recognize how to bring an issue to light to make it important. Lots more people will need to see this and see this side in the story. I cant believe youre less popular since you definitely have gift.

  7. You really make it seem really easy with your presentation but I to find this topic to be actually something that I think I’d never understand. It sort of feels too complicated and very large for me. I am looking ahead in your subsequent publish, I will try to get the cling of it!

  8. stumble says:

    32. You can certainly see your skills in the paintings you write. The sector hopes for even more passionate writers like you who aren’t afraid to mention how they believe. Always follow your heart.

  9. BG mail says:

    What i don’t realize is in fact how you’re now not actually much more neatly-liked than you may be right now. You are very intelligent. You recognize therefore significantly when it comes to this subject, made me personally believe it from so many varied angles. Its like men and women don’t seem to be involved unless it is one thing to do with Girl gaga! Your own stuffs excellent. Always care for it up!

  10. Helpful information. Fortunate me I found your website unintentionally, and I am stunned why this coincidence didn’t happened earlier! I bookmarked it.

  11. Excellent site. Plenty of helpful info here. I’m sending it to several pals ans additionally sharing in delicious. And certainly, thanks in your sweat!

  12. BG mail says:

    Good day very cool blog!! Man .. Beautiful .. Superb .. I will bookmark your site and take the feeds also…I am happy to seek out so many useful info here within the submit, we need work out more techniques on this regard, thanks for sharing.

  13. MovieReview says:

    I am often to blogging and i really respect your content. The article has really peaks my interest. I am going to bookmark your website and preserve checking for new information.

  14. Read was interesting, stay in touch…

    [...]please visit the sites we follow, including this one, as it represents our picks from the web[...]…

  15. Curt Sobol says:

    Good day I am so delighted I found your website. A quick question if you don’t mind. I’m really enjoying the design and layout of your site. It’s a very easy on the eyes which makes it easy to follow for me to come here and visit more often. Did you hire out a designer to create your theme? Superb work!…

  16. A formidable share, I basically given this onto a colleague who was performing a bit of analysis on this. And he really purchased me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the treat! Even so yeah Thnkx for spending the time to discuss this, I feel strongly about it and really like reading much more on this topic. If potential, as you grow to be expertise, would you mind updating your weblog with a lot more details? It is highly helpful for me. Huge thumb up for this weblog submit!

  17. It seems like the internet is where it’s at. I studied Computer Information and Film/Video at school, but I’m not too shabby with a keyboard when it comes to writing interesting stuff. Does anyone know of anyone (aside from Drudge and Arianna Huffington) who has been able to make a few bucks by blogging on a site from home?.

  18. It’s actually a cool and helpful piece of information. I am satisfied that you just shared this useful information with us. Please keep us informed like this. Thank you for sharing.

  19. First-class story it is without doubt. My teacher has been looking for this information.

  20. internet says:

    Useful info. Fortunate me I discovered your web site by chance, and I’m stunned why this twist of fate didn’t happened in advance! I bookmarked it.

  21. fantastic points altogether, you simply gained a brand new reader. What may you suggest in regards to your publish that you made a few days ago? Any positive?

  22. Gold Price says:

    This software is really amazing and interesting,Its features are really good.It works really good.
    Gold Price

  23. this comment is for administrator ONLY. you lose out at monetising your blog bro, check out this article where a blogger reveals her secret earning systems, its hot shit http://earn-free-online.com/nothing-to-buy-case-study-281-made-in-4-minutes/

  24. It’s actually a great and useful piece of information. I am happy that you just shared this useful information with us. Please stay us informed like this. Thanks for sharing.

  25. I’m really impressed along with your writing skills and also with the layout in your blog. Is this a paid topic or did you modify it yourself? Either way keep up the excellent high quality writing, it’s uncommon to peer a nice weblog like this one these days.

  26. wimax says:

    I’m impressed, I have to say. Actually hardly ever do I encounter a weblog that’s both educative and entertaining, and let me inform you, you could have hit the nail on the head. Your concept is excellent; the issue is something that not sufficient individuals are talking intelligently about. I am very joyful that I stumbled across this in my search for something relating to this.

  27. rv repair says:

    Thanks for another fantastic article. The place else could anyone get that type of info in such a perfect way of writing? I have a presentation subsequent week, and I am at the look for such information.

  28. plant feed says:

    Wow! This can be one particular of the most helpful blogs We have ever arrive across on this subject. Basically Great. I’m also a specialist in this topic therefore I can understand your effort.

  29. Plan a voter registrati-on drive, targeting the disenfranc-hised, the poor, the unemployed-… and register them to vote. Get them to the polls… to elect candidates from among yourselves for County Commission-er. Run candidates for state rep and senator from your county… and get out the vote.men fashion

  30. I am often to blogging and i really respect your content. The article has really peaks my interest. I’m going to bookmark your web site and keep checking for new information.

  31. Jamie Sava says:

    In the grand pattern of things you actually get a B+ for hard work. Exactly where you misplaced everybody ended up being on the specifics. You know, it is said, details make or break the argument.. And that couldn’t be more true here. Having said that, allow me inform you just what exactly did give good results. Your writing is extremely powerful which is most likely why I am taking an effort to comment. I do not make it a regular habit of doing that. Next, even though I can notice a leaps in logic you come up with, I am not necessarily convinced of just how you seem to unite the details which inturn help to make the actual conclusion. For now I shall subscribe to your position but wish in the foreseeable future you connect your dots much better.

  32. Thanks for this post. I certainly agree with what you’re saying. I’ve been talking about this subject a good deal lately with my brother so hopefully this will get him to see my point of view. Fingers crossed!

  33. Related…

    [...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]…

  34. katalog www says:

    Hej. Ogromnie bajerancki stronka. Przedstawiam indywidualna stronkę internetową www. Niezwykle jest bajerancka i naturalnie Ci się wkreci. Uzupełnij w tym miejscu własną witrynę www.

  35. Here is my best view…

  36. red dwarf says:

    I love the layout of this place, it looks very pro! Is the theme a free one or a premium one?

  37. An excellent post. I enjoyed it immensely. Can you recommend any similar sites?

  38. Many thanks for an unbelievable put up, would study your particular others topics. thank you your notions with this, I experienced a lttle bit made an impact to by this post. Merit again! You wanna make a great time. Got some excellent data here. I do think that if more individuals thought about it like this, they’d have got a better time have the hold ofing the matter.

  39. buggin out says:

    Insects and people do not get together properly. The infestation pests could be a critical threat in order to human beings, and even with other animals or typical property animals, like canines. It takes merely one exposure to transmit a significant illness. Listed here are some of the most typical pests and the health dangers associated with these people.Mosquitoes Mosquitoes are thought becoming a widespread bug along with customers typically do not take on safeguards to get rid of, minimize or stay away from a lot more important all of them. Many individuals take into account the chew a irritation in which itches lightly after which goes away. The truth is, mosquitoes have several conditions that can be dangerous to individuals.Western side Earth Virus is really a mosquito-transmitted disease that episodes individuals silently without showing any signs and symptoms. Saint Louis encephalitis is an additional disease related to this insect that creates infection in the human brain and will lead to long-term incapacity or perhaps dying. It can be most prevalent in the japanese along with central declares.Mosquito hits could also grow to be attacked, specifically in kids, when microorganisms end up in the actual nip. This will cause the particular chunk for being reddish, swell, as well as fill up along with pus. This disorder referred to as impetigo, and requirements therapy together with prescription medication. It can cause permanent scarring of the skin.

  40. Naida Dayne says:

    Thanks for writing about DailyLit. I love your reference to “DailyLit-erary therapy”. Note that we’ve recently made all of the books and stories on DailyLit free to the reader (no nominal fee for any book).

  41. What i don’t understood is in fact how you are now not actually much more smartly-liked than you may be right now. You’re so intelligent. You realize thus considerably when it comes to this subject, made me in my view believe it from so many varied angles. Its like men and women are not interested except it’s one thing to do with Girl gaga! Your personal stuffs excellent. All the time maintain it up!

  42. I just like the valuable information you supply in your articles. I will bookmark your blog and check once more right here frequently. I’m somewhat certain I will learn a lot of new stuff right right here! Good luck for the following!

  43. It’s actually a nice and helpful piece of info. I am happy that you simply shared this useful info with us. Please keep us up to date like this. Thank you for sharing.

  44. I used to be very pleased to find this web-site.I wanted to thanks on your time for this glorious read!! I undoubtedly having fun with each little bit of it and I’ve you bookmarked to take a look at new stuff you blog post.

  45. au pair v usa says:

    Hey this is a great looking blog, is wordpress? Forgive me for the foolish question but if so, what theme is? Thanks!

  46. christian louboutin pumps|jimmy choo shoes|louboutin heels…

    [...]percious.com – TurboGears 2.1a1 released[...]…

  47. Buy online annuity…

    [...]percious.com – TurboGears 2.1a1 released[...]…

  48. Juan Thoams says:

    Great write-up, I¡¦m normal visitor of one¡¦s blog, preserve up the good operate, and It is going to be a regular visitor for a long time.

  49. Good day! This is kind of off topic but I need some guidance from an established blog. Is it hard to set up your own blog? I’m not very techincal but I can figure things out pretty fast. I’m thinking about making my own but I’m not sure where to start. Do you have any points or suggestions? Cheers

Leave a Reply