programatic portlets behavior

Miguel Sánchez Beato <miguel.sanchez-PttKq6FmaWE8QMA/Cy+x5VaTQe2KTcn/@public.gmane.org>
Newsgroups gmane.comp.web.zope.cps.devel
Message-ID <1171556238.11274.19.camel@localhost>
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!
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.