<?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>Vidul Nikolaev Petrov &#187; Trac</title>
	<atom:link href="http://www.vidul.com/category/trac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vidul.com</link>
	<description>my web space</description>
	<lastBuildDate>Wed, 11 Aug 2010 06:22:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Upgrade Trac seamlessly</title>
		<link>http://www.vidul.com/2009/11/28/upgrade-trac-seamlessly/</link>
		<comments>http://www.vidul.com/2009/11/28/upgrade-trac-seamlessly/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 14:53:00 +0000</pubDate>
		<dc:creator>Vidul</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Trac]]></category>

		<guid isPermaLink="false">urn:uuid:{a.guid}</guid>
		<description><![CDATA[ Find your Trac path:
python -c&#8217;import trac;print trac&#8217;
Edit env.py on line 598:

1
2
3
4
5
6
if needs_upgrade:
    try:
        os.system&#40;&#34;/usr/bin/trac-admin %s upgrade&#34; % env_path&#41;
    except TracError:
        raise TracError&#40;_&#40;'The Trac Environment needs to be upgraded.\n\n'
       [...]]]></description>
			<content:encoded><![CDATA[<p><em> Find your Trac path:</em></p>
<p><strong>python -c&#8217;import trac;print trac&#8217;</strong></p>
<p><em>Edit env.py on line 598:</em></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="python" style="font-family:arial,verdana,monospace;"><span style="color: #ff7700;font-weight:bold;">if</span> needs_upgrade:
    <span style="color: #ff7700;font-weight:bold;">try</span>:
        <span style="color: #dc143c;">os</span>.<span style="color: black;">system</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;/usr/bin/trac-admin %s upgrade&quot;</span> <span style="color: #66cc66;">%</span> env_path<span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">except</span> TracError:
        <span style="color: #ff7700;font-weight:bold;">raise</span> TracError<span style="color: black;">&#40;</span>_<span style="color: black;">&#40;</span><span style="color: #483d8b;">'The Trac Environment needs to be upgraded.<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>'</span>
                              <span style="color: #483d8b;">'Run &quot;trac-admin %(path)s upgrade&quot;'</span>, path=env_path<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<p><em>Restart Trac daemon ot whatever http server is serving it.</em></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center">
<ul class="socials">
		<li class="sexy-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.vidul.com/2009/11/28/upgrade-trac-seamlessly/&amp;Title=Upgrade+Trac+seamlessly" rel="nofollow" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.vidul.com/2009/11/28/upgrade-trac-seamlessly/&amp;title=Upgrade+Trac+seamlessly" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.vidul.com/2009/11/28/upgrade-trac-seamlessly/&amp;title=Upgrade+Trac+seamlessly" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.vidul.com/2009/11/28/upgrade-trac-seamlessly/&amp;title=Upgrade+Trac+seamlessly" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.vidul.com/2009/11/28/upgrade-trac-seamlessly/&amp;title=Upgrade+Trac+seamlessly" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.vidul.com/2009/11/28/upgrade-trac-seamlessly/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Upgrade+Trac+seamlessly+-+http://b2l.me/bj3ds+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-newsvine">
			<a href="http://www.newsvine.com/_tools/seed&amp;save?u=http://www.vidul.com/2009/11/28/upgrade-trac-seamlessly/&amp;h=Upgrade+Trac+seamlessly" rel="nofollow" title="Seed this on Newsvine">Seed this on Newsvine</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.vidul.com/2009/11/28/upgrade-trac-seamlessly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete Trac Tables</title>
		<link>http://www.vidul.com/2009/08/27/delete-trac-tables/</link>
		<comments>http://www.vidul.com/2009/08/27/delete-trac-tables/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 15:55:00 +0000</pubDate>
		<dc:creator>Vidul</dc:creator>
				<category><![CDATA[Trac]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">urn:uuid:{a.guid}</guid>
		<description><![CDATA[
for i in `sqlite3 trac.db '.tables'`; do sqlite3 trac.db &#34;delete from $i&#34;; done






		
			Share this on Blinklist
		
		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Share this on Reddit
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			Share this on Technorati
		
		
			Tweet This!
		
		
			Seed this on Newsvine
		





]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:arial,verdana,monospace;"><span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>sqlite3 trac.db <span style="color: #ff0000;">'.tables'</span><span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">do</span> sqlite3 trac.db <span style="color: #ff0000;">&quot;delete from <span style="color: #007800;">$i</span>&quot;</span>; <span style="color: #000000; font-weight: bold;">done</span></pre></div></div>



<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center">
<ul class="socials">
		<li class="sexy-blinklist">
			<a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http://www.vidul.com/2009/08/27/delete-trac-tables/&amp;Title=Delete+Trac+Tables" rel="nofollow" title="Share this on Blinklist">Share this on Blinklist</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.vidul.com/2009/08/27/delete-trac-tables/&amp;title=Delete+Trac+Tables" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.vidul.com/2009/08/27/delete-trac-tables/&amp;title=Delete+Trac+Tables" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.vidul.com/2009/08/27/delete-trac-tables/&amp;title=Delete+Trac+Tables" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.vidul.com/2009/08/27/delete-trac-tables/&amp;title=Delete+Trac+Tables" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.vidul.com/2009/08/27/delete-trac-tables/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Delete+Trac+Tables+-+http://b2l.me/bj3dv+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-newsvine">
			<a href="http://www.newsvine.com/_tools/seed&amp;save?u=http://www.vidul.com/2009/08/27/delete-trac-tables/&amp;h=Delete+Trac+Tables" rel="nofollow" title="Seed this on Newsvine">Seed this on Newsvine</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.vidul.com/2009/08/27/delete-trac-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
