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

Sylvain Viollon sylvain at infrae.com
Thu Apr 15 05:34:01 EDT 2010


On Thu, 15 Apr 2010 10:25:16 +0200
Wichert Akkerman <wichert at wiggy.net> wrote:

  Hello,

> >
> >     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.
> 

  I think it is up to the developer to make that choice anyway ...

> >     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.
> 

  That is only valid if you create your template inside of a
  CMFDirectoryView thing, that would not have any sense at all for a
  regular view template ...


  Regards,

  Sylvain

-- 
Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands


More information about the checkins mailing list