<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Pylons Worker&#160;Threads</title>
	<atom:link href="http://chrismoos.com/2009/03/04/pylons-worker-threads/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrismoos.com/2009/03/04/pylons-worker-threads/</link>
	<description>developer by day, developer by night</description>
	<lastBuildDate>Sat, 17 Jul 2010 19:16:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jaux</title>
		<link>http://chrismoos.com/2009/03/04/pylons-worker-threads/comment-page-1/#comment-12880</link>
		<dc:creator>jaux</dc:creator>
		<pubDate>Sun, 07 Feb 2010 05:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://chrismoos.com/?p=258#comment-12880</guid>
		<description>@Anil simply change start_myworker() to start_myworker(max_tag_len) and call it in load_environment with appropriate variable. app_globals is a pylons global which is available for pylons threads (the threads pylons creates to handle requests).</description>
		<content:encoded><![CDATA[<p>@Anil simply change start_myworker() to start_myworker(max_tag_len) and call it in load_environment with appropriate variable. app_globals is a pylons global which is available for pylons threads (the threads pylons creates to handle requests).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil</title>
		<link>http://chrismoos.com/2009/03/04/pylons-worker-threads/comment-page-1/#comment-12031</link>
		<dc:creator>Anil</dc:creator>
		<pubDate>Sun, 29 Nov 2009 15:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://chrismoos.com/?p=258#comment-12031</guid>
		<description>I have imported it. Still no luck. Oh well. Thanks!

    from pylons import app_globals
    x = app_globals.MAX_TAG_LENGTH
    worker = TagMail(x)
    worker.start()</description>
		<content:encoded><![CDATA[<p>I have imported it. Still no luck. Oh well. Thanks!</p>
<p>    from pylons import app_globals<br />
    x = app_globals.MAX_TAG_LENGTH<br />
    worker = TagMail(x)<br />
    worker.start()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Moos</title>
		<link>http://chrismoos.com/2009/03/04/pylons-worker-threads/comment-page-1/#comment-11990</link>
		<dc:creator>Chris Moos</dc:creator>
		<pubDate>Fri, 27 Nov 2009 02:26:54 +0000</pubDate>
		<guid isPermaLink="false">http://chrismoos.com/?p=258#comment-11990</guid>
		<description>Maybe you need to import app_globals? Pylons right?</description>
		<content:encoded><![CDATA[<p>Maybe you need to import app_globals? Pylons right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil</title>
		<link>http://chrismoos.com/2009/03/04/pylons-worker-threads/comment-page-1/#comment-11941</link>
		<dc:creator>Anil</dc:creator>
		<pubDate>Mon, 23 Nov 2009 04:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://chrismoos.com/?p=258#comment-11941</guid>
		<description>Thanks for the great code! I am having problems with passing variables to the thread though. I keep getting:

No object (name: app_globals) has been registered for this thread

In the start_worker, I have:

    worker = TagMail(app_globals.MAX_TAG_LENGTH)
    worker.start()

Any help?
Thanks</description>
		<content:encoded><![CDATA[<p>Thanks for the great code! I am having problems with passing variables to the thread though. I keep getting:</p>
<p>No object (name: app_globals) has been registered for this thread</p>
<p>In the start_worker, I have:</p>
<p>    worker = TagMail(app_globals.MAX_TAG_LENGTH)<br />
    worker.start()</p>
<p>Any help?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chrismoos</title>
		<link>http://chrismoos.com/2009/03/04/pylons-worker-threads/comment-page-1/#comment-3177</link>
		<dc:creator>chrismoos</dc:creator>
		<pubDate>Wed, 04 Mar 2009 21:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://chrismoos.com/?p=258#comment-3177</guid>
		<description>Glad you found it helpful. Also, if you want to pass a SQLAlchemy object into the queue, you will experience thread issues. If you wanted to pass a user into your queue, either pass the individual values you need (user.name, user.username) etc,., or pass (user.id) and then in the thread you query and get the object there.</description>
		<content:encoded><![CDATA[<p>Glad you found it helpful. Also, if you want to pass a SQLAlchemy object into the queue, you will experience thread issues. If you wanted to pass a user into your queue, either pass the individual values you need (user.name, user.username) etc,., or pass (user.id) and then in the thread you query and get the object there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Van</title>
		<link>http://chrismoos.com/2009/03/04/pylons-worker-threads/comment-page-1/#comment-3170</link>
		<dc:creator>Chris Van</dc:creator>
		<pubDate>Wed, 04 Mar 2009 10:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://chrismoos.com/?p=258#comment-3170</guid>
		<description>Thanks Chris,

You&#039;ve done three things for me here that I am thankful for, one is show me how to call helper programs from the lib directory, two is a simple example of  threading in python, and three is using the built in python queue. 

Much appreciated, and very clear too.

Thanks a lot,

Chris.</description>
		<content:encoded><![CDATA[<p>Thanks Chris,</p>
<p>You&#8217;ve done three things for me here that I am thankful for, one is show me how to call helper programs from the lib directory, two is a simple example of  threading in python, and three is using the built in python queue. </p>
<p>Much appreciated, and very clear too.</p>
<p>Thanks a lot,</p>
<p>Chris.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
