Charlie Clark, on 2007-07-18:
> Okay, thanks! I'm nearly there. I think. %-? ;-)
> Because I'm only creating essentially a slightly different view of an
> event I've taken the ZCML for the standard view as a lead:
> is event_iCal_view my view class?
No, that is the name. That means you can do
in a template that has an IEvent provider as context.
The class is the EventiCalView class in event.py.
> So, let's say I need to turn my creation date into
> I can call this in my view class via
> self.startdate = self.context.CreationDate()
> and call this in my template via
Yes. You need to do the tal:define above first though, unless there
is some other magic (well, code) that hooks up this view to that
specific template. I think that is done when you specify
template="mytemplate" in the zcml snippet.
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
I can assure you mine are still greater."
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests