Re: programatic portlets behavior
Georges Racinet <[email protected]>
| Newsgroups | gmane.comp.web.zope.cps.devel |
|---|---|
| Message-ID | <[email protected]> |
On Feb 15, 2007, at 5:17 PM, Miguel Sánchez Beato wrote:
> 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?
In the schema, these are Int Fields. I suggest you try with 0 and 1
for False/True.
>
> 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!
> _______________________________________________
> cps-devel mailing list
> http://lists.nuxeo.com/mailman/listinfo/cps-devel
>
---------
Georges Racinet, Nuxeo SAS
Open Source Enterprise Content Management (ECM)
Web: http://www.nuxeo.com/ and http://www.nuxeo.org/ - Tel: +33 1 40
33 79 87
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel