<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Python - Tag - In a past life…</title>
        <link>https://archive.jtimothyking.com/tags/python/</link>
        <description>Python - Tag - In a past life…</description>
        <generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 17 Jun 2018 13:40:40 &#43;0000</lastBuildDate><atom:link href="https://archive.jtimothyking.com/tags/python/" rel="self" type="application/rss+xml" /><item>
    <title>Finishing Off that Bug in djangocms-picture (part trois)</title>
    <link>https://archive.jtimothyking.com/2018/06/17/finishing-off-that-bug-in-djangocms-picture-part-trois/</link>
    <pubDate>Sun, 17 Jun 2018 13:40:40 &#43;0000</pubDate>
    <author>J. Timothy King</author>
    <guid>https://archive.jtimothyking.com/2018/06/17/finishing-off-that-bug-in-djangocms-picture-part-trois/</guid>
    <description><![CDATA[<figure class="alignright size-medium"><a class="lightgallery" href="/2018/06/17/finishing-off-that-bug-in-djangocms-picture-part-trois/django_construction.png" title="/2018/06/17/finishing-off-that-bug-in-djangocms-picture-part-trois/django_construction.png" data-thumbnail="/2018/06/17/finishing-off-that-bug-in-djangocms-picture-part-trois/django_construction.png">
        
    </a></figure>
<p>In the <a href="http://sd.jtimothyking.com/2018/06/11/still-fixing-that-bug-in-djangocms-picture-part-deux/">prior episode of this story</a>, I had written a test to detect the bug I want to fix. The <code>djangocms-picture</code> plugin includes errant whitespace inside of HTML anchor tags, which renders as annoying blue underlines next to the images.</p>
<p>I had also discovered why my test didn&rsquo;t fail as it should have, because Django&rsquo;s <code>assertHTMLEqual()</code> doesn&rsquo;t detect all semantically significant whitespace differences. I&rsquo;m sure it seemed a good idea at the time. But sorry, that&rsquo;s not working for me.</p>
<p>Fortunately, it&rsquo;s not that difficult to redesign <code>assertHTMLEqual()</code>.</p>]]></description>
</item>
<item>
    <title>Still Fixing that Bug in djangocms-picture (part deux)</title>
    <link>https://archive.jtimothyking.com/2018/06/11/still-fixing-that-bug-in-djangocms-picture-part-deux/</link>
    <pubDate>Mon, 11 Jun 2018 16:56:21 &#43;0000</pubDate>
    <author>J. Timothy King</author>
    <guid>https://archive.jtimothyking.com/2018/06/11/still-fixing-that-bug-in-djangocms-picture-part-deux/</guid>
    <description><![CDATA[<figure class="alignright size-medium"><a class="lightgallery" href="/2018/06/11/still-fixing-that-bug-in-djangocms-picture-part-deux/django_construction.png" title="/2018/06/11/still-fixing-that-bug-in-djangocms-picture-part-deux/django_construction.png" data-thumbnail="/2018/06/11/still-fixing-that-bug-in-djangocms-picture-part-deux/django_construction.png">
        
    </a></figure>
<p>Last time, I began fixing a fairly simply <a href="http://sd.jtimothyking.com/2018/06/09/fix-that-bug-in-djangocms-picture/">space-within-anchor-tags bug in <code>djangocms-picture</code></a>.</p>
<p>I&rsquo;m using this exercise as an opportunity to (a) try out a disciplined development process in the context of a Django application and (b) dig into the Django and Django CMS APIs.</p>
<p>This involves writing a failing test against the existing plugin rendering code, seeing it fail, fixing the bug, and then seeing the test pass.</p>
<p>My experience so far with this framework has not been as stellar as I had originally thought it would be.</p>]]></description>
</item>
<item>
    <title>Fix that Bug in djangocms-picture</title>
    <link>https://archive.jtimothyking.com/2018/06/09/fix-that-bug-in-djangocms-picture/</link>
    <pubDate>Sat, 09 Jun 2018 22:58:28 &#43;0000</pubDate>
    <author>J. Timothy King</author>
    <guid>https://archive.jtimothyking.com/2018/06/09/fix-that-bug-in-djangocms-picture/</guid>
    <description><![CDATA[<figure class="alignright size-medium"><a class="lightgallery" href="/2018/06/09/fix-that-bug-in-djangocms-picture/django_construction.png" title="/2018/06/09/fix-that-bug-in-djangocms-picture/django_construction.png" data-thumbnail="/2018/06/09/fix-that-bug-in-djangocms-picture/django_construction.png">
        
    </a></figure>
<p>I mentioned a couple fundamental issues off the bat with my <a href="http://sd.jtimothyking.com/2018/04/14/website-revamp-to-django-cms/">website revamp using Django CMS</a>.</p>
<p>I&rsquo;m in the process of revamping my hub site, <a href="http://www.jtimothyking.com/"><a href="https://www.JTimothyKing.com" target="_blank" rel="noopener noreffer ">www.JTimothyKing.com</a></a>. I had created a barebones site: only a single page of content, two columns (using <code>djangocms-column</code>), and a row of social-media icons (using <code>djangocms-picture</code>). I only made minimal changes to get it &ldquo;good enough for now.&rdquo;</p>
<p>There were still a couple unresolved issues, even before any serious theming, one of which was that the social-media icons are rendering with small, blue underlines in between. Before theming the site, I&rsquo;d like to deal with this irksome quirk.</p>
<p><em>But oh!</em> I thought, <em>This also presents a perfect opportunity to apply my standard dev process to a Django project!</em> Let&rsquo;s go!</p>]]></description>
</item>
<item>
    <title>Website Revamp to Django CMS</title>
    <link>https://archive.jtimothyking.com/2018/04/15/website-revamp-to-django-cms/</link>
    <pubDate>Sun, 15 Apr 2018 02:10:25 &#43;0000</pubDate>
    <author>J. Timothy King</author>
    <guid>https://archive.jtimothyking.com/2018/04/15/website-revamp-to-django-cms/</guid>
    <description><![CDATA[<figure class="alignright size-medium"><a class="lightgallery" href="/2018/04/15/website-revamp-to-django-cms/django_construction.png" title="/2018/04/15/website-revamp-to-django-cms/django_construction.png" data-thumbnail="/2018/04/15/website-revamp-to-django-cms/django_construction.png">
        
    </a></figure>
<p>It was long past time to redo my hub site, <a href="http://www.jtimothyking.com/"><a href="https://www.JTimothyKing.com" target="_blank" rel="noopener noreffer ">www.JTimothyKing.com</a></a>. It had been running Drupal for far too long. I won&rsquo;t tell you what version. Suffice it to say that the version had been unsupported for quite some time before I finally decommissioned it.</p>
<p>Rather than upgrade to a new version of Drupal, I chose to revamp the site and move to Django CMS.</p>]]></description>
</item>
</channel>
</rss>
