Nuxeo mailing list archives
[CPS-devel] programatic portlets behavior
Miguel Sánchez Beato
miguel.sanchez at iavantefundacion.com
Thu Feb 15 17:17:18 CET 2007
Hello. Were working on CPS 3.4.2 and we want to create portlets
programatically from python scripts. The portlets are created fine, but
there are some options (visibility_range/slot_override) that do not work
well until I "Save changes" in the "Manage Portlets" configuration
panel.
Anybody know why this is happening? Is this something common or maybe is
our own instance configuration?
The script that create the portlets looks like:
...
# Project Summary Portlet
kw = {'slot': 'content_well',
'order': 0,
'Title' : 'ProjectSummary Portlet',
'visibility_range': (0,1),
'disable_override' : True,
'slot_override' : True,
'project_summary_id': 'projectsummary',
}
portlet_tool.createPortlet(ptype_id='ProjectSummary Portlet',
context=project_proxy, **kw)
...
Thanks!
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.