Nuxeo mailing list archives
[CPS-devel] howto specify several schemas to renderLayout
Joachim Schmitz
js at aixtraware.de
Tue Jul 11 17:05:41 CEST 2006
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
--
Mit freundlichen Grüßen Joachim Schmitz
......................................................................
AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163
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.