[Checkins] SVN: five.pt/trunk/ Add somewhat evil method to hook into grok. Unfortunately grok makes it extremely hard to do this more cleanly.

Wichert Akkerman wichert at wiggy.net
Thu Apr 15 04:25:16 EDT 2010


On 4/15/10 10:21 , Sylvain Viollon wrote:
> On Wed, 14 Apr 2010 18:03:10 +0200
> Wichert Akkerman<wichert at wiggy.net>  wrote:
>
>    Hello,
>
>> On 4/14/10 18:01 , Vincent Fretin wrote:
>>> Ah, I was looking at five.grok 1.0. The code changed in five.grok
>>> 1.1.1. I'm currently verifying what I say. :)
>>
>> You may very well be correct though! If you have something that works
>> better please feel free to commit it.
>>
>
>     Why don't you use megrok.chameleon if you want to have Chameleon
>     grok page template ?

It's model is wrong for that we want. I only want my code to use page 
templates and grok.Views and not care if zope.pagetemplates or Chameleon 
is used. That allows us to move existing code over to Chameleon, which 
is the entire purpose of five.pt. With megrok.chameleon you have to 
explicitly code that decision into the code.

>     You just have to name you template .cpt.

The extension .cpt has been taken many years ago by CMFFormController, 
so it is not an acceptable extension to use in a Plone context.

Wichert.


More information about the checkins mailing list