Nuxeo mailing list archives
[CPS-devel] howto specify several schemas to renderLayout
Florent Guillaume
fg at nuxeo.com
Thu Jul 13 02:38:48 CEST 2006
This method is designed to render a layout referencing only one schema.
You can define a schema with only the fields you want, yes.
Alternatively you could write another version of the method that
takes several schema.
Florent
On 11 Jul 2006, at 17:05, Joachim Schmitz wrote:
> hi,
>
> in a pythonscript I am using portal_layouts.renderLayout like so:
>
> res,psm,ds = lt.renderLayout(layout_id='faculty_row',
> schema_id = 'faculty',
> context=context,
> mapping=validate and request,
> ob={},
> layout_mode='edit',
> formaction = "academics_view",
> items = faculties,
> )
> this fails with a key-error 'Title', on the faculty schema. This is
> correct, cause Title is defined in the schema 'common', do I really
> have to define a new schema ?
>
> cheers Joachim
--
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the cps-devel
mailing list
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.