[z3-five] using getToolByName in utility

yuppie y.2007- at wcm-solutions.de
Thu Feb 1 11:43:59 CET 2007


Hi Dennis!


Dennis Schulz wrote:
> I looked at EventTypeVocabulary in CMFCalendar.browser.event. 
> In the Utitily itself I cant see any difference to mine.
> Can you tell where it is used?

The name of the utility is 'cmf.calendar.AvailableEventTypes'. It is 
used in the 'categories' field of IEventSchema. The EventSchemaAdapter 
implements this interface, not the persistent Event object itself.

> I my case does it make I create an adapter in the applychanges and then use the context of the adapter instead of the adapter?
> 
> set(adapter,newvalue)

In CMFCalendar we have to adapt the old Event class anyway. Don't know 
if it makes sense to implement your stuff in a similar way. Can't help 
you with that.


Cheers,

	Yuppie



More information about the z3-five mailing list