<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: komodo tab macro to ease django development</title>
	<link>http://traviscline.com/blog/2008/04/30/komodo-tab-macro-to-ease-django-development-in-komodo/</link>
	<description>/blog</description>
	<pubDate>Thu, 21 Aug 2008 22:35:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Shane Caraveo</title>
		<link>http://traviscline.com/blog/2008/04/30/komodo-tab-macro-to-ease-django-development-in-komodo/#comment-229</link>
		<author>Shane Caraveo</author>
		<pubDate>Thu, 01 May 2008 00:23:10 +0000</pubDate>
		<guid>http://traviscline.com/blog/2008/04/30/komodo-tab-macro-to-ease-django-development-in-komodo/#comment-229</guid>
		<description>Here's a one way of dealing with the slash issue in a cross platform mode.  There are also a number of extensions regarding snippets and textmate-like behavior on our community site.
Regards,
Shane

var osPathSvc = Components.classes["@activestate.com/koOsPath;1"].
                getService(Components.interfaces.koIOsPath);
var myfullpath = "/path/to/file.txt";
var parentDirName = osPathSvc.basename(osPathSvc.dirname(myfullpath));
var shortPath = osPathSvc.join(parentDirName, osPathSvc.basename(myfullpath));</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a one way of dealing with the slash issue in a cross platform mode.  There are also a number of extensions regarding snippets and textmate-like behavior on our community site.<br />
Regards,<br />
Shane</p>
<p>var osPathSvc = Components.classes[&#8221;@activestate.com/koOsPath;1&#8243;].<br />
                getService(Components.interfaces.koIOsPath);<br />
var myfullpath = &#8220;/path/to/file.txt&#8221;;<br />
var parentDirName = osPathSvc.basename(osPathSvc.dirname(myfullpath));<br />
var shortPath = osPathSvc.join(parentDirName, osPathSvc.basename(myfullpath));</p>
]]></content:encoded>
	</item>
</channel>
</rss>
