<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Could it be possible to make viewlets simple again?</title>
	<atom:link href="http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/</link>
	<description>Freedom delivered.</description>
	<lastBuildDate>Thu, 02 Sep 2010 06:27:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: 300baud</title>
		<link>http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/comment-page-1/#comment-373</link>
		<dc:creator>300baud</dc:creator>
		<pubDate>Wed, 16 Apr 2008 13:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redinnovation.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/#comment-373</guid>
		<description>Not to sound elitist or anything, but Average Joes who were convinced to use Plone for anything more than CMS (&quot;you can customize it yourself!&quot;, etc) got conned.  Plone development is not for the faint of heart or weak of stomach.  Some of it is due to the use of advanced (or just many) concepts, but a lot of it is just the pure insanity of the volatile domain space and the pulled-in-all-directions development model.

A lot of the problems in Zope2 and Plone are, IMHO, due to an overconsideration of Average Joes, who at one time were going to build their own applications with ZClasses (since what Average Joe fears above all else are text editors -- textareas are A-OK!).  It has added many layers of useless complexity.  I&#039;m all for enabling Average Joes, but I think that is better accomplished through quality documentation than code contortions that attempt to hide rather than reduce complexity.

That said, what I&#039;ve seen of Grok rocks!</description>
		<content:encoded><![CDATA[<p>Not to sound elitist or anything, but Average Joes who were convinced to use Plone for anything more than CMS (&#8220;you can customize it yourself!&#8221;, etc) got conned.  Plone development is not for the faint of heart or weak of stomach.  Some of it is due to the use of advanced (or just many) concepts, but a lot of it is just the pure insanity of the volatile domain space and the pulled-in-all-directions development model.</p>
<p>A lot of the problems in Zope2 and Plone are, IMHO, due to an overconsideration of Average Joes, who at one time were going to build their own applications with ZClasses (since what Average Joe fears above all else are text editors &#8212; textareas are A-OK!).  It has added many layers of useless complexity.  I&#8217;m all for enabling Average Joes, but I think that is better accomplished through quality documentation than code contortions that attempt to hide rather than reduce complexity.</p>
<p>That said, what I&#8217;ve seen of Grok rocks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Confluence: Pakki 2</title>
		<link>http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/comment-page-1/#comment-327</link>
		<dc:creator>Confluence: Pakki 2</dc:creator>
		<pubDate>Mon, 10 Mar 2008 19:35:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redinnovation.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/#comment-327</guid>
		<description>&lt;strong&gt;Plone...&lt;/strong&gt;

kotisivu...</description>
		<content:encoded><![CDATA[<p><strong>Plone&#8230;</strong></p>
<p>kotisivu&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Teague</title>
		<link>http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/comment-page-1/#comment-284</link>
		<dc:creator>Kevin Teague</dc:creator>
		<pubDate>Tue, 27 Nov 2007 05:47:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redinnovation.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/#comment-284</guid>
		<description>You can do many of these customizations using the portal_view_customizations tool - erm, except for the languageselector template, that template isn&#039;t editable because of a simple bug. It&#039;s just that few know about the existence of this tool yet (despite the fact that the source package has an awesome name - plone.app.customerize).

What would be helpful is if @@manage-viewlets had an [edit] button for each viewlet that took you to a TTP (through-the-plone) page that let you edit a given template instead of needing to hunt around the scary ol&#039; ZMI for &#039;portal_view_customizations&#039;. This would probably be quite easy to do as well. It would also rock if you could move viewlets from one container to another in @@manage-viewlets, although that would be a harder UI to support - although perhaps with some of that fancy new KSS it wouldn&#039;t be too hard to implement.

This only addresses &quot;template-only&quot; customizations though. If you want to create a viewlet backed by a custom Python class you are going to hit that much larger learning curve.</description>
		<content:encoded><![CDATA[<p>You can do many of these customizations using the portal_view_customizations tool &#8211; erm, except for the languageselector template, that template isn&#8217;t editable because of a simple bug. It&#8217;s just that few know about the existence of this tool yet (despite the fact that the source package has an awesome name &#8211; plone.app.customerize).</p>
<p>What would be helpful is if @@manage-viewlets had an [edit] button for each viewlet that took you to a TTP (through-the-plone) page that let you edit a given template instead of needing to hunt around the scary ol&#8217; ZMI for &#8216;portal_view_customizations&#8217;. This would probably be quite easy to do as well. It would also rock if you could move viewlets from one container to another in @@manage-viewlets, although that would be a harder UI to support &#8211; although perhaps with some of that fancy new KSS it wouldn&#8217;t be too hard to implement.</p>
<p>This only addresses &#8220;template-only&#8221; customizations though. If you want to create a viewlet backed by a custom Python class you are going to hit that much larger learning curve.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martijn Faassen</title>
		<link>http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/comment-page-1/#comment-283</link>
		<dc:creator>Martijn Faassen</dc:creator>
		<pubDate>Tue, 27 Nov 2007 04:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redinnovation.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/#comment-283</guid>
		<description>Hey Mikko. I don&#039;t know anything about Plone viewlets, and little as yet about viewlets. To those defending the current state of viewlets in Plone: I realize that all this complexity you describe has value (Five is one of underlying enablers of both the features and complexity now, so I indirectly had a little to do with this). 

I also like the constructive and well-researched criticism and your goal to simplify. So forgive me the recruitement attempt: please join the grok-dev mailing list if you haven&#039;t already and make sure that when we get to viewlets, we do it right?

What does it mean to do it right? The Grok approach is this: we keep the essential flexibility but don&#039;t let it get in your way, by providing sensible defaults and minimizing repetition.

There is a tension there with explicit configuration and the complexity that results in, but there&#039;s also a lot of synergy. In fact I think Grok is a much better framework thanks to it being based on Zope 3, a framework with a strong attitude towards explicit configuration. When we developed Grok we didn&#039;t need to rebuild Zope 3, we just needed to add automation on top of it. Zope 3&#039;s explicitness pointed out what we could automate and how. Similarly I hope the complexity of configuration of viewlets today can be a great help in identifying what Grok should be doing by default and what flexibility points it should be providing.</description>
		<content:encoded><![CDATA[<p>Hey Mikko. I don&#8217;t know anything about Plone viewlets, and little as yet about viewlets. To those defending the current state of viewlets in Plone: I realize that all this complexity you describe has value (Five is one of underlying enablers of both the features and complexity now, so I indirectly had a little to do with this). </p>
<p>I also like the constructive and well-researched criticism and your goal to simplify. So forgive me the recruitement attempt: please join the grok-dev mailing list if you haven&#8217;t already and make sure that when we get to viewlets, we do it right?</p>
<p>What does it mean to do it right? The Grok approach is this: we keep the essential flexibility but don&#8217;t let it get in your way, by providing sensible defaults and minimizing repetition.</p>
<p>There is a tension there with explicit configuration and the complexity that results in, but there&#8217;s also a lot of synergy. In fact I think Grok is a much better framework thanks to it being based on Zope 3, a framework with a strong attitude towards explicit configuration. When we developed Grok we didn&#8217;t need to rebuild Zope 3, we just needed to add automation on top of it. Zope 3&#8242;s explicitness pointed out what we could automate and how. Similarly I hope the complexity of configuration of viewlets today can be a great help in identifying what Grok should be doing by default and what flexibility points it should be providing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Nouri</title>
		<link>http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/comment-page-1/#comment-281</link>
		<dc:creator>Daniel Nouri</dc:creator>
		<pubDate>Tue, 27 Nov 2007 00:13:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redinnovation.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/#comment-281</guid>
		<description>Thanks for this nice article, Mikko.  I was missing the points that you make here in the recent discussion about TTW or not.

The templating system needs to be easy to understand for front-end developers.  It&#039;s NOT (only) about whether everything can be customized through the web or not.

Now if all these steps give me a headache already, how am I supposed to explain this to my fellow HTML/designer person, who really wants to use a version control system?

I think that the vague benefit of &quot;can track changes easier&quot; (anyone heard of diff?) is in no relation to the downsides.

I&#039;m seeing UI people that are confused today with how Plone 2.5 is put together, and we&#039;re just adding to the complexity...</description>
		<content:encoded><![CDATA[<p>Thanks for this nice article, Mikko.  I was missing the points that you make here in the recent discussion about TTW or not.</p>
<p>The templating system needs to be easy to understand for front-end developers.  It&#8217;s NOT (only) about whether everything can be customized through the web or not.</p>
<p>Now if all these steps give me a headache already, how am I supposed to explain this to my fellow HTML/designer person, who really wants to use a version control system?</p>
<p>I think that the vague benefit of &#8220;can track changes easier&#8221; (anyone heard of diff?) is in no relation to the downsides.</p>
<p>I&#8217;m seeing UI people that are confused today with how Plone 2.5 is put together, and we&#8217;re just adding to the complexity&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikko Ohtamaa</title>
		<link>http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/comment-page-1/#comment-279</link>
		<dc:creator>Mikko Ohtamaa</dc:creator>
		<pubDate>Mon, 26 Nov 2007 18:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redinnovation.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/#comment-279</guid>
		<description>Hi Florian,

Your answer reflect much of a developer attidude and I think you miss the point of the blog: I don&#039;t want technical answers, I want to point out that viewlet system is too complex for non-pro developers and how it could be improved. You understand ZCML and such stuff when you typed your answer out of your head - normal people don&#039;t know these things. And why should they?

- The template has nothing to do with where something is placed

Only in the engineer world which is full of rectangles and 90 degree corners. Look at this layout: http://www.amnesty.ch/en See word Contact. It has a special border. Thus, the template rendering the word has a lot of do where it is placed.

- You can just register a template in your zcml, no need for python files.

Why do I have to do this? Why my templates aren&#039;t picked automatically like in plone_skins?

- The template has nothing to do with where something is placed, just how it looks.

Only in the ideal world. Templates need data. Data comes from viewlet classes. Often you need to transform this data suitable for templates. To change the data, even a tiny bit, you need to subclass/recreate the viewlet class. This is cumbersome.

- Register your viewlet under the original name, just with the new layer.

New layer = WTF says Average Joe.

Register viewlet = WTF says Average Joe.

- And subclassing is way better than the old way where you had to copy the whole python script and template and customize them.

This is true, as I told the post. It makes possible to extend Plone cleanly. But it&#039;s also a cumbersome way to make small changes. Skin/template developers must be aware of a lot of things which they shouldn&#039;t (ZCML, Python, ZCA and so on).</description>
		<content:encoded><![CDATA[<p>Hi Florian,</p>
<p>Your answer reflect much of a developer attidude and I think you miss the point of the blog: I don&#8217;t want technical answers, I want to point out that viewlet system is too complex for non-pro developers and how it could be improved. You understand ZCML and such stuff when you typed your answer out of your head &#8211; normal people don&#8217;t know these things. And why should they?</p>
<p>- The template has nothing to do with where something is placed</p>
<p>Only in the engineer world which is full of rectangles and 90 degree corners. Look at this layout: <a href="http://www.amnesty.ch/en" rel="nofollow">http://www.amnesty.ch/en</a> See word Contact. It has a special border. Thus, the template rendering the word has a lot of do where it is placed.</p>
<p>- You can just register a template in your zcml, no need for python files.</p>
<p>Why do I have to do this? Why my templates aren&#8217;t picked automatically like in plone_skins?</p>
<p>- The template has nothing to do with where something is placed, just how it looks.</p>
<p>Only in the ideal world. Templates need data. Data comes from viewlet classes. Often you need to transform this data suitable for templates. To change the data, even a tiny bit, you need to subclass/recreate the viewlet class. This is cumbersome.</p>
<p>- Register your viewlet under the original name, just with the new layer.</p>
<p>New layer = WTF says Average Joe.</p>
<p>Register viewlet = WTF says Average Joe.</p>
<p>- And subclassing is way better than the old way where you had to copy the whole python script and template and customize them.</p>
<p>This is true, as I told the post. It makes possible to extend Plone cleanly. But it&#8217;s also a cumbersome way to make small changes. Skin/template developers must be aware of a lot of things which they shouldn&#8217;t (ZCML, Python, ZCA and so on).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florian Schulze</title>
		<link>http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/comment-page-1/#comment-278</link>
		<dc:creator>Florian Schulze</dc:creator>
		<pubDate>Mon, 26 Nov 2007 16:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redinnovation.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/#comment-278</guid>
		<description>You can just register a template in your zcml, no need for python files. Then you only need the viewlets.xml GS profile part to place it, because that just doesn&#039;t belong in the template. The template has nothing to do with where something is placed, just how it looks.
I also don&#039;t understand what this means &quot;Create a new container which will be placed between somewhere between the existing container&quot;. If you want to change an existing viewlet, just use your own skin, add a zope 3 skin layer to it (all done automatically by DIY Plone Style) and register your viewlet under the original name, just with the new layer.
And subclassing is way better than the old way where you had to copy the whole python script and template and customize them. It&#039;s also easier for upgrades, because you don&#039;t have to track as many changes.</description>
		<content:encoded><![CDATA[<p>You can just register a template in your zcml, no need for python files. Then you only need the viewlets.xml GS profile part to place it, because that just doesn&#8217;t belong in the template. The template has nothing to do with where something is placed, just how it looks.<br />
I also don&#8217;t understand what this means &#8220;Create a new container which will be placed between somewhere between the existing container&#8221;. If you want to change an existing viewlet, just use your own skin, add a zope 3 skin layer to it (all done automatically by DIY Plone Style) and register your viewlet under the original name, just with the new layer.<br />
And subclassing is way better than the old way where you had to copy the whole python script and template and customize them. It&#8217;s also easier for upgrades, because you don&#8217;t have to track as many changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikko Ohtamaa</title>
		<link>http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/comment-page-1/#comment-277</link>
		<dc:creator>Mikko Ohtamaa</dc:creator>
		<pubDate>Mon, 26 Nov 2007 16:34:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redinnovation.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/#comment-277</guid>
		<description>Rocky, you are right. You can tweak main_template.pt with no problems. The problems appear when you need to change something inside viewlet containers: between viewlets or add new containers (basically all portal_header stuff). Since order and content in the containers are defined (programmatically) in ZCML, GenericProfiles &amp; co. you must go this route to change them. You can tune individual viewlet template with macro hacking, but that&#039;s quite limited.</description>
		<content:encoded><![CDATA[<p>Rocky, you are right. You can tweak main_template.pt with no problems. The problems appear when you need to change something inside viewlet containers: between viewlets or add new containers (basically all portal_header stuff). Since order and content in the containers are defined (programmatically) in ZCML, GenericProfiles &#038; co. you must go this route to change them. You can tune individual viewlet template with macro hacking, but that&#8217;s quite limited.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Could it be possible to make viewlets simple again? &#124; yourmuses</title>
		<link>http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/comment-page-1/#comment-275</link>
		<dc:creator>Could it be possible to make viewlets simple again? &#124; yourmuses</dc:creator>
		<pubDate>Mon, 26 Nov 2007 15:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redinnovation.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/#comment-275</guid>
		<description>[...] sourced here [...]</description>
		<content:encoded><![CDATA[<p>[...] sourced here [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Greenfeld</title>
		<link>http://blog.mfabrik.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/comment-page-1/#comment-274</link>
		<dc:creator>Daniel Greenfeld</dc:creator>
		<pubDate>Mon, 26 Nov 2007 14:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.redinnovation.com/2007/11/26/could-it-be-possible-to-make-viewlets-simple-again/#comment-274</guid>
		<description>Thanks for writing this post.  I&#039;ve felt the same way but didn&#039;t quite verbalize it the same way you did.</description>
		<content:encoded><![CDATA[<p>Thanks for writing this post.  I&#8217;ve felt the same way but didn&#8217;t quite verbalize it the same way you did.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
