[z3-five] using getToolByName in utility
Dennis Schulz
d.schulz81 at gmx.net
Thu Feb 1 15:15:34 CET 2007
Hi Yuppie,
To make use of the adapter like you did the Products.CMFDefault.formlib
is necessary?
The Products.CMFDefault.formlib package is not included into Plone 2.5.2
I am working with. I guess it will be part of Plone 3.0.
Can I use it in Plone 2.5.2?
Dennis
yuppie escribió:
> 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