-----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          [EMAIL PROTECTED]
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-----

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to