[Zope-CMF] Re: getActionById replacement
Tres Seaver
tseaver at palladion.com
Tue Oct 25 11:39:23 EDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
yuppie wrote:
> Chris Withers wrote:
>
>> yuppie wrote:
>>
>>>
>>> This is in a completely set up Plone site? Could you please try to
>>> debug those values while we are still in customizePortalTypes?
>>
>>
>> Okay, in there, it's just the normal Plone types, which we don't use.
>> And yes, their _aliases dict appears to have 'view' keys which map to
>> the right thing.
>>
>> So, I guess maybe this is an Archeturds thing? Do they somehow screw
>> up their TI's such that they don't have a sensible _aliases attribute?
>
>
> The _aliases attribute is an implementation detail of default FTIs. ATCT
> uses CMFDynamicViewFTI which has a different implementation of
> queryMethodID.
>
> The MethodID returned by CMFDynamicViewFTI depends on the specific
> object, so you have to pass the object to queryMethodID:
>
> ti.queryMethodID('view', object)
Note that this change is an instance of the "object-overrides-type"
pattern, which is what some people want for *other* type-specific
policies, too (e.g., worklflows, allowed metadata, etc.)
Tres.
- --
===================================================================
Tres Seaver +1 202-558-7113 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDXlGr+gerLs4ltQ4RAiefAJ9AuysjgsZtKMgCpAyPqhOE4Nl56gCgifzR
KgPhNDg2J426pWXvFMGcens=
=/LB1
-----END PGP SIGNATURE-----
More information about the Zope-CMF
mailing list