<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Romanofskis Blog</title>
	<atom:link href="http://romanofskiat.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://romanofskiat.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 19 Dec 2011 00:13:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='romanofskiat.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/4e975b499ac41a60bfa2687dbea31fbd?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Romanofskis Blog</title>
		<link>http://romanofskiat.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://romanofskiat.wordpress.com/osd.xml" title="Romanofskis Blog" />
	<atom:link rel='hub' href='http://romanofskiat.wordpress.com/?pushpress=hub'/>
		<item>
		<title>AttributeError when Installing Custom Theme Package</title>
		<link>http://romanofskiat.wordpress.com/2011/12/19/attributeerror-when-installing-custom-theme-package/</link>
		<comments>http://romanofskiat.wordpress.com/2011/12/19/attributeerror-when-installing-custom-theme-package/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 00:13:50 +0000</pubDate>
		<dc:creator>romanofski</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Zope]]></category>
		<category><![CDATA[Plone]]></category>

		<guid isPermaLink="false">http://romanofskiat.wordpress.com/?p=371</guid>
		<description><![CDATA[Troubleshooting if an AttributeError while installing a custom theme occurs.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=371&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re creating a new Plone theme package based on plone.app.theming and run into the following error:<br />
<code></code></p>
<pre>Traceback (innermost last):
  Module ZPublisher.Publish, line 126, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 575, in installProducts
  Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 512, in installProduct
   - __traceback_info__: ('my.skin',)
  Module Products.GenericSetup.tool, line 323, in runAllImportStepsFromProfile
   - __traceback_info__: profile-my.skin:default
  Module Products.GenericSetup.tool, line 1080, in _runImportStepsFromContext
  Module Products.GenericSetup.tool, line 994, in _doRunImportStep
   - __traceback_info__: plone.app.theming
  Module plone.app.theming.exportimport.handler, line 40, in importTheme
  Module plone.app.theming.utils, line 427, in applyTheme
  Module plone.registry.recordsproxy, line 43, in __setattr__
AttributeError: currentTheme</pre>
<p>This will probably have nothing to do with a wrong setup in your theme, but simply a dependency issue to diazo.<br />
<strong> Just make sure you install &#8220;Diazo theme support&#8221; before your theme is installed.</strong></p>
<p>Reference: http://plone.293351.n2.nabble.com/plone-app-theming-1-0b5-and-Plone-4-1rc2-Plone-4106-td6418670.html</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romanofskiat.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romanofskiat.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romanofskiat.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romanofskiat.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romanofskiat.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romanofskiat.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romanofskiat.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romanofskiat.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romanofskiat.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romanofskiat.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romanofskiat.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romanofskiat.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romanofskiat.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romanofskiat.wordpress.com/371/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=371&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romanofskiat.wordpress.com/2011/12/19/attributeerror-when-installing-custom-theme-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abd153160b2cc591f94caf0ad7dfba9a?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">romanofski</media:title>
		</media:content>
	</item>
		<item>
		<title>Debugging PosKey Errors in ZODB</title>
		<link>http://romanofskiat.wordpress.com/2011/12/16/debugging-poskey-errors-in-zodb/</link>
		<comments>http://romanofskiat.wordpress.com/2011/12/16/debugging-poskey-errors-in-zodb/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 01:45:27 +0000</pubDate>
		<dc:creator>romanofski</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Zope]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ZODB]]></category>

		<guid isPermaLink="false">http://romanofskiat.wordpress.com/?p=368</guid>
		<description><![CDATA[Helping articles to debug PosKey errors in a ZODB<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=368&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I ran into a KeyError while packing a ZODB database in production. It lead me to a PosKey error while loading objects which did not exist anymore. For those of you in a similar situation here is what I found very helpful:</p>
<ul>
<li><a title="Using zc.zodbdgc (fix PosKeyError’s)" href="http://zodb.org/documentation/articles/multi-zodb-gc.html">Using zc.zodbdgc (fix PosKeyError’s)</a></li>
<li><a title="Fixing Broken ZODB Object references" href="http://nathanvangheem.com/news/fixing-broken-zodb-object-references">Fixing Broken ZODB Object references</a></li>
</ul>
<p>Packages I&#8217;ve found useful:</p>
<ul>
<li>ZODB3 and it&#8217;s provided scripts (fsrefs, fsoids)</li>
<li>zc.zodbdgc</li>
<li>eye &#8211; a ZODB browser</li>
</ul>
<p>Happy debugging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romanofskiat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romanofskiat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romanofskiat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romanofskiat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romanofskiat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romanofskiat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romanofskiat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romanofskiat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romanofskiat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romanofskiat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romanofskiat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romanofskiat.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romanofskiat.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romanofskiat.wordpress.com/368/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=368&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romanofskiat.wordpress.com/2011/12/16/debugging-poskey-errors-in-zodb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abd153160b2cc591f94caf0ad7dfba9a?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">romanofski</media:title>
		</media:content>
	</item>
		<item>
		<title>Plone ConfigurationError hides missing configuration files</title>
		<link>http://romanofskiat.wordpress.com/2011/11/15/plone-configurationerror-hides-missing-configuration-files/</link>
		<comments>http://romanofskiat.wordpress.com/2011/11/15/plone-configurationerror-hides-missing-configuration-files/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 23:49:03 +0000</pubDate>
		<dc:creator>romanofski</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Zope]]></category>
		<category><![CDATA[buildout]]></category>
		<category><![CDATA[Plone]]></category>

		<guid isPermaLink="false">http://romanofskiat.wordpress.com/?p=358</guid>
		<description><![CDATA[This one is a quicky. If you run into the following error: raise ConfigurationError("Unknown directive", ns, n) zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/opt/works/projects/plone4/apf.buildout/parts/instance/etc/site.zcml", line 16.2-16.23 ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/Products.CMFPlone-4.1-py2.6.egg/Products/CMFPlone/configure.zcml", line 99.4-103.10 ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/plone.app.dexterity-1.0.3-py2.6.egg/plone/app/dexterity/configure.zcml", line 16.4-16.52 ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/plone.directives.dexterity-1.0.2-py2.6.egg/plone/directives/dexterity/configure.zcml", line 3.4-3.35 ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/five.grok-1.2.0-py2.6.egg/five/grok/configure.zcml", line 15.2-15.40 ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/grokcore.viewlet-1.8-py2.6.egg/grokcore/viewlet/configure.zcml", line 7.2-7.44 ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/zope.contentprovider-3.7.2-py2.6.egg/zope/contentprovider/configure.zcml", line 12.4 ConfigurationError: ('Unknown directive', [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=358&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This one is a quicky. If you run into the following error:</p>
<pre><code>
    raise ConfigurationError("Unknown directive", ns, n)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/opt/works/projects/plone4/apf.buildout/parts/instance/etc/site.zcml", line 16.2-16.23
ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/Products.CMFPlone-4.1-py2.6.egg/Products/CMFPlone/configure.zcml", line 99.4-103.10
ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/plone.app.dexterity-1.0.3-py2.6.egg/plone/app/dexterity/configure.zcml", line 16.4-16.52
ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/plone.directives.dexterity-1.0.2-py2.6.egg/plone/directives/dexterity/configure.zcml", line 3.4-3.35
ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/five.grok-1.2.0-py2.6.egg/five/grok/configure.zcml", line 15.2-15.40
ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/grokcore.viewlet-1.8-py2.6.egg/grokcore/viewlet/configure.zcml", line 7.2-7.44
ZopeXMLConfigurationError: File "/home/roman/.buildout/eggs/zope.contentprovider-3.7.2-py2.6.egg/zope/contentprovider/configure.zcml", line 12.4
ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/tales', u'expressiontype')
</code></pre>
<p>&#8230; and you are using plone.app.theming and dexterity you will want to<br />
check your buildout configuration file.<br />
Make sure you have the dependent configuration files included:</p>
<pre>
<code>
extends =

http://dist.plone.org/release/4.1/versions.cfg

http://good-py.appspot.com/release/dexterity/1.0

http://good-py.appspot.com/release/plone.app.theming/1.0b8

</code>
</pre>
<p>The above configurations can change with future plone releases.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romanofskiat.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romanofskiat.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romanofskiat.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romanofskiat.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romanofskiat.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romanofskiat.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romanofskiat.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romanofskiat.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romanofskiat.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romanofskiat.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romanofskiat.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romanofskiat.wordpress.com/358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romanofskiat.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romanofskiat.wordpress.com/358/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=358&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romanofskiat.wordpress.com/2011/11/15/plone-configurationerror-hides-missing-configuration-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abd153160b2cc591f94caf0ad7dfba9a?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">romanofski</media:title>
		</media:content>
	</item>
		<item>
		<title>Undo a git reset</title>
		<link>http://romanofskiat.wordpress.com/2011/07/18/undo-a-git-reset/</link>
		<comments>http://romanofskiat.wordpress.com/2011/07/18/undo-a-git-reset/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 05:45:40 +0000</pubDate>
		<dc:creator>romanofski</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[hacking]]></category>

		<guid isPermaLink="false">http://romanofskiat.wordpress.com/?p=331</guid>
		<description><![CDATA[How to undo a repository reset in git.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=331&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just happened to muck around with a repository and &#8220;accidently&#8221; reset it to a previous commit. It looked as if I lost all my recent changes. But I found out that you can &#8220;undo&#8221; the operation, here is how:</p>
<p>Lets say you&#8217;ve reset your repository to specific commit in the past:</p>
<pre>$ git reset --hard b0f7f7e600b1add7d27cc6794c68ec332a8eb90e</pre>
<p>Now the latest commit is obviously b0f7f7e600b1add7d27cc6794c68ec332a8eb90e and all newer commits seem to be gone. You can figure out the SHA id of your previous HEAD with the reflog:</p>
<pre>$ git reflog
c8b2660 HEAD@{0}: commit (amend): Bla foobar
780cd51 HEAD@{1}: commit: updated HEAD
...</pre>
<p>Your previous HEAD should be among those entries in the reflog. Look for the &#8216;updated HEAD&#8217; commit. In my example it&#8217;s HEAD@{1}. Pick the SHA of the commit you think was the previous HEAD and reset the repository again:</p>
<pre>$ git reset --hard 780cd51</pre>
<p>References:</p>
<ul>
<li><a href="http://stackoverflow.com/questions/5984428/how-to-delete-the-old-history-after-running-git-filter-branch">How to delete the old history after running git filter-branch? (Stack Overflow)</a></li>
<li><a href="http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository">Detach subdirectory into separate Git repository<br />
</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romanofskiat.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romanofskiat.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romanofskiat.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romanofskiat.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romanofskiat.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romanofskiat.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romanofskiat.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romanofskiat.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romanofskiat.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romanofskiat.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romanofskiat.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romanofskiat.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romanofskiat.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romanofskiat.wordpress.com/331/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=331&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romanofskiat.wordpress.com/2011/07/18/undo-a-git-reset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abd153160b2cc591f94caf0ad7dfba9a?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">romanofski</media:title>
		</media:content>
	</item>
		<item>
		<title>Plone Attribute Error DirContainedFileResource</title>
		<link>http://romanofskiat.wordpress.com/2011/05/17/plone-attribute-error-dircontainedfileresource/</link>
		<comments>http://romanofskiat.wordpress.com/2011/05/17/plone-attribute-error-dircontainedfileresource/#comments</comments>
		<pubDate>Tue, 17 May 2011 00:37:06 +0000</pubDate>
		<dc:creator>romanofski</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Zope]]></category>
		<category><![CDATA[Plone]]></category>

		<guid isPermaLink="false">http://romanofskiat.wordpress.com/?p=324</guid>
		<description><![CDATA[Trouble shooting for javascripts which are rendered inline in Plone.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=324&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a short one.</p>
<p>In case you&#8217;re running in an error on your Plone site which looks similar to this:</p>
<pre>File "[...]/eggs/Products.ResourceRegistries-2.0.3-py2.6.egg/Products/ResourceRegistries/browser/scripts.py", line 27, in scripts
 content = registry.getInlineResource(script.getId(), context)
 File "[...]/eggs/Products.ResourceRegistries-2.0.3-py2.6.egg/Products/ResourceRegistries/tools/BaseRegistry.py", line 840, in getInlineResource
 output = self.getResourceContent(item, context)
 File "[...]/eggs/Products.ResourceRegistries-2.0.3-py2.6.egg/Products/ResourceRegistries/tools/JSRegistry.py", line 246, in getResourceContent
 output = BaseRegistryTool.getResourceContent(self, item, context, original)
 File "[...]/eggs/Products.ResourceRegistries-2.0.3-py2.6.egg/Products/ResourceRegistries/tools/BaseRegistry.py", line 589, in getResourceContent
 method = obj.browserDefault(self.REQUEST)[0].__name__
 File "[...]/eggs/zope.browserresource-3.10.3-py2.6.egg/zope/browserresource/file.py", line 94, in browserDefault
 return getattr(self, request.method), ()
 AttributeError: 'DirContainedFileResource7' object has no attribute 'POST'</pre>
<p>Check if some of your javascripts have inline rendering enabled and obviously disable it. This seems to be more like a work around rather than a fix. Haven&#8217;t had time to investigate what was really going wrong there. Any additional pointers welcome!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romanofskiat.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romanofskiat.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romanofskiat.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romanofskiat.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romanofskiat.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romanofskiat.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romanofskiat.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romanofskiat.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romanofskiat.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romanofskiat.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romanofskiat.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romanofskiat.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romanofskiat.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romanofskiat.wordpress.com/324/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=324&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romanofskiat.wordpress.com/2011/05/17/plone-attribute-error-dircontainedfileresource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abd153160b2cc591f94caf0ad7dfba9a?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">romanofski</media:title>
		</media:content>
	</item>
		<item>
		<title>Buildout Entry &#8216;default&#8217; missing?</title>
		<link>http://romanofskiat.wordpress.com/2011/04/18/buildout-entry-default-missing/</link>
		<comments>http://romanofskiat.wordpress.com/2011/04/18/buildout-entry-default-missing/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 03:48:21 +0000</pubDate>
		<dc:creator>romanofski</dc:creator>
				<category><![CDATA[Zope]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://romanofskiat.wordpress.com/?p=306</guid>
		<description><![CDATA[zc.buildout fails loading a default entry point.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=306&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently ran into the following issue with a Plone 3.3.4 buildout:</p>
<pre>While:
  Installing.
  Getting section instance.
  Initializing section instance.
  Loading zc.buildout recipe entry plone.recipe.zope2instance:default.

An internal error occured due to a bug in
either zc.buildout or in a recipe being used:
Traceback (most recent call last):
  [...]
  File "/home/roman/.buildout/eggs/
        zc.buildout-1.4.3-py2.4.egg/zc/buildout/buildout.py",
        line 1009, in _install_and_load
    return pkg_resources.load_entry_point(
  File "build/bdist.linux-x86_64/egg/pkg_resources.py",
        line 305, in load_entry_point
  File "build/bdist.linux-x86_64/egg/pkg_resources.py",
        line 2243, in load_entry_point
ImportError: Entry point ('zc.buildout', 'default') not found</pre>
<p>I tried to recompile my python 2.4 (because the OS was just newly installed and my lack on a few dev libraries), pin to different buildout versions but <strong>couldn&#8217;t figure out what was wrong in the finish</strong>.</p>
<p>What I ended up doing in the finish, was:</p>
<ol>
<li>remove my shared buildout directory (e.g. $HOME/.buildout)</li>
<li>rerun a buildout, which created the eggs directory in the buildout directory which seem to work fine</li>
<li>canceled the local buildout run,</li>
<li>recreated the shared buildout directory with my default configuration (e.g. $HOME/.buildout, $HOME/.buildout/default.cfg and $HOME/.buildout/eggs)</li>
<li>rerun the buildout now using the global eggs directory (e.g. $HOME/.buildout/eggs)</li>
</ol>
<p>Another thing which I&#8217;ve noticed, is that zc.buildout does not have a &#8216;default&#8217; entry point. I checked releases of zc.buildout back to 1.0. I wonder why it seems to be so arbitrarily being loaded that it works sometimes and sometimes not.</p>
<p>Ah &#8230; and btw. always a good one: Sometimes removing the .installed.cfg (it&#8217;s hidden with a dot in front!) helps as well.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romanofskiat.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romanofskiat.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romanofskiat.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romanofskiat.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romanofskiat.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romanofskiat.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romanofskiat.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romanofskiat.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romanofskiat.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romanofskiat.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romanofskiat.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romanofskiat.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romanofskiat.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romanofskiat.wordpress.com/306/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=306&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romanofskiat.wordpress.com/2011/04/18/buildout-entry-default-missing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abd153160b2cc591f94caf0ad7dfba9a?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">romanofski</media:title>
		</media:content>
	</item>
		<item>
		<title>Running Selenium tests without X11</title>
		<link>http://romanofskiat.wordpress.com/2011/02/17/running-selenium-tests-without-x11/</link>
		<comments>http://romanofskiat.wordpress.com/2011/02/17/running-selenium-tests-without-x11/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 08:24:23 +0000</pubDate>
		<dc:creator>romanofski</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Zope]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://romanofskiat.wordpress.com/?p=283</guid>
		<description><![CDATA[Setting up a Selenium testing environment in a Hudson/Jenkins CI.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=283&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Because writing tests with <a href="http://pypi.python.org/pypi/zope.testbrowser" target="_blank">zope.testbrowser</a> can sometimes be a pain, I recently got a hint from <a href="http://www.gocept.com" target="_blank">Christian Zagrodnick</a> to have a look back on Selenium again. <a href="http://seleniumhq.org/" target="_blank">Selenium</a> plays a pre-recorded, or scripted session to test your web-application in a browser: click here, verify if &#8216;hello world&#8217; is present, click there and so forth. It&#8217;s bit like driving with hands off the steering wheel.</p>
<p><a title="Eleanor Schonell Bridge by romanjoost, on Flickr" href="http://www.flickr.com/photos/romanofski/5348902916/"><img class="alignright" src="http://farm6.static.flickr.com/5284/5348902916_5c45bbab53_m.jpg" alt="Eleanor Schonell Bridge" width="160" height="240" /></a></p>
<p>Now, I remember having used Selenium before, but</p>
<ul>
<li>it was a nuissance to setup, esp to work nicely with a <a href="http://pypi.python.org/pypi/Products.PloneTestCase" target="_blank">Plone TestCase</a></li>
<li>getting it setup in a continous integration environment was quite some work too.</li>
</ul>
<h2>Motivation</h2>
<p>With Plone 4, a <a href="http://pypi.python.org/pypi/plone.app.testing/4.0a4" target="_blank">new testcase component </a>is implemented which made it much, much, much easier to write tests for Plone packages. The <a href="http://pypi.python.org/pypi/gocept.selenium/0.10.1" target="_blank">gocept.selenium</a> packages wraps Selenium in a nice compatible package and provides test classes for Zope2, Plone and Zope3 tests. The result is, that the setup and maintainance of tests with selenium became much, much easier as well.</p>
<p>The only missing piece was the continious integration (CI) environment. I&#8217;m running all tests of the packages I develop at <a href="http://www.mooball.com" target="_blank">Mooball</a> in <a href="http://www.hudson-ci.org" target="_blank">Hudson</a> continously. Being also able to run all Selenium tests would be a <strong>big, big plus</strong>. But without an X server, you can&#8217;t run a browser, which is essential to run the tests.</p>
<p>I didn&#8217;t like the idea of installing a complete X environment on my CI server, so I searched around and found these articles to run Selenium tests without requiring a complete X server installed:</p>
<ul>
<li><a title="Hudson and SeleniumTest Suite" href="http://oshyn.com/_blog/Software_Development/post/Hudson-Selenium-Test-Suite/">Hudson and SeleniumTest Suite</a></li>
<li><a href="http://shotgunsandpenguins.blogspot.com/2008/10/how-to-run-selenium-tests-with-hudson.html">How To: Run Selenium Tests with Hudson on a Headless Linux Server, Part One&#8211;Xvfb</a></li>
</ul>
<p>There are more around, but they helped me getting started.</p>
<h2>Problem</h2>
<p>My main questions were:</p>
<ol>
<li>How to run the selenium server? Start the server for each build or leave it running as a daemon in the background?</li>
<li>Run an X server (e.g. Xvfb) or an X server with a VNC server, because Hudson already provides plug-ins for the VNC server?</li>
<li>Run the X server per build or leave it running in the background?</li>
</ol>
<p style="text-align:center;"><a title="Yeh - at night the wheel spins faster ;) by romanjoost, on Flickr" href="http://www.flickr.com/photos/romanofski/5311280056/"><img class="aligncenter" src="http://farm6.static.flickr.com/5009/5311280056_7b3d32d766_m.jpg" alt="Yeh - at night the wheel spins faster ;)" width="240" height="160" /></a></p>
<h2>My Solution</h2>
<h3>1. Selenium Server</h3>
<p>I configured the selenium server to run as a daemon. Starting/Stopping the server per test would be too resource intensive and perhaps unreliable. <a href="http://www.romanofski.de/selenium-server.sh">So I came up with a small init script</a>. It allows me to start the selenium server at boot time and keep it running.</p>
<h3>2. + 3. The X Server</h3>
<p>I opted for installing <a href="http://en.wikipedia.org/wiki/Xvfb">Xvfb</a> and thought first about starting/stopping it per build, but here again, I think it becomes a nuisance and too unreliable if the server for whatever reason doesn&#8217;t start up or crashes.<a href="http://www.romanofski.de/xvfb-server.sh"> I created another init script to keep the Xvfb running</a>. <strong>Note</strong> though, I don&#8217;t disable the access permissions to connect to Xvfb as most of the other blog articles do.</p>
<h3>Installation</h3>
<p>The installation is actually pretty much straight forward:</p>
<ol>
<li>Install java and selenium-server (I preferred /opt)</li>
<li>Configure the init script variables (port, paths, browser, etc). I for one prefer to run firefoxchrome, which works fine for me.</li>
<li>Install Xvfb and adjust the init script variables.</li>
<li>Start both servers. If you&#8217;re running your tests with <a href="http://pypi.python.org/pypi/gocept.selenium/">gocept.selenium, follow the installation instructions on the packages pypi page.</a></li>
</ol>
<p>That&#8217;s it. Any suggestions and updates are welcome <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romanofskiat.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romanofskiat.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romanofskiat.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romanofskiat.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romanofskiat.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romanofskiat.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romanofskiat.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romanofskiat.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romanofskiat.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romanofskiat.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romanofskiat.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romanofskiat.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romanofskiat.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romanofskiat.wordpress.com/283/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=283&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romanofskiat.wordpress.com/2011/02/17/running-selenium-tests-without-x11/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abd153160b2cc591f94caf0ad7dfba9a?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">romanofski</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5284/5348902916_5c45bbab53_m.jpg" medium="image">
			<media:title type="html">Eleanor Schonell Bridge</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5009/5311280056_7b3d32d766_m.jpg" medium="image">
			<media:title type="html">Yeh - at night the wheel spins faster ;)</media:title>
		</media:content>
	</item>
		<item>
		<title>Debugging Byobu</title>
		<link>http://romanofskiat.wordpress.com/2010/10/06/debugging-byobu/</link>
		<comments>http://romanofskiat.wordpress.com/2010/10/06/debugging-byobu/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 03:35:56 +0000</pubDate>
		<dc:creator>romanofski</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[byobu]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://romanofskiat.wordpress.com/?p=268</guid>
		<description><![CDATA[Find out why byobu is not running your custom scripts.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=268&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ubuntu ships with a neat GNU screen <a href="https://launchpad.net/byobu" target="_self">enhancement called byobu</a>. One of the nice features is to run custom scripts. The output of your custom byobu scripts are shown in the status line of your byobu session.</p>
<p style="text-align:center;">
<div id="attachment_269" class="wp-caption aligncenter" style="width: 464px"><a href="http://romanofskiat.files.wordpress.com/2010/10/byobu.png"><img class="size-full wp-image-269 " title="byobu" src="http://romanofskiat.files.wordpress.com/2010/10/byobu.png?w=620" alt=""   /></a><p class="wp-caption-text">Byobu runs custom commands</p></div>
<p>I&#8217;ve converted my <a href="http://romanofskiat.wordpress.com/2008/12/20/displaying-usefull-information-in-your-gnu-screen/">former screen script</a> to run as a custom script in byobu, but it suddenly stopped working. I was wondering why and found a way to see what the problem was.</p>
<h3>What you need</h3>
<p>My script scans my mail directory and checks for new mail. I placed it in my home directory under:</p>
<pre>$ ls /home/roman/.byobu/bin
3_maildircheck</pre>
<h3>Debugging</h3>
<p>The following points should give you a clue why your custom script won&#8217;t work with byobu:</p>
<ol>
<li>Check if you have enabled custom scripts in byobu (press F9 in a byobu session).</li>
<li>Run the custom command by itself <strong>from the plugins directory, not from your home directory</strong>. The plugins directory is located under Ubuntu in /usr/lib/byobu/custom.</li>
<li>The output of custom scripts are written to a cache file under /var/run/screen. Check what the cache files tell you.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romanofskiat.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romanofskiat.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romanofskiat.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romanofskiat.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romanofskiat.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romanofskiat.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romanofskiat.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romanofskiat.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romanofskiat.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romanofskiat.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romanofskiat.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romanofskiat.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romanofskiat.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romanofskiat.wordpress.com/268/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=268&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romanofskiat.wordpress.com/2010/10/06/debugging-byobu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abd153160b2cc591f94caf0ad7dfba9a?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">romanofski</media:title>
		</media:content>

		<media:content url="http://romanofskiat.files.wordpress.com/2010/10/byobu.png" medium="image">
			<media:title type="html">byobu</media:title>
		</media:content>
	</item>
		<item>
		<title>If acquisition comes in the way</title>
		<link>http://romanofskiat.wordpress.com/2010/08/13/zope2-catalog-acquisition/</link>
		<comments>http://romanofskiat.wordpress.com/2010/08/13/zope2-catalog-acquisition/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 00:48:22 +0000</pubDate>
		<dc:creator>romanofski</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Zope]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Plone]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://romanofskiat.wordpress.com/?p=259</guid>
		<description><![CDATA[Why Plone/Zope sometimes indexes the wrong objects/attributes and shows HTML mark-up in edit forms instead of widgets.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=259&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve witnessed a very strange error today.</p>
<h2>The problem</h2>
<p>I had a custom content-type which was partly indexed. When viewing the content type, parts of the edit form showed raw HTML code instead of widgets:<a href="http://romanofskiat.files.wordpress.com/2010/07/profile-error.png"><img class="aligncenter size-medium wp-image-261" title="profile-error" src="http://romanofskiat.files.wordpress.com/2010/07/profile-error.png?w=300&#038;h=193" alt="" width="300" height="193" /></a></p>
<p>What was going on?</p>
<h2>The solution</h2>
<p>I hunted around for a while but <strong>checked the contents of the index</strong>. Strangely, it had a whole page indexed. After investigating further: <strong>it&#8217;s another object in the portal with the same id as the attribute on the content-type</strong>. The error happens only, if the attribute is missing on the content-type and an object in the hirarchy above has the name id.</p>
<p>So &#8211; if you encounter a problem like this, <strong>check if the portal_catalog may grab a different object for indexing with the same name of your attribute</strong>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romanofskiat.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romanofskiat.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romanofskiat.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romanofskiat.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romanofskiat.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romanofskiat.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romanofskiat.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romanofskiat.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romanofskiat.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romanofskiat.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romanofskiat.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romanofskiat.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romanofskiat.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romanofskiat.wordpress.com/259/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=259&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romanofskiat.wordpress.com/2010/08/13/zope2-catalog-acquisition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abd153160b2cc591f94caf0ad7dfba9a?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">romanofski</media:title>
		</media:content>

		<media:content url="http://romanofskiat.files.wordpress.com/2010/07/profile-error.png?w=300" medium="image">
			<media:title type="html">profile-error</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading Ghostscript and CentOS</title>
		<link>http://romanofskiat.wordpress.com/2010/07/22/upgrading-ghostscript-and-centos/</link>
		<comments>http://romanofskiat.wordpress.com/2010/07/22/upgrading-ghostscript-and-centos/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 02:06:15 +0000</pubDate>
		<dc:creator>romanofski</dc:creator>
				<category><![CDATA[Grafics]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[ghostscript]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://romanofskiat.wordpress.com/?p=249</guid>
		<description><![CDATA[How to install ghostscript on CentOS and fix remaining font issues.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=249&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The installed Ghostscript version on CentOS is usually too old if you compare it to installations like Ubuntu. Upgrading ghostscript without compiling the whole package is a challenge, but I found via <a title="Chris Schuld's Blog" href="http://chrisschuld.com/">Chris  Schuld&#8217;s Blog</a> a link to the <a href="http://blackopsoft.com/">http://blackopsoft.com/</a> repository which provides a recent ghoscript version.</p>
<h2>The Problem</h2>
<p>Nevertheless, I still had troubles with <a href="http://www.imagemagick.org/script/index.php">ImageMagick</a>. If you want to convert PDFs to images for example, the installed ghostscript version was unable to lookup certain font files resulting in an error similar to this one:</p>
<pre>Error: /invalidfont in findfont
Operand stack:
   Arial-ISO   Arial-ISO   Arial   Font   Arial
Execution stack:
   [...]
Dictionary stack:
  [...]
Current allocation mode is local
Last OS error: 2
Current file position is 279
GNU Ghostscript 7.05: Unrecoverable error, exit code 1</pre>
<h2>The Solution</h2>
<p>I hunted around in the system. Apparently ghostscript still uses a <a href="http://pages.cs.wisc.edu/~ghost/doc/cvs/Fonts.htm">fontmap</a> to lookup fonts. The question is which fontmap was in use. I tried to change the fontmap in /etc/ghostscript which had no affect.</p>
<p>I finally found a bogus fontmap under</p>
<pre>/usr/share/ghostscript/8.70/Resource/Init</pre>
<p>which provided all font entries and aliases, but none of the aliases had a font file associated with it. For example, Helvetica-Bold pointed to NimbusSanL-BoldCond, but  NimbusSanL-BoldCond had <strong>no pointer to an existing font file in the file system. It was simply missing.</strong></p>
<h2>The Fix</h2>
<p>I got it now working with this in <strong>/usr/share/ghostscript/8.70/Resource/Init</strong>:</p>
<pre>%!
% See Fontmap.GS for the syntax of real Fontmap files.
%% Replace 1 (Fontmap.GS)
/NimbusSanL-Regu        (n019003l.pfb)  ;
/NimbusSanL-ReguItal    (n019023l.pfb)  ;
/NimbusSanL-Bold        (n019004l.pfb)  ;
/NimbusSanL-BoldItal    (n019024l.pfb)  ;

/NimbusSanL-ReguCond    (n019043l.pfb)  ;
/NimbusSanL-ReguCondItal        (n019063l.pfb)  ;
/NimbusSanL-BoldCond    (n019044l.pfb)  ;
/NimbusSanL-BoldCondItal        (n019064l.pfb)  ;

(Fontmap.GS) .runlibfile
</pre>
<p>References:</p>
<ul>
<li>
<pre><a href="http://docs.scribus.net/index.php?lang=en&amp;page=gsfont">Scribus: http://docs.scribus.net/index.php?lang=en&amp;page=gsfont</a></pre>
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/romanofskiat.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/romanofskiat.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/romanofskiat.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/romanofskiat.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/romanofskiat.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/romanofskiat.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/romanofskiat.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/romanofskiat.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/romanofskiat.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/romanofskiat.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/romanofskiat.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/romanofskiat.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/romanofskiat.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/romanofskiat.wordpress.com/249/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=romanofskiat.wordpress.com&amp;blog=3649198&amp;post=249&amp;subd=romanofskiat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://romanofskiat.wordpress.com/2010/07/22/upgrading-ghostscript-and-centos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abd153160b2cc591f94caf0ad7dfba9a?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">romanofski</media:title>
		</media:content>
	</item>
	</channel>
</rss>
