<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Piece of Py(thon) - Latest Comments</title><link>http://pieceofpy.disqus.com/</link><description>Python, agile, and misc tech ramblings.</description><atom:link href="https://pieceofpy.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 28 Apr 2016 01:39:47 -0000</lastBuildDate><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/08/01/pyramid-and-traversal-with-a-restful-interface#comment-2646832632</link><description>&lt;p&gt;In the 'StockpotBase' class you set the models as their own parents. It would seem that this would result in an infinite iteration when using authorization; lineage is used to iterate through parents until a resource is found that has an __acl__ member.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan DaCosta</dc:creator><pubDate>Thu, 28 Apr 2016 01:39:47 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2009/03/05/concatenating-pdf-with-python/#comment-2246122834</link><description>&lt;p&gt;Is it possible to iterate alle pdfs with one page in a directory&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Witte</dc:creator><pubDate>Thu, 10 Sep 2015 09:10:13 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2008/10/05/fat-models-skinny-controllers/#comment-2071290767</link><description>&lt;p&gt;I am very contented&lt;br&gt;  to get this blog! I will bookmark this webpage and share this with my friends&lt;br&gt;  too.&lt;br&gt;  &lt;a href="http://www.unbeatableinsuranceagency.com/contact-us.html" rel="nofollow noopener" target="_blank" title="http://www.unbeatableinsuranceagency.com/contact-us.html"&gt;health&lt;br&gt;  insurance florida individual plans&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">felyhely</dc:creator><pubDate>Wed, 10 Jun 2015 01:19:51 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2008/10/05/fat-models-skinny-controllers/#comment-2067823247</link><description>&lt;p&gt;Wowww! Thanks a lot&lt;br&gt;  baby! I always required writing in my site something very special like your&lt;br&gt;  blog has. You have really helped me a lot.&lt;br&gt;  &lt;a href="http://www.unbeatableinsuranceagency.com/why-did-my-insurance-rate-increase.html" rel="nofollow noopener" target="_blank" title="http://www.unbeatableinsuranceagency.com/why-did-my-insurance-rate-increase.html"&gt;florida&lt;br&gt;  health insurance companies&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">felyhely</dc:creator><pubDate>Mon, 08 Jun 2015 07:37:18 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2008/10/05/fat-models-skinny-controllers/#comment-2061301278</link><description>&lt;p&gt;Please, will you&lt;br&gt;  really post some more things about the same issue; I am actually a great fan&lt;br&gt;  of your blog...&lt;br&gt;  &lt;a href="http://www.unbeatableinsuranceagency.com/report-claim.html" rel="nofollow noopener" target="_blank" title="http://www.unbeatableinsuranceagency.com/report-claim.html"&gt;Health&lt;br&gt;  Insurance Mascotte Florida&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">felyhely</dc:creator><pubDate>Thu, 04 Jun 2015 02:53:30 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2009/03/05/concatenating-pdf-with-python/#comment-2054162857</link><description>&lt;p&gt;Thank you. What if one wants to iterate all the pdfs in a directory?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Miche</dc:creator><pubDate>Sat, 30 May 2015 23:59:59 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2012/01/10/working-with-pyramid-and-ming#comment-1122601636</link><description>&lt;p&gt;Hi there... I am quite new to Python, Pyramid and MongoDB. I tried applying your code you provided as is to new pyramid project I created. I added the dependencies required to run this, and I created a view to login. The error I am getting is: AttributeError: 'str' object has no attribute '_auto_ensure_indexes' it gives the error in models/&lt;a href="http://__init__.py" rel="nofollow noopener" target="_blank" title="__init__.py"&gt;__init__.py&lt;/a&gt; on line 19: "session.ensure_indexes(mapper.collection)" - this is line 19 on your code(this page), can you please help me with this?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Renier de Bruyn</dc:creator><pubDate>Thu, 14 Nov 2013 05:20:49 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2009/03/05/concatenating-pdf-with-python/#comment-959883488</link><description>&lt;p&gt;Holy Lord, grammer!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Grafl</dc:creator><pubDate>Fri, 12 Jul 2013 11:10:43 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2009/03/05/concatenating-pdf-with-python/#comment-959882326</link><description>&lt;p&gt;Thank you. This snippet has saved me from a lot of time at work.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Grafl</dc:creator><pubDate>Fri, 12 Jul 2013 11:09:40 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/08/01/pyramid-and-traversal-with-a-restful-interface#comment-724228451</link><description>&lt;p&gt;Is there a particular reason that you pass the request into the constructor of your root and then assign self.request = request?  I'm dealing with some code that does this a lot without ever appearing to use it, and would like to know whether it is required by the framework.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">matthew coolbeth</dc:creator><pubDate>Fri, 30 Nov 2012 17:57:39 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/04/27/quick-sqlalchemy-shell-and-blog-update#comment-682660642</link><description>&lt;p&gt;Row 8: &lt;br&gt;engine = sa.create_engine('sqlite:///:memory', echo=True)&lt;/p&gt;&lt;p&gt;should beengine = sa.create_engine('sqlite:///:memory:', echo=True)&lt;/p&gt;&lt;p&gt;Note the additional colon after memory. The first version creates a file named :memory&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ivan Mesic</dc:creator><pubDate>Mon, 15 Oct 2012 08:36:49 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/08/01/pyramid-and-traversal-with-a-restful-interface#comment-661629824</link><description>&lt;p&gt;Can you provide a link to the follow-up post? &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph Bean</dc:creator><pubDate>Mon, 24 Sep 2012 23:23:17 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/07/24/pyramid-and-velruse-for-google-authentication#comment-538186394</link><description>&lt;p&gt; &lt;a href="https://github.com/wwitzel3/velruse_demo/tree/api-revamp" rel="nofollow noopener" target="_blank" title="https://github.com/wwitzel3/velruse_demo/tree/api-revamp"&gt;https://github.com/wwitzel3...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wayne Witzel III</dc:creator><pubDate>Fri, 25 May 2012 02:13:02 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/07/24/pyramid-and-velruse-for-google-authentication#comment-538185991</link><description>&lt;p&gt;Sorry about that Paul, this code is old. Take a look at my velruse_demo project on github. It is more up to date. I will also submit an update to the pyramid docs. SorRt this reply is so short, typing it from my phone in the mountains.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wayne Witzel III</dc:creator><pubDate>Fri, 25 May 2012 02:11:39 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/07/24/pyramid-and-velruse-for-google-authentication#comment-538028190</link><description>&lt;p&gt;The sourceforge link[1] yields 403. What appears to be the same project on github has instructions that reference a development.ini that doesn't exist in the repository. This article is referenced in the pyramid_cookbook doco, so, there is an increased expectation that this blog post would provide some helpful insight rather than a very frustrating pursuit of a stockpot review.&lt;/p&gt;&lt;p&gt;[1] &lt;a href="https://sourceforge.net/p/stockpot/code/" rel="nofollow noopener" target="_blank" title="https://sourceforge.net/p/stockpot/code/"&gt;https://sourceforge.net/p/s...&lt;/a&gt;&lt;br&gt;[2] &lt;a href="http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/auth/index.html#google-facebook-tweeter-and-any-openid-authentication" rel="nofollow noopener" target="_blank" title="http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/auth/index.html#google-facebook-tweeter-and-any-openid-authentication"&gt;http://docs.pylonsproject.o...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul</dc:creator><pubDate>Thu, 24 May 2012 20:06:09 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2012/01/10/working-with-pyramid-and-ming#comment-508454082</link><description>&lt;p&gt;Hello, I have a question. do you know if there are any book about pyramid? &lt;br&gt;If I follow the examples with pylons can It help me to learn pyramid?&lt;/p&gt;&lt;p&gt;thanks you.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Israel B. Aceves</dc:creator><pubDate>Wed, 25 Apr 2012 00:03:37 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2011/10/12/sqlalchemy-custom-types-integers-datetime#comment-480690202</link><description>&lt;p&gt;Nice! :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph Bean</dc:creator><pubDate>Fri, 30 Mar 2012 08:34:28 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2011/10/13/sqlalchemy-cleanup-challenge#comment-335090161</link><description>&lt;p&gt;I'm not fluent with SQL Alchemy, but is it possible to group by based on a custom Python function? A unix timestamp has a range of about 12*137 months; an array could be created with the timestamps of the month starts, and the group_by value could be provided by the index in the array, said index discovered by a bisect.bisect lookup. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Χρήστος Γεωργίου</dc:creator><pubDate>Fri, 14 Oct 2011 20:52:54 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/2011/10/12/sqlalchemy-custom-types-integers-datetime#comment-333324106</link><description>&lt;p&gt;yeah i wish Ralph had asked me about that, he did a nice job figuring out the reflection part, but he should have gone with TypeDecorator in his approach instead of adapting at the mapper level.  He already had a hook into where the type gets set on the Table and he can put it right there !&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zzzeek</dc:creator><pubDate>Wed, 12 Oct 2011 23:37:15 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/10/05/working-for-geeknet#comment-327269093</link><description>&lt;p&gt;I wasn't even aware that sourceforge had SVN!&lt;/p&gt;&lt;p&gt;I can honestly not recall ever really seeing SF tooting its own horn, which is kind of surprising what with geeknet also owning slashdot you'd think new/updated features would show up on their sister site more frequently.&lt;/p&gt;&lt;p&gt;Hell, what with berlios shuttering at the end of this year, sourceforge should be going all out to market itself as the best candidate platform to migrate to.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Ashurst</dc:creator><pubDate>Wed, 05 Oct 2011 13:07:39 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/10/05/working-for-geeknet#comment-327193791</link><description>&lt;p&gt;Great to have you officially on board now, WWIII!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rick Copeland</dc:creator><pubDate>Wed, 05 Oct 2011 11:09:48 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/08/05/hooking-up-whoosh-and-sqlalchemy-(sawhoosh)#comment-298768566</link><description>&lt;p&gt;Thanks Robert, I correct the issue. I made the id columns of the models Unicode type and also ensured that index and deindex are using the unicode ID (which is now set to oid, instead of the reserved word id).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wayne Witzel III</dc:creator><pubDate>Tue, 30 Aug 2011 12:33:08 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/08/05/hooking-up-whoosh-and-sqlalchemy-(sawhoosh)#comment-298664201</link><description>&lt;p&gt;great writeup. I found a bug in SawhooshBase: In reindex and deindex you do not actually use the unicode-formatted id, but &lt;a href="http://self.id" rel="nofollow noopener" target="_blank" title="self.id"&gt;self.id&lt;/a&gt; (which won't work if &lt;a href="http://self.id" rel="nofollow noopener" target="_blank" title="self.id"&gt;self.id&lt;/a&gt; cannot be forced to unicode).&lt;br&gt;regards&lt;br&gt;robert&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Forkel</dc:creator><pubDate>Tue, 30 Aug 2011 09:21:48 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/08/05/hooking-up-whoosh-and-sqlalchemy-(sawhoosh)#comment-280460813</link><description>&lt;p&gt;It depends, if you are using the results for auto-completion and the results are coming from multiple tables and you are doing full table scans to locate the results, then yes, you would benefit from a search index for your data.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wayne Witzel III</dc:creator><pubDate>Mon, 08 Aug 2011 11:20:45 -0000</pubDate></item><item><title>Re: Piece Of Py(thon)</title><link>http://pieceofpy.com/blog/2011/08/05/hooking-up-whoosh-and-sqlalchemy-(sawhoosh)#comment-279597917</link><description>&lt;p&gt;That's great!! I am currently working on a pyramid project. I am new to python and this is the first time I hear of whoosh. Your code approach is great and I might use it on my project. :)&lt;/p&gt;&lt;p&gt;I currently directly query the database for "ajax autocomplete" searches, and I wonder if it is a better approach to use a search index for example whoosh insteaad of querying the sqlalchemy models. What do you think?&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ahmed Bassiouni</dc:creator><pubDate>Sun, 07 Aug 2011 00:29:55 -0000</pubDate></item></channel></rss>