<?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>opensourcetutor.com &#187; Python</title>
	<atom:link href="http://www.opensourcetutor.com/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.opensourcetutor.com</link>
	<description>On Linux, Web Development, Joomla and Magento commerce</description>
	<lastBuildDate>Fri, 20 Aug 2010 06:42:54 +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>Bulk Upload Categories to Magento</title>
		<link>http://www.opensourcetutor.com/2010/03/19/bulk-upload-categories-to-magento/</link>
		<comments>http://www.opensourcetutor.com/2010/03/19/bulk-upload-categories-to-magento/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 09:49:42 +0000</pubDate>
		<dc:creator>salubrium</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[bulk upload]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.opensourcetutor.com/2010/03/19/bulk-upload-categories-to-magento/</guid>
		<description><![CDATA[



One of those pain points in Magento is bulk uploading Categories. I know there&#8217;s this solution and also this bulk category solution, which are both basically the same thing. I actually feel more comfortable using Python and it also means that I don&#8217;t have to install Zend on my local machine to access the remote API.
One struggle I did get stuck on is the &#8220;Access Denied&#8221; message when connecting. A lot of people are having issues with it. My issue was that I had used the same username for my ...]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-9469051832075629";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
//2007-05-22: opensourcetutor.com
google_ad_channel = "3549963802";
google_color_border = "FFF";
google_color_bg = "FFF";
google_color_link = "333";
google_color_text = "CCCCCC";
google_color_url = "999999";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
One of those pain points in Magento is bulk uploading Categories. I know there&#8217;s <a href="http://www.magentocommerce.com/boards/viewthread/49739/" target="_blank">this solution</a> and also this <a href="http://www.magentocommerce.com/boards/viewthread/6986/" target="_blank">bulk category solution</a>, which are both basically the same thing. I actually feel more comfortable using Python and it also means that I don&#8217;t have to install Zend on my local machine to access the remote API.</p>
<p>One struggle I did get stuck on is the &#8220;Access Denied&#8221; message when connecting. A lot of people are having issues with it. My issue was that I had used the same username for my API access as I use to login to the admin in my testing. As soon as I changed from that, I overcame that issue.</p>
<p>Anyway, I stumbled across this <a href="http://code.google.com/p/python-magento/downloads/list" target="_blank">Python Magento</a> library and saw it had a number of useful functions already in it. So I decided to hack away and add to it.</p>
<p>So far, I have added a function to retrieve the list of categories and write them to a file from the catelog_category.tree api call and finally, as per my original intention, write a function to bulk upload categories from a CSV file.</p>
<p>I&#8217;ve never contributed code to a project before so if I get these changes in, it&#8217;s my first public contribution.. until that happens, you can hit me up for the code and a sample CSV file.</p>
<p>I might add: Python xmlrpc is beautiful to work with and gives a great deal of flexibility for building a gui on top of this. Working with the Magento API was nice also.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcetutor.com/2010/03/19/bulk-upload-categories-to-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boo Language aspx .Net using xsp2 on Mono and Linux (Ubuntu)</title>
		<link>http://www.opensourcetutor.com/2008/10/29/boo-language-aspx-net-using-xsp2-on-mono-and-linux-ubuntu/</link>
		<comments>http://www.opensourcetutor.com/2008/10/29/boo-language-aspx-net-using-xsp2-on-mono-and-linux-ubuntu/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 10:47:26 +0000</pubDate>
		<dc:creator>salubrium</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Internet Goodness]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[boo]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xsp]]></category>

		<guid isPermaLink="false">http://www.opensourcetutor.com/2008/10/29/boo-language-aspx-net-using-xsp2-on-mono-and-linux-ubunut/</guid>
		<description><![CDATA[I have been playing around with boo a little bit because it has Python-inspired syntax, runs at C# speeds and is a first class citizen on dotnet.
So I decided to find out what it would be like to do some web programming in it. I learned a bit about asp.Net in the process and mono also.
So first thing I did was:
$ cd /usr/share/doc/boo/examples/asp.net$ xsp2
and then from your browser you can run any of the &#8220;inline&#8221; samples
http://localhost:8080/InlineBooButtonClick.aspxhttp://localhost:8080/InlineBooExpression.aspxhttp://localhost:8080/InlineBooHelloAspNet.aspx
but if you try and run one of the code behind samples, you get something ...]]></description>
			<content:encoded><![CDATA[<p>I have been playing around with boo a little bit because it has Python-inspired syntax, runs at C# speeds and is a first class citizen on dotnet.</p>
<p>So I decided to find out what it would be like to do some web programming in it. I learned a bit about asp.Net in the process and mono also.</p>
<p>So first thing I did was:</p>
<blockquote><p>$ cd /usr/share/doc/boo/examples/asp.net<br />$ xsp2</p></blockquote>
<p>and then from your browser you can run any of the &#8220;inline&#8221; samples</p>
<p>http://localhost:8080/InlineBooButtonClick.aspx<br />http://localhost:8080/InlineBooExpression.aspx<br />http://localhost:8080/InlineBooHelloAspNet.aspx</p>
<p>but if you try and run one of the code behind samples, you get something like this:</p>
<p><img style="max-width: 800px;" src="http://www.opensourcetutor.com/wp-content/uploads/2008/10/parser-error-1225276749810.png" /></p>
<blockquote><p>Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.</p>
<p>Parser Error Message: Cannot find type Boo.Examples.Web.YourName</p>
<p>Source Error:</p>
<p>Line 1: &lt;%@Page Inherits=&#8221;Boo.Examples.Web.YourName&#8221;  %&gt;<br />Line 2: <br />Line 3: </p></blockquote>
<p>The problem is the the boo source code needs to be compiled and the dll&#8217;s must be placed in a bin directory in the folder you are running xsp2 from. There is a nant build script there but after trying to hack it to get it to build, we worked out it was easier to just compile manually.ie:</p>
<blockquote><p>$ sudo mkdir bin<br />$ sudo booc -t:library -o:ScriptRunner.dll ScriptRunner.aspx.boo<br />$ sudo cp ScriptRunner.dll bin</p></blockquote>
<p>from your browser:</p>
<p>http://localhost:8080/ScriptRunner.aspx</p>
<p>You can then use this to play around with some boo as if it were the booshell (booish)</p>
<p>Thanks to Cedric for helping me out in IRC on this.Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/mono" rel="tag">mono</a>, <a class="performancingtags" href="http://technorati.com/tag/python" rel="tag">python</a>, <a class="performancingtags" href="http://technorati.com/tag/boo" rel="tag">boo</a>, <a class="performancingtags" href="http://technorati.com/tag/language" rel="tag">language</a>, <a class="performancingtags" href="http://technorati.com/tag/xsp" rel="tag">xsp</a>, <a class="performancingtags" href="http://technorati.com/tag/ubuntu" rel="tag">ubuntu</a>, <a class="performancingtags" href="http://technorati.com/tag/linux" rel="tag">linux</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcetutor.com/2008/10/29/boo-language-aspx-net-using-xsp2-on-mono-and-linux-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Source Ecommerce alternatives to Zencart, OSCommerce and Virtuemart</title>
		<link>http://www.opensourcetutor.com/2008/05/28/open-source-ecommerce-alternatives-to-zencart-oscommerce-and-virtuemart/</link>
		<comments>http://www.opensourcetutor.com/2008/05/28/open-source-ecommerce-alternatives-to-zencart-oscommerce-and-virtuemart/#comments</comments>
		<pubDate>Wed, 28 May 2008 04:47:47 +0000</pubDate>
		<dc:creator>salubrium</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Finance]]></category>
		<category><![CDATA[Internet Goodness]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[satchmo]]></category>

		<guid isPermaLink="false">http://www.opensourcetutor.com/2008/05/28/open-source-ecommerce-alternatives-to-zencart-oscommerce-and-virtuemart/</guid>
		<description><![CDATA[A couple of new open source Ecommerce products out and about that will hopefully see the end of the monstrosity called OSCommerce and it&#8217;s less ugly incarnations &#8211; 
Whilst they have served me well in the past and I may feel tempted to use Virtuemart for a customer who:
a) Will never ever need any customisations done to itb) Already has a Joomla installation and is very comfortable using Joomla
What&#8217;s the issue with Zencart, OSC or Virtuemart you may ask?
The issue is this. First OSCommerce is a mess. Every single module ...]]></description>
			<content:encoded><![CDATA[<p>A couple of new open source Ecommerce products out and about that will hopefully see the end of the monstrosity called OSCommerce and it&#8217;s less ugly incarnations &#8211; </p>
<p>Whilst they have served me well in the past and I <i>may </i>feel tempted to use Virtuemart for a customer who:</p>
<p>a) Will n<i>ever ever</i> need any customisations done to it<br />b) Already has a Joomla installation and is very comfortable using Joomla</p>
<p>What&#8217;s the issue with Zencart, OSC or Virtuemart you may ask?</p>
<p>The issue is this. First OSCommerce is a mess. Every single module you ever add to it is a hack, making upgrades a pain in the ass. Zencart, being closely related to OSC is not much better. It&#8217;s modularity is a bit better laid out and so you can actually create / install modules with very little hacking, if any BUT it&#8217;s template system still suffers from it&#8217;s OSC origins. It&#8217;s an effort to try and template for them..yes, it&#8217;s possible but does it really have to be that hard? Joomla&#8217;s concept is 1000 times better in regards to templating and Virtuemart excels in this area due to it&#8217;s Joomla foundations.</p>
<p>The big problem with them is when you need to make modifications to the core cart to implement a particular feature a customer wants. We have had situations where a small feature for the client required 144 changes in the files of Virtuemart. As soon as a XSS or other security issue comes to light, we have two options</p>
<ol>
<li>Let it be, cross fingers and hope nothing happens (this really is not an option)</li>
<li>Inform customer, explain risks and give them compelling reasons to update (at their cost)</li>
<li>Our current solution is when we sign contracts with customers, we include a compulsory security updates fee, which means we update their site when new security releases come out. This has worked out best so far but still requires us to explain why we are giving a solution that isn&#8217;t inherently secure to begin with. Microsoft has made this easier to explain (daily updates anyone?) and for the most part, we can kill most XSS / SQL Injection attacks using Apache modsec rules but we really want to get beyond NEEDING to upgrade and therefore NEEDING to patch our mods into new releases of Virtuemart etc.</li>
</ol>
<p>So, without further ado, there looks to be two better alternatives that have come to the rescue recently that look very, very promising though we haven&#8217;t done any work with them yet, so I will report on that later.</p>
<p>In PHP land, we have <a target="_blank" href="http://www.magentocommerce.com/">Magento</a>. A very sexy, professional looking Open Source Ecommerce application that&#8217;s built upon the Zend MVC framework and claims to be able to develop extensions without touching core code. This, hopefully will fix our templating, modification and upgrade woes in a PHP solution. It has SEF URL&#8217;s built-in, google analytics built-in and a mini-CMS of sorts.</p>
<p>In Python land, we have <a target="_blank" href="http://www.satchmoproject.com/">Satchmo</a> an open source ecommerce application built on top of the Django framework, with a reasonable feature set.</p>
<p>As part of my toolbox, my thinking at this point is if we have a customer that needs a standard shop with little to no development work, Magento will be our tool. If the customer has very unique needs, integration with other systems and customisations, we will work with Django.</p>
<p>This is because PHP deployment is so easy, that our only need should be to produce templates in Magento. If development work is needed, deployment and templating become a trivial matter in Satchmo in comparison to the ability to develop in Django &amp; Python.</p>
<p>Would love to hear other&#8217;s experiences with any of the above&#8230; and of course any horror stories (or otherwise with OSC based development)</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcetutor.com/2008/05/28/open-source-ecommerce-alternatives-to-zencart-oscommerce-and-virtuemart/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
