<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tareq Alam</title>
	<atom:link href="http://tareqalam.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tareqalam.wordpress.com</link>
	<description>i have promises to keep and miles to go before i sleep - Robert Frost</description>
	<lastBuildDate>Tue, 08 Sep 2009 05:38:13 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='tareqalam.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/f23c2a72220b06aeb7a405c67844c180?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Tareq Alam</title>
		<link>http://tareqalam.wordpress.com</link>
	</image>
			<item>
		<title>ZopeSkel Archetypes HOWTO</title>
		<link>http://tareqalam.wordpress.com/2009/09/08/zopeskel-archetypes-howto/</link>
		<comments>http://tareqalam.wordpress.com/2009/09/08/zopeskel-archetypes-howto/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 05:38:13 +0000</pubDate>
		<dc:creator>tareqalam</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[archtype]]></category>
		<category><![CDATA[paster]]></category>
		<category><![CDATA[Plone]]></category>
		<category><![CDATA[Zope]]></category>
		<category><![CDATA[zopeskel]]></category>

		<guid isPermaLink="false">http://tareqalam.wordpress.com/2009/09/08/zopeskel-archetypes-howto/</guid>
		<description><![CDATA[This is amazing help. To create simple archtype based product in plone follow the steps in this link
http://lionfacelemonface.wordpress.com/tutorials/zopeskel-archetypes-howto/
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=142&subd=tareqalam&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is amazing help. To create simple archtype based product in plone follow the steps in this link<br />
http://lionfacelemonface.wordpress.com/tutorials/zopeskel-archetypes-howto/</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tareqalam.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tareqalam.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tareqalam.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tareqalam.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tareqalam.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tareqalam.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tareqalam.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tareqalam.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tareqalam.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tareqalam.wordpress.com/142/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=142&subd=tareqalam&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://tareqalam.wordpress.com/2009/09/08/zopeskel-archetypes-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tareq</media:title>
		</media:content>
	</item>
		<item>
		<title>pdflatex running silentmode</title>
		<link>http://tareqalam.wordpress.com/2009/06/24/pdflatex-running-silentmode/</link>
		<comments>http://tareqalam.wordpress.com/2009/06/24/pdflatex-running-silentmode/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 10:33:36 +0000</pubDate>
		<dc:creator>tareqalam</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[pdflatex]]></category>
		<category><![CDATA[quite]]></category>
		<category><![CDATA[silent]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://tareqalam.wordpress.com/2009/06/24/pdflatex-running-silentmode/</guid>
		<description><![CDATA[run this command in terminal to create pdf from the tex file silently
pdflatex -interaction=batchmode  texfilename.tex 
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=141&subd=tareqalam&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>run this command in terminal to create pdf from the tex file silently</p>
<p>pdflatex -interaction=batchmode  texfilename.tex </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tareqalam.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tareqalam.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tareqalam.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tareqalam.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tareqalam.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tareqalam.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tareqalam.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tareqalam.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tareqalam.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tareqalam.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=141&subd=tareqalam&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://tareqalam.wordpress.com/2009/06/24/pdflatex-running-silentmode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tareq</media:title>
		</media:content>
	</item>
		<item>
		<title>PIL: IOError: encoder jpeg not available</title>
		<link>http://tareqalam.wordpress.com/2009/06/02/pil-ioerror-encoder-jpeg-not-available/</link>
		<comments>http://tareqalam.wordpress.com/2009/06/02/pil-ioerror-encoder-jpeg-not-available/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 07:07:37 +0000</pubDate>
		<dc:creator>tareqalam</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[encoder jpeg not available]]></category>
		<category><![CDATA[IOError]]></category>
		<category><![CDATA[jpeg decoder]]></category>
		<category><![CDATA[libjpeg]]></category>
		<category><![CDATA[PIL]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://tareqalam.wordpress.com/2009/06/02/pil-ioerror-encoder-jpeg-not-available/</guid>
		<description><![CDATA[I have got this error while doing this
import tempfile
bg_new=Image.new(&#8216;RGB&#8217;,(486,236), GREEN)
tmp = tempfile.mktemp(suffix=&#8217;.%s&#8217; % &#8216;jpg&#8217;)
bg_new.save(tmp, &#8220;JPEG&#8221;, quality=95)
I was looking for solution and got this:
in setup.py in Imaging-1.1.6 that is PIL 1.1.6
set this
JPEG_ROOT = &#8220;/usr/lib64&#8243;, &#8220;/usr/include&#8221;
then in terminal
python setup.py build &#8211;force
this will include libjpeg in PIL. before you may need to install libjpeg in your linux system. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=140&subd=tareqalam&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have got this error while doing this<br />
import tempfile<br />
bg_new=Image.new(&#8216;RGB&#8217;,(486,236), GREEN)<br />
tmp = tempfile.mktemp(suffix=&#8217;.%s&#8217; % &#8216;jpg&#8217;)<br />
bg_new.save(tmp, &#8220;JPEG&#8221;, quality=95)</p>
<p>I was looking for solution and got this:</p>
<p>in setup.py in Imaging-1.1.6 that is PIL 1.1.6<br />
set this<br />
JPEG_ROOT = &#8220;/usr/lib64&#8243;, &#8220;/usr/include&#8221;<br />
then in terminal<br />
python setup.py build &#8211;force<br />
this will include libjpeg in PIL. before you may need to install libjpeg in your linux system. I have tried this with python2.4 in ubuntu 8.10<br />
hope this works</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tareqalam.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tareqalam.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tareqalam.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tareqalam.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tareqalam.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tareqalam.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tareqalam.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tareqalam.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tareqalam.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tareqalam.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=140&subd=tareqalam&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://tareqalam.wordpress.com/2009/06/02/pil-ioerror-encoder-jpeg-not-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tareq</media:title>
		</media:content>
	</item>
		<item>
		<title>how to add external method while installing product in plone</title>
		<link>http://tareqalam.wordpress.com/2009/05/06/how-to-add-external-method-while-installing-product-in-plone/</link>
		<comments>http://tareqalam.wordpress.com/2009/05/06/how-to-add-external-method-while-installing-product-in-plone/#comments</comments>
		<pubDate>Wed, 06 May 2009 11:27:00 +0000</pubDate>
		<dc:creator>tareqalam</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[create external method]]></category>
		<category><![CDATA[external method]]></category>
		<category><![CDATA[install external method]]></category>
		<category><![CDATA[Plone]]></category>
		<category><![CDATA[setuphandlers]]></category>

		<guid isPermaLink="false">http://tareqalam.wordpress.com/?p=138</guid>
		<description><![CDATA[in profiles/default create import_steps.xml
  Import easysearch settings
in the product create  setuphandlers.py file like this

# created by tareq alam
# tareq.mist@gmail.com
# www.commitmentsoft.com
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone.utils import safe_hasattr
from Products.Archetypes.public import listTypes
def importVarious(context):
    """
    Final easysearch import steps.
    """
    site = context.getSite()
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=138&subd=tareqalam&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>in profiles/default create import_steps.xml</p>
<p>  Import easysearch settings</p>
<p>in the product create  setuphandlers.py file like this<br />
<code><br />
# created by tareq alam<br />
# tareq.mist@gmail.com<br />
# www.commitmentsoft.com<br />
from Products.CMFCore.utils import getToolByName<br />
from Products.CMFPlone.utils import safe_hasattr<br />
from Products.Archetypes.public import listTypes</p>
<p>def importVarious(context):<br />
    """<br />
    Final easysearch import steps.<br />
    """</p>
<p>    site = context.getSite()<br />
    invokeFactory = getToolByName(site, 'invokeFactory')<br />
    manage_delObjects = getToolByName(site, 'manage_delObjects')<br />
    #getattr  = getToolByName(site, 'getattr')</p>
<p>    try:<br />
        manage_delObjects("reportExternalMethods")<br />
    except:<br />
        pass<br />
    Newfolder = invokeFactory("Folder", id="reportExternalMethods", title="reportExternalMethods",path='/')<br />
    Newfolderobj = getattr(site, Newfolder, None)<br />
    manage_addProduct = getToolByName(Newfolderobj, 'manage_addProduct')</p>
<p>    em = manage_addProduct['ExternalMethod']<br />
    manage_addExternalMethod = getToolByName(em, 'manage_addExternalMethod')<br />
    manage_addExternalMethod('imageexample', 'imageexample', 'easysearch.imageexample', 'imageexample')<br />
    manage_addExternalMethod('createResultPy', 'createResultPy', 'easysearch.createResultPy', 'createResultPy')</p>
<p>    #em = context.manage_addProduct['ExternalMethod']</p>
<p></code></p>
<p>now restart and install product<br />
this will create a folder reportExternalMethods in root .. and also create two external methods in that folder</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tareqalam.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tareqalam.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tareqalam.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tareqalam.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tareqalam.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tareqalam.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tareqalam.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tareqalam.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tareqalam.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tareqalam.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=138&subd=tareqalam&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://tareqalam.wordpress.com/2009/05/06/how-to-add-external-method-while-installing-product-in-plone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tareq</media:title>
		</media:content>
	</item>
		<item>
		<title>sound prblem fix hp dv 7 laptop in ubuntu</title>
		<link>http://tareqalam.wordpress.com/2009/04/29/sound-prblem-fix-hp-dv-7-laptop-in-ubuntu/</link>
		<comments>http://tareqalam.wordpress.com/2009/04/29/sound-prblem-fix-hp-dv-7-laptop-in-ubuntu/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 05:32:13 +0000</pubDate>
		<dc:creator>tareqalam</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[hp dv 7]]></category>
		<category><![CDATA[hp sound]]></category>
		<category><![CDATA[sound problem]]></category>
		<category><![CDATA[sound ubuntu]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://tareqalam.wordpress.com/2009/04/29/sound-prblem-fix-hp-dv-7-laptop-in-ubuntu/</guid>
		<description><![CDATA[thanks to this links creator
http://forum.notebookreview.com/showthread.php?t=331172
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=137&subd=tareqalam&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>thanks to this links creator<br />
http://forum.notebookreview.com/showthread.php?t=331172</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tareqalam.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tareqalam.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tareqalam.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tareqalam.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tareqalam.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tareqalam.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tareqalam.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tareqalam.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tareqalam.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tareqalam.wordpress.com/137/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=137&subd=tareqalam&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://tareqalam.wordpress.com/2009/04/29/sound-prblem-fix-hp-dv-7-laptop-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tareq</media:title>
		</media:content>
	</item>
		<item>
		<title>download xml of various settings of plone from zmi</title>
		<link>http://tareqalam.wordpress.com/2009/04/01/download-xml-of-various-settings-of-plone-from-zmi/</link>
		<comments>http://tareqalam.wordpress.com/2009/04/01/download-xml-of-various-settings-of-plone-from-zmi/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 09:02:24 +0000</pubDate>
		<dc:creator>tareqalam</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips And Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Zope]]></category>
		<category><![CDATA[important links]]></category>
		<category><![CDATA[ploneCMS]]></category>
		<category><![CDATA[download xml]]></category>
		<category><![CDATA[plone xml download]]></category>
		<category><![CDATA[portal_setup]]></category>
		<category><![CDATA[workflow download]]></category>

		<guid isPermaLink="false">http://tareqalam.wordpress.com/?p=134</guid>
		<description><![CDATA[in zmi of plone click on portal_setup
click on export tab
click on export selected steps button and save in local
done
u can now use these xmls where u need them
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=134&subd=tareqalam&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>in zmi of plone click on portal_setup<br />
click on export tab<br />
click on export selected steps button and save in local<br />
done<br />
u can now use these xmls where u need them</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tareqalam.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tareqalam.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tareqalam.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tareqalam.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tareqalam.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tareqalam.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tareqalam.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tareqalam.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tareqalam.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tareqalam.wordpress.com/134/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=134&subd=tareqalam&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://tareqalam.wordpress.com/2009/04/01/download-xml-of-various-settings-of-plone-from-zmi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tareq</media:title>
		</media:content>
	</item>
		<item>
		<title>add contents and publish in plone using python script</title>
		<link>http://tareqalam.wordpress.com/2009/03/30/add-contents-and-publish-in-plone-using-python-script/</link>
		<comments>http://tareqalam.wordpress.com/2009/03/30/add-contents-and-publish-in-plone-using-python-script/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 13:23:54 +0000</pubDate>
		<dc:creator>tareqalam</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[add page template with python script]]></category>
		<category><![CDATA[add plone content with script]]></category>
		<category><![CDATA[doActionFor]]></category>
		<category><![CDATA[getattr]]></category>
		<category><![CDATA[invokeFactory]]></category>
		<category><![CDATA[manage_addProduct]]></category>
		<category><![CDATA[portal_workflow]]></category>

		<guid isPermaLink="false">http://tareqalam.wordpress.com/?p=132</guid>
		<description><![CDATA[add a external method
in the method&#8217;s python file 
Newfolder = context.invokeFactory(&#8220;Folder&#8221;, id=&#8221;NEWFOLDERINPLONE&#8221;, title=&#8221;NEWFOLDERINPLONE&#8221;,path=&#8217;/&#8217;.join(context.getPhysicalPath()))
this will add a new folder in the contexts directory
To publish this folder automatically by code try this magic
Newfolderobj = getattr(context, Newfolder, None)
review_state = Newfolderobj.portal_workflow.getInfoFor(Newfolderobj, &#8216;review_state&#8217;, &#8221;)
    if not review_state == &#8216;published&#8217;:
       Newfolderobj.portal_workflow.doActionFor(Newfolderobj,&#8221;publish&#8221;,comment=&#8221;publised programmatically&#8221;)
it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=132&subd=tareqalam&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>add a external method<br />
in the method&#8217;s python file </p>
<p>Newfolder = context.invokeFactory(&#8220;Folder&#8221;, id=&#8221;NEWFOLDERINPLONE&#8221;, title=&#8221;NEWFOLDERINPLONE&#8221;,path=&#8217;/&#8217;.join(context.getPhysicalPath()))<br />
this will add a new folder in the contexts directory<br />
To publish this folder automatically by code try this magic</p>
<p>Newfolderobj = getattr(context, Newfolder, None)<br />
review_state = Newfolderobj.portal_workflow.getInfoFor(Newfolderobj, &#8216;review_state&#8217;, &#8221;)<br />
    if not review_state == &#8216;published&#8217;:<br />
       Newfolderobj.portal_workflow.doActionFor(Newfolderobj,&#8221;publish&#8221;,comment=&#8221;publised programmatically&#8221;)</p>
<p>it will be published in site on the fly&#8230;</p>
<p>to add page template</p>
<p>idict = { &#8216;id&#8217; : &#8217;step1Page&#8217;<br />
            , &#8216;type&#8217;: &#8216;page template&#8217;<br />
            , &#8216;body&#8217;: page_template_body # variable can be a content of a pt file<br />
            , &#8216;workflow_action&#8217;: &#8216;publish&#8217;<br />
            , &#8216;workflow_comment&#8217;: &#8216;This item published programmatically&#8217;</p>
<p>            }</p>
<p>    Newfolderobj.manage_addProduct['PageTemplates'].manage_addPageTemplate(id=idict['id'])<br />
    oi = getattr(Newfolderobj,idict['id'])<br />
    oi.pt_edit(idict['body'],&#8217;text/html&#8217;)</p>
<p>this will add a page template in new folder<br />
together </p>
<p><code><br />
def main(self):</p>
<p>    # Example code:</p>
<p>    # Import a standard function, and get the HTML request and response objects.<br />
    from Products.PythonScripts.standard import html_quote<br />
    context = self<br />
    try:<br />
     Newfolder = context.invokeFactory("Folder", id="NewFolderUnusedId", title="NewFolderUnusedId",path='/'.join(context.getPhysicalPath()))<br />
    except:<br />
     Newfolder = 'NewFolderUnusedId'</p>
<p>    Newfolderobj = getattr(context, Newfolder, None)</p>
<p>    review_state = Newfolderobj.portal_workflow.getInfoFor(Newfolderobj, 'review_state', '')<br />
    if not review_state == 'published':<br />
       Newfolderobj.portal_workflow.doActionFor(Newfolderobj,"publish",comment="publised programmatically")<br />
    f=open("somefile.pt","r")<br />
    page_template_body = f.read()<br />
    f.close()<br />
    idict = { 'id' : 'step1Page'<br />
            , 'type': 'page template'<br />
            , 'body': page_template_body<br />
            , 'workflow_action': 'publish'<br />
            , 'workflow_comment': 'This item published programmatically'</p>
<p>            }</p>
<p>    Newfolderobj.manage_addProduct['PageTemplates'].manage_addPageTemplate(id=idict['id'])<br />
    oi = getattr(Newfolderobj,idict['id'])<br />
    oi.pt_edit(idict['body'],'text/html')<br />
return true</p>
<p></code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tareqalam.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tareqalam.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tareqalam.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tareqalam.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tareqalam.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tareqalam.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tareqalam.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tareqalam.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tareqalam.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tareqalam.wordpress.com/132/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=132&subd=tareqalam&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://tareqalam.wordpress.com/2009/03/30/add-contents-and-publish-in-plone-using-python-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tareq</media:title>
		</media:content>
	</item>
		<item>
		<title>Add new widget in PloneFormGen</title>
		<link>http://tareqalam.wordpress.com/2009/03/30/add-new-widget-in-ploneformgen/</link>
		<comments>http://tareqalam.wordpress.com/2009/03/30/add-new-widget-in-ploneformgen/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 13:14:03 +0000</pubDate>
		<dc:creator>tareqalam</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[add field in PFG]]></category>
		<category><![CDATA[add widget in PloneFormGen]]></category>
		<category><![CDATA[Dynamic Form create]]></category>
		<category><![CDATA[PFGDataGrid]]></category>
		<category><![CDATA[Plone Form]]></category>
		<category><![CDATA[PloneFormGen]]></category>

		<guid isPermaLink="false">http://tareqalam.wordpress.com/?p=130</guid>
		<description><![CDATA[PloneFormGen is a nice tool to add dynamic forms in plone
There are lot of different form fields in PloneFormGen
but I was in need of a new type of widget in my form
this is how i did that
first to learn how it works..
http://plone.org/products/pfgdatagrid
download this product and install it after installing DataGridWidget and PloneFormGen
now you can add [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=130&subd=tareqalam&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>PloneFormGen is a nice tool to add dynamic forms in plone<br />
There are lot of different form fields in PloneFormGen<br />
but I was in need of a new type of widget in my form<br />
this is how i did that</p>
<p>first to learn how it works..<br />
http://plone.org/products/pfgdatagrid<br />
download this product and install it after installing DataGridWidget and PloneFormGen</p>
<p>now you can add datagrid widget directly in plone form folder</p>
<p>to use a new type of widget as like data grid widget you can do the following steps<br />
1. copy the PFGDataGrid and paste with name as you like for example PFGNoneMultiSelectionWidget<br />
2. inside the folder change in the following files<br />
content<br />
   __init__.py will contain import nonemultiselectionff<br />
  rename the datagridff.py to nonemultiselectionff.py<br />
  in every file in every folder<br />
  also in  nonemultiselectionff.py you have to define the schema and the function<br />
for this you need to study and this is different for different widgets<br />
you have to define functions so that you can take the widget from the products folder<br />
follow example in datagridfield and in ploneFormGen fields.py for ideas<br />
or call me <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
change PFGDataGrid to PFGNoneMultiSelectionWidget<br />
and change FormDataGridField to FormNoneMultiSelectionWidget</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tareqalam.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tareqalam.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tareqalam.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tareqalam.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tareqalam.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tareqalam.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tareqalam.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tareqalam.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tareqalam.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tareqalam.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=130&subd=tareqalam&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://tareqalam.wordpress.com/2009/03/30/add-new-widget-in-ploneformgen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tareq</media:title>
		</media:content>
	</item>
		<item>
		<title>install python 2.4.3 in ubuntu 8.10</title>
		<link>http://tareqalam.wordpress.com/2009/03/15/install-python-243-in-ubuntu-810/</link>
		<comments>http://tareqalam.wordpress.com/2009/03/15/install-python-243-in-ubuntu-810/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 14:14:33 +0000</pubDate>
		<dc:creator>tareqalam</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Zope]]></category>
		<category><![CDATA[ploneCMS]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[install python 2.4.3 in ubuntu]]></category>
		<category><![CDATA[python-2.4.3]]></category>
		<category><![CDATA[ubuntu 8.10]]></category>

		<guid isPermaLink="false">http://tareqalam.wordpress.com/?p=126</guid>
		<description><![CDATA[I have got error at first when i tried to install python 2.4.3 in ubuntu 8.10
error is something like this:
/usr/bin/install -c -m 644 ./LICENSE /usr/local/lib/python2.4/LICENSE.txt
PYTHONPATH=/usr/local/lib/python2.4   \
./python -Wi -tt /usr/local/lib/python2.4/compileall.py \
-d /usr/local/lib/python2.4 -f \
-x &#8216;badsyntax&#124;site-packages&#8217; /usr/local/lib/python2.4
*** buffer overflow detected ***: ./python terminated
then i searched the net for solution i got this
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/286334
and the solution isgo inside the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=126&subd=tareqalam&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have got error at first when i tried to install python 2.4.3 in ubuntu 8.10</p>
<p>error is something like this:</p>
<p>/usr/bin/install -c -m 644 ./LICENSE /usr/local/lib/python2.4/LICENSE.txt<br />
PYTHONPATH=/usr/local/lib/python2.4   \<br />
./python -Wi -tt /usr/local/lib/python2.4/compileall.py \<br />
-d /usr/local/lib/python2.4 -f \<br />
-x &#8216;badsyntax|site-packages&#8217; /usr/local/lib/python2.4<br />
*** buffer overflow detected ***: ./python terminated<br />
then i searched the net for solution i got this</p>
<p>https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/286334</p>
<p>and the solution isgo inside the python 2.4.3 directory</p>
<p>$ ./configure CC=gcc-4.2         # works<br />
$ ./configure OPT=&#8221;-g -O0&#8243;       # works</p>
<p>then</p>
<p>$ make</p>
<p>$sudo make install</p>
<p>then the python 2.4.3 will be installed</p>
<p>I need that version of python to run the bootstrap.py of plone svn</p>
<p>now I am happy that the buildout is running ..</p>
<p>Thanks</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tareqalam.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tareqalam.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tareqalam.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tareqalam.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tareqalam.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tareqalam.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tareqalam.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tareqalam.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tareqalam.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tareqalam.wordpress.com/126/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=126&subd=tareqalam&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://tareqalam.wordpress.com/2009/03/15/install-python-243-in-ubuntu-810/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tareq</media:title>
		</media:content>
	</item>
		<item>
		<title>Box.net a nice place to share and store files</title>
		<link>http://tareqalam.wordpress.com/2008/12/31/boxnet-a-nice-place-to-share-and-store-files/</link>
		<comments>http://tareqalam.wordpress.com/2008/12/31/boxnet-a-nice-place-to-share-and-store-files/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 04:52:26 +0000</pubDate>
		<dc:creator>tareqalam</dc:creator>
				<category><![CDATA[Tips And Tricks]]></category>
		<category><![CDATA[box net]]></category>
		<category><![CDATA[free file upload]]></category>
		<category><![CDATA[free web space]]></category>
		<category><![CDATA[online file sharing]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://tareqalam.wordpress.com/?p=122</guid>
		<description><![CDATA[Box.net to store, share, edit, access and collaborate on files worldwide. this helps anyone share and access their data anywhere.
it gives 1GB space free. So you can enjoy uploading and sharing.
i am not advertising .. i enjoyed the interface there and trying to let ppl know about good things ..
thanks
box.net
      [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=122&subd=tareqalam&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Box.net to store, share, edit, access and collaborate on files worldwide. this helps anyone share and access their data anywhere.</p>
<p>it gives 1GB space free. So you can enjoy uploading and sharing.</p>
<p>i am not advertising .. i enjoyed the interface there and trying to let ppl know about good things ..</p>
<p>thanks</p>
<p><a href="http://www.box.net/"><strong><span style="color:#ff0000;">box.net</span></strong></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tareqalam.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tareqalam.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tareqalam.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tareqalam.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tareqalam.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tareqalam.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tareqalam.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tareqalam.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tareqalam.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tareqalam.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tareqalam.wordpress.com&blog=3213025&post=122&subd=tareqalam&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://tareqalam.wordpress.com/2008/12/31/boxnet-a-nice-place-to-share-and-store-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tareq</media:title>
		</media:content>
	</item>
	</channel>
</rss>