<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>TurboGears Google Group</title>
  <link>http://groups.google.co.in/group/turbogears</link>
  <description>Discussion about the TurboGears front-to-back web development megaframework.</description>
  <language>en</language>
  <item>
  <title>Tracking DB connection usage</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/c2b46974eac9b942/7d66b8deb825ea8d?show_docid=7d66b8deb825ea8d</link>
  <description>
  Hi all, &lt;br&gt; In a TG2 app, I have SQLAlchemy configured with a pool size of 30 &lt;br&gt; (overflow 30), and the Paste HTTP server configured to run with 50 &lt;br&gt; threads. There is a limit of a maximum 50 concurrent connections &lt;br&gt; coming to the server. &lt;br&gt; However, I am regularly seeing SQLAlchemy TimeoutErrors with no &lt;br&gt; connections available in the QueuePool. It seems that there should
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/c2b46974eac9b942/7d66b8deb825ea8d?show_docid=7d66b8deb825ea8d</guid>
  <author>
  rent.lupin.r...@gmail.com
  (James)
  </author>
  <pubDate>Sat, 20 Mar 2010 11:48:56 UT
</pubDate>
  </item>
  <item>
  <title>Re: When are controllers instantiated in TG2? Also: best practice to create (and pool?) expensive objects?</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/a290a841b17a856f?show_docid=a290a841b17a856f</link>
  <description>
  Great - I&#39;ve got a threadlocal connection set up and it works &lt;br&gt; perfectly. &lt;br&gt; Thanks Diez!
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/a290a841b17a856f?show_docid=a290a841b17a856f</guid>
  <author>
  rent.lupin.r...@gmail.com
  (James)
  </author>
  <pubDate>Sat, 20 Mar 2010 11:34:26 UT
