Georges Racinet wrote:
Le 5 juin 2006, à 22:15, Yves Bastide a écrit :
[...]
But this doesn't work: create a MyDocument, add to it an PDF file,
there's no preview nor printable version. This is because the File
field can't find its dependent fields. The first PDf file fields are
file_0_f0 (original), file_0_f1 (text), file_0_f2 (html) and file_0_f3
(html subfiles), while file_0_f0's computeDependantFields() method
looks for file_0_f0_f1 and so on.
Right. Let me point out that this is the case if you want to have a
flexible part with one flexible widget already created. Otherwise (void
schema, templates with '?' for fields only), the consistentency would be
better.
As in the CPS Document type? Hmm, it doesn't work (with or without the
patch)
Yep, as I understand it the way I described is somewhat silly (there's a
useless schema, right?); let's just say it serves as documentation :)
[Though it's more convoluted: IIRC *_subfiles is used, not *_f3, as
heavier surgery would have been needed]
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel