<?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/"
	>

<channel>
	<title>FND's Blag &#187; TiddlyWeb</title>
	<atom:link href="http://fnd.lewcid.org/blog/archive/tag/tiddlyweb/feed" rel="self" type="application/rss+xml" />
	<link>http://fnd.lewcid.org/blog</link>
	<description>Just Another Personal Wobsite</description>
	<lastBuildDate>Mon, 23 Aug 2010 05:54:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Introducing chrjs, a JavaScript Library for TiddlyWeb Clients</title>
		<link>http://fnd.lewcid.org/blog/archive/151</link>
		<comments>http://fnd.lewcid.org/blog/archive/151#comments</comments>
		<pubDate>Thu, 11 Mar 2010 15:13:48 +0000</pubDate>
		<dc:creator>FND</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[TiddlyWeb]]></category>

		<guid isPermaLink="false">http://fnd.lewcid.org/blog/?p=151</guid>
		<description><![CDATA[In order to simplify the development of TiddlyWeb-based applications (like TiddlyRecon), I created a generic library for making HTTP requests to a TiddlyWeb server. This has recently undergone a complete rewrite to provide an API that is more in line with the TiddlyWeb spirit &#8212; tiddler-centric and compositional &#8212; and should now be ready for [...]]]></description>
			<content:encoded><![CDATA[<p>In order to simplify the development of <a href="http://tiddlyweb.com">TiddlyWeb</a>-based applications (like <a href="http://github.com/fnd/tiddlyrecon">TiddlyRecon</a>), I created a <a href="http://github.com/tiddlyweb/chrjs">generic library for making HTTP requests to a TiddlyWeb server</a>.<span id="more-151"></span><br />
This has recently undergone a complete rewrite to provide an API that is more in line with the TiddlyWeb spirit &mdash; tiddler-centric and compositional &mdash; and should now be ready for general use.</p>
<p>In the spirit of letting the code speak for itself (and to save me the trouble of <a href="http://anathem.wikia.com/wiki/Bulshytt">composing prose</a>), I created an interactive <a href="http://tiddlyweb.peermore.com/chrjs/demo.html">demo page</a> which should illustrate the basic aspects.</p>
<p>Any feedback would be much appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://fnd.lewcid.org/blog/archive/151/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python virtual namespaces</title>
		<link>http://fnd.lewcid.org/blog/archive/129</link>
		<comments>http://fnd.lewcid.org/blog/archive/129#comments</comments>
		<pubDate>Wed, 11 Nov 2009 16:37:02 +0000</pubDate>
		<dc:creator>FND</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[TiddlyWeb]]></category>

		<guid isPermaLink="false">http://fnd.lewcid.org/blog/?p=129</guid>
		<description><![CDATA[Recently we&#8217;ve started adding TiddlyWeb plugins to a virtual namespace. Holger (of py.test fame) was interested in this technique, so I posted my experience to the py-dev mailing list &#8212; which I figured was worth copying here: The goal is to use a common package name (here: &#8220;foo&#8221;) for multiple independent modules or packages (&#8220;alpha&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Recently we&#8217;ve started adding <a href="http://tiddlyweb.com">TiddlyWeb</a> <a href="http://pypi.python.org/pypi?%3Aaction=search&#038;term=tiddlywebplugins">plugins</a> to a <a href="http://cdent.tumblr.com/post/216241761/python-namespace-packages-for-tiddlyweb">virtual namespace</a>.</p>
<p><a href="http://tetamap.wordpress.com">Holger</a> (of <a href="http://codespeak.net/py/dist/">py.test</a> fame) was interested in this technique, so I <a href="http://codespeak.net/pipermail/py-dev/2009q4/001305.html">posted</a> my experience to the py-dev mailing list &mdash; which I figured was worth copying here:<br />
<span id="more-129"></span></p>
<blockquote><p>
The goal is to use a common package name (here: &#8220;foo&#8221;) for multiple independent modules or packages (&#8220;alpha&#8221; and &#8220;bravo&#8221; &#8211; to be accessed as <code>foo.alpha</code> and <code>foo.bravo</code>, respectively).</p>
<p>It&#8217;s actually rather simple:<br />
The individual components must be contained in a directory named after the virtual namespace, with an <code>__init__.py</code> containing nothing but the following statement:<br />
<code>__import__("pkg_resources").declare_namespace(__name__)</code><br />
To make Python aware of the local package (e.g. for running tests out of the repository), something like the following is required in a root-level <code>__init__.py</code>:<br />
<code>path = os.path.abspath(VIRTUAL_NAMESPACE)<br />
sys.modules[VIRTUAL_NAMESPACE].__dict__["__path__"].insert(0, path)</code><br />
This is illustrated here:<br />
     <a href="http://gist.github.com/231862">http://gist.github.com/231862</a></p>
<p>Disclaimer: I&#8217;m far from being an expert, just sharing what we&#8217;ve learned so far (it&#8217;s an ongoing effort).
</p></blockquote>
<p>While there are <a href="http://www.python.org/dev/peps/pep-0382/">other options</a>, this currently appears to be the most compatible approach (as confirmed by <a href="http://tarekziade.wordpress.com">Tarek</a>).</p>
<p><strong>Update:</strong> Some further insights made me <a href="http://github.com/FND/tiddlyweb-plugins/commit/f1f7069ee1731bbf6f6c240ee2e2a6b2d81f4dca">tweak the approach to module-path mangling</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://fnd.lewcid.org/blog/archive/129/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