</pubDate>
  </item>
  <item>
  <title>Re: When are controllers instantiated in TG2? Also: best practice to create (and pool?) expensive objects?</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/6007765dd8a84c79?show_docid=6007765dd8a84c79</link>
  <description>
  Thanks again for the clarification here.. I thought I would losing my &lt;br&gt; mind for a moment. So, yes, it becomes obvious that controllers that &lt;br&gt; are simply class attributes and behave as such, and controllers called &lt;br&gt; as part of the a _lookup method are normally instantiated objects that &lt;br&gt; are created and destroyed as appropriate to the request (per _lookup
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/6007765dd8a84c79?show_docid=6007765dd8a84c79</guid>
  <author>
  john.lora...@gmail.com
  (John Lorance)
  </author>
  <pubDate>Fri, 19 Mar 2010 17:23:47 UT
</pubDate>
  </item>
  <item>
  <title>Re: [TurboGears] Re: When are controllers instantiated in TG2? Also: best practice to create (and pool?) expensive objects?</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/b6b63eae12a3a450?show_docid=b6b63eae12a3a450</link>
  <description>
  Am 19.03.2010 um 15:51 schrieb John Lorance: &lt;br&gt; That&#39;s a different thing, yes. Maybe I was the dense here - but the OP &lt;br&gt; asked (IMHO) for the &amp;quot;normal&amp;quot; controller hierarchy &amp;amp; it&#39;s objects, &lt;br&gt; which (with the exception of the root) aren&#39;t instantiated after &lt;br&gt; initial load. Simply because they are *class*-attirbutes.
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/b6b63eae12a3a450?show_docid=b6b63eae12a3a450</guid>
  <author>
  de...@web.de
  (Diez B. Roggisch)
  </author>
  <pubDate>Fri, 19 Mar 2010 15:27:40 UT
</pubDate>
  </item>
  <item>
  <title>Re: [TurboGears] Re: When are controllers instantiated in TG2? Also: best practice to create (and pool?) expensive objects?</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/42423ba83d7d41e3?show_docid=42423ba83d7d41e3</link>
  <description>
  Thanks Diez. After a re-read of this thread, I am understanding this more &lt;br&gt; clearlt... just a weird situation to understand. Additionally, if I look at &lt;br&gt; the sample code: &lt;br&gt; class BlogController(BaseController) : &lt;br&gt; @expose() &lt;br&gt; def _lookup(self, year, month, day, id, *remainder): &lt;br&gt; dt = date(int(year), int(month), int(day))
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/42423ba83d7d41e3?show_docid=42423ba83d7d41e3</guid>
  <author>
  john.lora...@gmail.com
  (John Lorance)
  </author>
  <pubDate>Fri, 19 Mar 2010 14:51:42 UT
</pubDate>
  </item>
  <item>
  <title>Re: [TurboGears] cherrypy.HTTPRedirect vs. cherrypy.InternalRedirect</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/4cd9a5d2bd9e2101/76e57ef4013e8ca2?show_docid=76e57ef4013e8ca2</link>
  <description>
  Please don&#39;t hijack other threads &amp;amp; just change the subject. This is &lt;br&gt; very confusing for those who prefer their mails being threaded. &lt;br&gt; Well, the disadvantage is pretty much what you say yourself - the &lt;br&gt; browser doesn&#39;t change the url. This might be desirable, but can also &lt;br&gt; cause problems if the user hits &amp;quot;reload&amp;quot; and is asked if she&#39;s sure
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/4cd9a5d2bd9e2101/76e57ef4013e8ca2?show_docid=76e57ef4013e8ca2</guid>
  <author>
  de...@web.de
  (Diez B. Roggisch)
  </author>
  <pubDate>Fri, 19 Mar 2010 09:09:54 UT
</pubDate>
  </item>
  <item>
  <title>Re: [TurboGears] Re: When are controllers instantiated in TG2? Also: best practice to create (and pool?) expensive objects?</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/92456af86ff54451?show_docid=92456af86ff54451</link>
  <description>
  Am 18.03.2010 um 18:53 schrieb John Lorance: &lt;br&gt; No. &lt;br&gt; No. &lt;br&gt; The only controller that currently gets instantiated on a per-request- &lt;br&gt; base is the root-controller. And I don&#39;t read anything else from the &lt;br&gt; _lookup/_default docs either. &lt;br&gt; HTH, &lt;br&gt; Diez
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/92456af86ff54451?show_docid=92456af86ff54451</guid>
  <author>
  de...@web.de
  (Diez B. Roggisch)
  </author>
  <pubDate>Fri, 19 Mar 2010 09:06:25 UT
</pubDate>
  </item>
  <item>
  <title>Re: [TurboGears] Re: Install TG 2.1 on Centos issues</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/0dc378cce94638a3/c3e28b5483d91860?show_docid=c3e28b5483d91860</link>
  <description>
  And, as you can now see at that ticket ( &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://trac.turbogears.org/ticket/2469&quot;&gt;[link]&lt;/a&gt; ), I&#39;ve proffered up a fix that will &lt;br&gt; (hopefully) make it into the next release. Especially since it was me that &lt;br&gt; introduced the bug. Sorry about that.
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/0dc378cce94638a3/c3e28b5483d91860?show_docid=c3e28b5483d91860</guid>
  <author>
  mjpe...@gmail.com
  (Michael Pedersen)
  </author>
  <pubDate>Tue, 16 Mar 2010 04:26:03 UT
</pubDate>
  </item>
  <item>
  <title>Re: [TurboGears] Where is the TG2.1 document?</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/5e4881358a034e6f/f4b604071d82bf0d?show_docid=f4b604071d82bf0d</link>
  <description>
  The linked headings here &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://turbogears.org/2.1/docs/index.html&quot;&gt;[link]&lt;/a&gt; are &lt;br&gt; no longer underlined when I mouseover them. Of course, my mouse pointer &lt;br&gt; turns into a hand, which means the headings are a link, but I still bet &lt;br&gt; other people are going to fail to find the documentation because it&#39;s &lt;br&gt; hard to know those headings are the only links into the documentation.
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/5e4881358a034e6f/f4b604071d82bf0d?show_docid=f4b604071d82bf0d</guid>
  <author>
  t...@alwaysreformed.com
  (Tim Black)
  </author>
  <pubDate>Thu, 18 Mar 2010 23:34:35 UT
</pubDate>
  </item>
  <item>
  <title>cherrypy.HTTPRedirect vs. cherrypy.InternalRedirect</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/4cd9a5d2bd9e2101/317809eb12d03f4e?show_docid=317809eb12d03f4e</link>
  <description>
  Hi, &lt;br&gt; Can I have a naive question? Is there is any hidden catch in using &lt;br&gt; cherrypy.InternalRedirect instead of cherrypy.HTTPRedirect (in deployed &lt;br&gt; application behind apache, https. ...)? I&#39;d like to use the &lt;br&gt; InternalRedirect because it hides (at least in the navigation bar) the &lt;br&gt; url parameters ... &lt;br&gt; I&#39;m using TurboGears 1.0.8.
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/4cd9a5d2bd9e2101/317809eb12d03f4e?show_docid=317809eb12d03f4e</guid>
  <author>
  pito...@fns.uniba.sk
  (Michal Pitonak)
  </author>
  <pubDate>Thu, 18 Mar 2010 22:47:14 UT
</pubDate>
  </item>
  <item>
  <title>Re: When are controllers instantiated in TG2? Also: best practice to create (and pool?) expensive objects?</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/3f359f777941b4bc?show_docid=3f359f777941b4bc</link>
  <description>
  Diez, &lt;br&gt; Just so that I am reading you (and this thread) clearly here about &lt;br&gt; controller instantiation... all controller classes are instantiated as &lt;br&gt; objects on a per request basis.. yes? Therefore, if I have a sub &lt;br&gt; controller with an __init__ that does some work needed, common to all &lt;br&gt; my controller class methods, it can assign local (self) attributes in
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/3f359f777941b4bc?show_docid=3f359f777941b4bc</guid>
  <author>
  john.lora...@gmail.com
  (John Lorance)
  </author>
  <pubDate>Thu, 18 Mar 2010 17:53:05 UT
</pubDate>
  </item>
  <item>
  <title>Re: tg/elixir question - select distinct problems..</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/61988d8673e0cf6e/28881f6098c9fdda?show_docid=28881f6098c9fdda</link>
  <description>
  diez &lt;br&gt; you have been of great help &lt;br&gt; my team thanks you very much, you have solved a great mystery for &lt;br&gt; us :) &lt;br&gt; rotem
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/61988d8673e0cf6e/28881f6098c9fdda?show_docid=28881f6098c9fdda</guid>
  <author>
  rotemta...@gmail.com
  (Rotem Tamir)
  </author>
  <pubDate>Thu, 18 Mar 2010 14:08:46 UT
</pubDate>
  </item>
  <item>
  <title>Re: challenging issue with logging issues - need guru help please!</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/7dd73065672744f9/5d6ab05fc9b9dc61?show_docid=5d6ab05fc9b9dc61</link>
  <description>
  &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://groups.google.com/group/pylons-discuss/browse_thread/thread/9b9add4529b3779c&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; answered my question
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/7dd73065672744f9/5d6ab05fc9b9dc61?show_docid=5d6ab05fc9b9dc61</guid>
  <author>
  robertnevill...@gmail.com
  (robneville73)
  </author>
  <pubDate>Thu, 18 Mar 2010 13:51:12 UT
</pubDate>
  </item>
  <item>
  <title>Re: [TurboGears] When are controllers instantiated in TG2? Also: best practice to create (and pool?) expensive objects?</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/7dc38be9a394a585?show_docid=7dc38be9a394a585</link>
  <description>
  Hi, &lt;br&gt; I&#39;ve even been surprised by them being instantiated more than once per &lt;br&gt; process. &lt;br&gt; But it&#39;s not as bad as it looks. &lt;br&gt; No. The *root* controller is instantiated as often as that. But &lt;br&gt; clearly all sub-controllers ar class-attributes, thus they aren&#39;t &lt;br&gt; instantiated more than once per process. &lt;br&gt; Is that wierd? Certainly. If you insist, just make the root-controller
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/7dc38be9a394a585?show_docid=7dc38be9a394a585</guid>
  <author>
  de...@web.de
  (Diez B. Roggisch)
  </author>
  <pubDate>Thu, 18 Mar 2010 00:33:41 UT
</pubDate>
  </item>
  <item>
  <title>When are controllers instantiated in TG2? Also: best practice to create (and pool?) expensive objects?</title>
  <link>http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/35cdba8448a6df60?show_docid=35cdba8448a6df60</link>
  <description>
  Hi all, &lt;br&gt; When running a tg2 app with &amp;quot;paster serve&amp;quot;, I was expecting controller &lt;br&gt; objects to be instantiated once per worker thread. &lt;br&gt; However, when I add logging to BaseController.__init__, it seems that &lt;br&gt; the full hierarchy of controller objects is instantiated once per &lt;br&gt; request. &lt;br&gt; E.g. when I exercised my app with ab -c 100 -n 1000 (100 concurrent
  </description>
  <guid isPermaLink="true">http://groups.google.co.in/group/turbogears/browse_thread/thread/5674a83591ad7248/35cdba8448a6df60?show_docid=35cdba8448a6df60</guid>
  <author>
  rent.lupin.r...@gmail.com
  (James)
  </author>
  <pubDate>Wed, 17 Mar 2010 20:32:57 UT
</pubDate>
  </item>
  </channel>
</rss>
