Am Fri, 13 Mar 2009 14:42:11 +0100 schrieb Raphael Ritz:
[..]
>>> Is there anything I can do to help? (write a PLIP or bribe some
>>> people, ...)
>>
>> Yes, if you can bring this up and help me and Hannes to write a PLIP it
>> would be awesome. For me at the moment its enough for our projects to
>> have this addon, but I really think its core stuff. And its stable now.
>> We need monkey-patching as add-on product, but if it would go into AT
>> itself or as a dependency of AT (what would you prefer?) this isnt
>> needed any longer.
>
> I would prefer this to go into AT proper. But at the moment that's just
> me.
> Dependency would also be OK I guess as long as we can avoid monkey
> patching (as you say).
Integration into AT imo is to apply the patches to code and templates
directly to AT and remove patch.py profile and skins from fieldtraverser.
Then we have a configure.zcml and fieldtraverser.py left, those can be
moved into Products.Archetypes and we can trash the current egg.
>
>> for more info hannes summarized fieldtraverser at
>>
http://bluedynamics.com/articles/johannes/archetypes.fieldtraverser->> released
>
> This sounds excellent.
>
> Before looking at the implementation I've two quick questions:
>
> 1. I assume this honors permission settings on fields,
> correct? (not that we open up any security holes here).
It calls field.checkPermission for 'r' (read) and raises Unauthorized if
False was returned. This is how current Archetypes do it as well.
> 2. Does it require any migration in order to be applicable
> to legacy data? I would assume yes for persistent schemata on
> instances but no for "regular" ones - any insights?
Theres no data migration needed.
fieldtraverser is fully transparent to schema or storage at all. It works
fine even with schemaextender.
As long as the field.getStorage returns the value for the field
everythings fine. ReferenceField is the only field I know about which
does not use a storage implementation. But you wouldnt ever traverse to a
Reference.
some custom widgets may want to get adjusted to make use of
fieldtraverser, but they dont start working if fieldtraverser drops in.
greetz Jens
--
Jens W. Klein, BlueDynamics Alliance,
http://bluedynamics.com------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial.
http://p.sf.net/sfu/www-adobe-com_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users