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



_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to