<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>PyYou Weblog</title>
	<atom:link href="http://pyyou.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pyyou.wordpress.com</link>
	<description>Those who do not study Zope, are condemmed to reinvent it</description>
	<lastBuildDate>Wed, 23 Nov 2011 13:44:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pyyou.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>PyYou Weblog</title>
		<link>http://pyyou.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pyyou.wordpress.com/osd.xml" title="PyYou Weblog" />
	<atom:link rel='hub' href='http://pyyou.wordpress.com/?pushpress=hub'/>
		<item>
		<title>buildout section in emacs</title>
		<link>http://pyyou.wordpress.com/2011/10/17/buildout-section-in-emacs/</link>
		<comments>http://pyyou.wordpress.com/2011/10/17/buildout-section-in-emacs/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 08:33:41 +0000</pubDate>
		<dc:creator>yboussard</dc:creator>
				<category><![CDATA[buildout]]></category>
		<category><![CDATA[emacs]]></category>

		<guid isPermaLink="false">http://pyyou.wordpress.com/?p=135</guid>
		<description><![CDATA[Add this on your .emacs and alt-x bsection give you a cool buffer for navigate on buildout section name. (defun bsection() (interactive) (occur "\\\[.*\\\] ") (other-window 1) (if (get-buffer "*buildout-section*") (kill-buffer "*buildout-section*")) (rename-buffer "*buildout-section*") (goto-char (search-forward ":[")) )<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=135&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Add this on your .emacs and alt-x bsection give you a cool buffer for navigate on buildout section name.</p>
<p><code><br />
(defun bsection()<br />
  (interactive)<br />
  (occur  "\\\[.*\\\]<br />
")<br />
  (other-window 1)<br />
  (if (get-buffer "*buildout-section*") (kill-buffer "*buildout-section*"))<br />
  (rename-buffer "*buildout-section*")<br />
  (goto-char (search-forward ":["))<br />
)</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyyou.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyyou.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyyou.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyyou.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyyou.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyyou.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyyou.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyyou.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyyou.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyyou.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyyou.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyyou.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyyou.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyyou.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=135&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyyou.wordpress.com/2011/10/17/buildout-section-in-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffd48b7e04f53482581ecc5ab0707fdf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yboussard</media:title>
		</media:content>
	</item>
		<item>
		<title>supervisor on windows ?</title>
		<link>http://pyyou.wordpress.com/2011/10/07/supervisor-on-windows/</link>
		<comments>http://pyyou.wordpress.com/2011/10/07/supervisor-on-windows/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 10:15:00 +0000</pubDate>
		<dc:creator>yboussard</dc:creator>
				<category><![CDATA[plone]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[zope]]></category>
		<category><![CDATA[supervisor]]></category>

		<guid isPermaLink="false">http://pyyou.wordpress.com/?p=127</guid>
		<description><![CDATA[aws.windowsplonecluster is a tool that is tailored to supervise zope architecture on windows systems. Pypi Documentation BugTracker Regards Youenn.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=127&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>aws.windowsplonecluster</strong> is a tool that is tailored to supervise zope architecture on windows systems.</p>
<ul>
<li><a href="http://pypi.python.org/pypi/aws.windowsplonecluster/0.8">Pypi</a></li>
<li><a href="http://packages.python.org/aw.managersmanager/">Documentation</a></li>
<li><a href="https://github.com/yboussard/aws.windowsplonecluster/issues">BugTracker</a></li>
</ul>
<p>Regards Youenn.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyyou.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyyou.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyyou.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyyou.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyyou.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyyou.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyyou.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyyou.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyyou.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyyou.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyyou.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyyou.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyyou.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyyou.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=127&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyyou.wordpress.com/2011/10/07/supervisor-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffd48b7e04f53482581ecc5ab0707fdf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yboussard</media:title>
		</media:content>
	</item>
		<item>
		<title>how to remove dev in stdist name egg ?</title>
		<link>http://pyyou.wordpress.com/2011/10/07/how-to-remove-dev-in-stdist-name-egg/</link>
		<comments>http://pyyou.wordpress.com/2011/10/07/how-to-remove-dev-in-stdist-name-egg/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 09:48:38 +0000</pubDate>
		<dc:creator>yboussard</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[setuptools]]></category>

		<guid isPermaLink="false">http://pyyou.wordpress.com/?p=121</guid>
		<description><![CDATA[You have created a new package. When you build egg in order to distribute ir you have always an dev in the name of tar.gz of file and you don&#8217;t understand. In your setup.py , your egg version is good (without dev word). You don&#8217;t know where this dev is provided. Please , look to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=121&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You have created a new package.</p>
<p>When you build egg in order to distribute ir you have always an dev in the name of tar.gz of file and you don&#8217;t understand.<br />
In your setup.py , your egg version is good (without dev word). You don&#8217;t know where this dev is provided.<br />
Please , look to setup.cfg file. If there is those lines , you&#8217;re on the good way :</p>
<pre>[egg_info]
tag_build = dev</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyyou.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyyou.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyyou.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyyou.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyyou.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyyou.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyyou.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyyou.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyyou.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyyou.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyyou.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyyou.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyyou.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyyou.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=121&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyyou.wordpress.com/2011/10/07/how-to-remove-dev-in-stdist-name-egg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffd48b7e04f53482581ecc5ab0707fdf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yboussard</media:title>
		</media:content>
	</item>
		<item>
		<title>A new tool for profiling zope application : collective.profiler</title>
		<link>http://pyyou.wordpress.com/2011/05/13/a-new-tool-for-profiling-zope-application-collective-profiler/</link>
		<comments>http://pyyou.wordpress.com/2011/05/13/a-new-tool-for-profiling-zope-application-collective-profiler/#comments</comments>
		<pubDate>Fri, 13 May 2011 08:49:45 +0000</pubDate>
		<dc:creator>yboussard</dc:creator>
				<category><![CDATA[performance]]></category>
		<category><![CDATA[profiling]]></category>
		<category><![CDATA[zope]]></category>

		<guid isPermaLink="false">http://pyyou.wordpress.com/?p=115</guid>
		<description><![CDATA[Hello, I&#8217;ve just release yesterday a little tool call collective.profiler. It&#8217;s just an interface to profilehook eggs which define a set of decorators for profiling application. With collective profiler you define via zcml function to be traced. The profiling decorator is apply at zope startup. To see result , please start in fg mode ( [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=115&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;ve just release yesterday a little tool call <a title="ollective.profiler" href="http://pypi.python.org/pypi/collective.profiler/0.3" target="_blank">collective.profiler</a>. It&#8217;s just an interface to <a title="profilehooks" href="http://pypi.python.org/pypi/profilehooks/1.5" target="_blank">profilehook</a> eggs which define a set of decorators for profiling application.</p>
<p>With collective profiler you define via zcml function to be traced. The profiling decorator is apply at zope startup. To see result , please start in fg mode ( print information on stdout) . You can also save profiling data on a filename (see options on README.txt)  in order to analyze your code with the fantastic graphviz (convert data with gprof2dot first).</p>
<p>It&#8217;s not a replacement of zope.profiler but another tool to track performance issue. The typical use case is , you find a fonction that take time. First apply timecall hook to see how time it took really. Second apply the profile hook to see where the time is consume.</p>
<p>Regards Youenn.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyyou.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyyou.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyyou.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyyou.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyyou.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyyou.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyyou.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyyou.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyyou.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyyou.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyyou.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyyou.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyyou.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyyou.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=115&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyyou.wordpress.com/2011/05/13/a-new-tool-for-profiling-zope-application-collective-profiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffd48b7e04f53482581ecc5ab0707fdf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yboussard</media:title>
		</media:content>
	</item>
		<item>
		<title>Automate action with mechanize</title>
		<link>http://pyyou.wordpress.com/2011/02/09/automate-action-with-mechanize/</link>
		<comments>http://pyyou.wordpress.com/2011/02/09/automate-action-with-mechanize/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 11:14:28 +0000</pubDate>
		<dc:creator>yboussard</dc:creator>
				<category><![CDATA[plone]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[recipe]]></category>
		<category><![CDATA[zope]]></category>

		<guid isPermaLink="false">http://pyyou.wordpress.com/?p=107</guid>
		<description><![CDATA[Mechanize is a great tool for web ressources access . It simulates a web browser. This library is part of zope.testbrowser so if you have zope.testbrowser you have mechanize. A little exemple : login in a plone portal ## first log to portal &#62;&#62;&#62; br = mechanize.Browser() &#62;&#62;&#62; br.open(&#8216;http://localhost:8080/plone/login_form&#8217;) &#62;&#62;&#62; br.forms()[0].find_control(&#8216;__ac_name&#8217;) = &#8216;admin&#8217; &#62;&#62;&#62; br.forms()[0].find_control(&#8216;__ac_password&#8217;) = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=107&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a title="Mechanize" href="http://wwwsearch.sourceforge.net/mechanize/" target="_blank">Mechanize</a> is a great tool for web ressources access . It simulates a web browser. This library is part of zope.testbrowser so if you have zope.testbrowser you have mechanize.</p>
<p>A little exemple : login in a plone portal</p>
<blockquote><p>## first log to portal</p>
<p>&gt;&gt;&gt; br = mechanize.Browser()</p>
<p>&gt;&gt;&gt; br.open(&#8216;http://localhost:8080/plone/login_form&#8217;)<br />
&gt;&gt;&gt; br.forms()[0].find_control(&#8216;__ac_name&#8217;) = &#8216;admin&#8217;<br />
&gt;&gt;&gt; br.forms()[0].find_control(&#8216;__ac_password&#8217;) = &#8216;admin&#8217;<br />
&gt;&gt;&gt; br.open(br.forms()[0].click())<br />
&lt;response_seek_wrapper &#8230;<br />
&gt;&gt;&gt; &#8216;admin&#8217; in br._response.read()<br />
True</p></blockquote>
<p>And as you can simulate navigation zope.testbrowser by clicking on links,submit forms &#8230; A handy tool to perform operations on the tedious zmi.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyyou.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyyou.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyyou.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyyou.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyyou.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyyou.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyyou.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyyou.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyyou.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyyou.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyyou.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyyou.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyyou.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyyou.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=107&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyyou.wordpress.com/2011/02/09/automate-action-with-mechanize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffd48b7e04f53482581ecc5ab0707fdf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yboussard</media:title>
		</media:content>
	</item>
		<item>
		<title>Launch zope instance with emacs</title>
		<link>http://pyyou.wordpress.com/2010/10/14/launch-zope-instance-with-emacs/</link>
		<comments>http://pyyou.wordpress.com/2010/10/14/launch-zope-instance-with-emacs/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 09:47:02 +0000</pubDate>
		<dc:creator>yboussard</dc:creator>
				<category><![CDATA[emacs]]></category>
		<category><![CDATA[zope]]></category>

		<guid isPermaLink="false">http://pyyou.wordpress.com/?p=102</guid>
		<description><![CDATA[I use Emacs for my developpement. Shell mode is great. Interactive debugging on emacs also. But I always repeat the same thing : open an emacs shell , rename it, go to my instance and launch it . Well with emacs ,very easy to automate this with a simple function : (defun launch-instance () " [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=102&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I use Emacs for my developpement.</p>
<p>Shell mode is great. Interactive debugging on emacs also. But I always repeat the same thing : open an emacs shell , rename it, go to my instance and launch it . Well with emacs ,very easy to automate this with a simple function :</p>
<pre>(defun launch-instance ()
   " launch zopeinstance  "
   (interactive)
   (shell-command "cd path_to_your_buildout;bin/instance fg&amp;" "*zopeinstance*")
 )</pre>
<p>And M-x launch-instance open a new shell and launch your zopeinstance in debug mode.<br />
Very easy isn&#8217;t it !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyyou.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyyou.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyyou.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyyou.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyyou.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyyou.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyyou.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyyou.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyyou.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyyou.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyyou.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyyou.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyyou.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyyou.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=102&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyyou.wordpress.com/2010/10/14/launch-zope-instance-with-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffd48b7e04f53482581ecc5ab0707fdf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yboussard</media:title>
		</media:content>
	</item>
		<item>
		<title>setuptools takes care of dependency</title>
		<link>http://pyyou.wordpress.com/2010/10/06/setuptools-takes-care-of-dependency/</link>
		<comments>http://pyyou.wordpress.com/2010/10/06/setuptools-takes-care-of-dependency/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 10:47:22 +0000</pubDate>
		<dc:creator>yboussard</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[setuptools]]></category>

		<guid isPermaLink="false">http://pyyou.wordpress.com/?p=98</guid>
		<description><![CDATA[If you specify them !!! Buildout is a fantastic tool to build environnement isolated with eggs. But virtualenv with setuptools too !! When you create an egg  you can specify yours dependency in setup.py in install_requires section. Setuptools or Distribute take care of that so all things take care of that. The generation of script [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=98&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you specify them !!!</p>
<p>Buildout is a fantastic tool to build environnement isolated with eggs. But virtualenv with setuptools too !!</p>
<p>When you create an egg  you can specify yours dependency in setup.py in install_requires section. Setuptools or Distribute take care of that so all things take care of that. The generation of script via entry_point or via zc.recipe.egg also. Sys path generated included dependency and it&#8217;s simply work. Number of buildout after one year break because a lack of specification of dependency (with specific version of course). IMO install_requires is better than fixing version in your buildout because it&#8217;s simply works without or with buildout.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyyou.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyyou.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyyou.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyyou.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyyou.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyyou.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyyou.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyyou.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyyou.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyyou.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyyou.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyyou.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyyou.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyyou.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=98&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyyou.wordpress.com/2010/10/06/setuptools-takes-care-of-dependency/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffd48b7e04f53482581ecc5ab0707fdf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yboussard</media:title>
		</media:content>
	</item>
		<item>
		<title>AllowedContentType in Plone2.5</title>
		<link>http://pyyou.wordpress.com/2010/04/29/allowedcontenttype-in-plone2-5/</link>
		<comments>http://pyyou.wordpress.com/2010/04/29/allowedcontenttype-in-plone2-5/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 08:19:37 +0000</pubDate>
		<dc:creator>yboussard</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[plone]]></category>
		<category><![CDATA[profiling]]></category>

		<guid isPermaLink="false">http://pyyou.wordpress.com/?p=83</guid>
		<description><![CDATA[Hello, I notice that the method allowedContentTypes cost time when you have a lot of type in plone2.5.I don&#8217;t know if plone3 or plone4 are impacted of that. I have 120 types and the time of execution of context.allowedContentTypes is about 0.32sec. The path of allowedContentTypes is : allowedContentTypes -&#62; portal_types.listTypeInfo -&#62; for each content [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=83&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I notice that the method allowedContentTypes cost time when you have a lot of type in plone2.5.I don&#8217;t know if plone3 or plone4 are impacted of that. I have 120 types and the time of execution of context.allowedContentTypes is about 0.32sec.</p>
<p>The path of allowedContentTypes is :</p>
<p>allowedContentTypes -&gt; portal_types.listTypeInfo -&gt; for each content type: portal_types.isConstructionAllowed -&gt; portal_types._queryFactoryMethod -&gt; Products.Five.pythonproducts.patch_ProductDispatcher__bobo_traverse__ -&gt; Products.Five.pythonproducts.product_packages</p>
<p>and Products.Five.pythonproducts.product_packages time call is 0,003s</p>
<p>When you have 100 content type only product_packages is responsible of 0,3sec , this method is a performance bottleneck.</p>
<p>So add this patch fix the problem :</p>
<pre>
<div id="_mcePaste">from Products.Five import pythonproducts</div>
<div id="_mcePaste">old_product_packages = pythonproducts.product_packages</div>
<div id="_mcePaste">pythonproducts.product_packages =  forever.memoize(old_product_packages)</div>
</pre>
<p>Regards Youenn</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyyou.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyyou.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyyou.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyyou.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyyou.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyyou.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyyou.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyyou.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyyou.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyyou.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyyou.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyyou.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyyou.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyyou.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=83&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyyou.wordpress.com/2010/04/29/allowedcontenttype-in-plone2-5/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffd48b7e04f53482581ecc5ab0707fdf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yboussard</media:title>
		</media:content>
	</item>
		<item>
		<title>New Release of iw.fss</title>
		<link>http://pyyou.wordpress.com/2010/04/07/new-release-of-iw-fss/</link>
		<comments>http://pyyou.wordpress.com/2010/04/07/new-release-of-iw-fss/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 08:44:28 +0000</pubDate>
		<dc:creator>yboussard</dc:creator>
				<category><![CDATA[plone]]></category>

		<guid isPermaLink="false">http://pyyou.wordpress.com/?p=79</guid>
		<description><![CDATA[I&#8217;ve just released a new version of iw.fss (2.8rc2 for plone 3) and FileSystemStorage (2.6.3 the same but for plone2.5). Those releases change the behaviour of getData method which retrieve data from filesystem. This change is important in case of big file because now all data are handled by filestream_iterator (in all case). So no memory is consumed when we access directly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=79&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just released a new version of iw.fss  (<a href="http://pypi.python.org/pypi/iw.fss/2.8.0rc2">2.8rc2</a> for plone 3) and FileSystemStorage (<a href="http://plone.org/products/filesystemstorage/releases/2.6.3">2.6.3</a> the same but for plone2.5).</p>
<p>Those releases change the behaviour of getData method which retrieve data from filesystem.<br />
This change is important in case of big file because now all data are handled by filestream_iterator (in all case). So no memory is consumed when we access directly to the data (if you respect this new API)</p>
<p>For the developper point of view , getData works like OFS.Pdata. So to get all data (don&#8217;t do that please) just call str(field.get(instance)), and to get the first block of data call field.get(instance).data and you have a pointer to the next block in calling field.get(instance).next.</p>
<p>So if you are using iw.fss for yours projects please update it, our plone will thank you after that !!</p>
<p>Regards Youenn</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyyou.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyyou.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyyou.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyyou.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyyou.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyyou.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyyou.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyyou.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyyou.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyyou.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyyou.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyyou.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyyou.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyyou.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=79&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyyou.wordpress.com/2010/04/07/new-release-of-iw-fss/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffd48b7e04f53482581ecc5ab0707fdf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yboussard</media:title>
		</media:content>
	</item>
		<item>
		<title>Asynchronous task with plone : easy !!</title>
		<link>http://pyyou.wordpress.com/2010/03/20/asynchronous-task-with-plone-easy/</link>
		<comments>http://pyyou.wordpress.com/2010/03/20/asynchronous-task-with-plone-easy/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 08:32:09 +0000</pubDate>
		<dc:creator>yboussard</dc:creator>
				<category><![CDATA[Non classé]]></category>

		<guid isPermaLink="false">http://pyyou.wordpress.com/?p=74</guid>
		<description><![CDATA[Hello, Most of time in plone we do the work during the transaction. Or some task could be defered after it and better in an another client. collective.indexing do that for catalog indexing. There is a simple solution to do that with Products.CMFSquidTool wich implements all hard work of assynchrone task. So first import this: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=74&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Most of time in plone we do the work during the transaction. Or some task could be defered after it and better in an another client. collective.indexing do that for catalog indexing.<br />
There is a simple solution to do that with  Products.CMFSquidTool wich implements all hard work of assynchrone task.</p>
<p>So first import this:<br />
<code><br />
from Products.CMFSquidTool.queue import Queue<br />
from Products.CMFSquidTool.utils import pruneAsync<br />
</code></p>
<p>And add a new class that send http url after the transaction</p>
<pre>

class CallAsynchronous(Queue):
    """
    Sends requests on transaction commit
    """

    def _finish(self):
        # Process any pending url invalidations. This should *never*
        # fail.
        for url in self.urls():
           ## you can change this to post
            pruneAsync(url, purge_type='GET')
        # Empty urls queue for this thread
        self._reset()

    def queue(self, url_view):
            self.append(url_view)

call_utility = CallAsynchronous()
</pre>
<p>You add an instance in your code at the start of zope wich<br />
And now in your code you can call assynchronous task like this<br />
<code><br />
call_utility.queue('http://myzeoclient:8080/myplone/myview')<br />
</code></p>
<p>So at the end of the transaction url are called . You can by this method delegate some heavy operation to other zeoclient. That&#8217;s all !! easy no ?</p>
<p>Regards Youenn.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pyyou.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pyyou.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pyyou.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pyyou.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pyyou.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pyyou.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pyyou.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pyyou.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pyyou.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pyyou.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pyyou.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pyyou.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pyyou.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pyyou.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pyyou.wordpress.com&amp;blog=2943558&amp;post=74&amp;subd=pyyou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pyyou.wordpress.com/2010/03/20/asynchronous-task-with-plone-easy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ffd48b7e04f53482581ecc5ab0707fdf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yboussard</media:title>
		</media:content>
	</item>
	</channel>
</rss>
