[Zope-dev] SVN: zope.traversing/trunk/ zcml now only depends on zope.component meta, not zope.app.component
Marius Gedminas
marius at gedmin.as
Tue Apr 28 18:59:37 EDT 2009
On Thu, Apr 23, 2009 at 08:01:36AM +0200, Christian Theune wrote:
> On Fri, 2009-04-03 at 01:37 +0300, Marius Gedminas wrote:
> > Incidentally, I've a long-standing wish to be able to register browser
> > views in ZCML using the adapter directive.
> >
> > class MyFineView(BrowserPage):
> > adapts(IMyContentObject, IBrowserRequest)
> >
> > template = ViewPageTemplateFile('my_fine_view.pt')
> >
> > def __call__(self):
> > # update form or whatever
> > return self.template()
> >
> > <adapter name="my_fine_view.html" factory=".mod.MyFineView" />
> >
> > Maybe something to look for in Zope 4?
>
> How about recording this wish on launchpad?
Sure, go ahead and do it!
:-)
Marius Gedminas
--
http://pov.lt/ -- Zope 3 consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090429/b88b0038/attachment.bin
More information about the Zope-Dev
mailing list