You are not allowed to access 'getContent' in this context

[email protected]
Newsgroups gmane.comp.web.zope.cps.devel
Message-ID <[email protected]>

Hello,

I got a problem with latest_news et latest_document portlets:
It works well for an admin but I get a blinking !!! in state of the lasts
10 docs or news for anyone else.
It seems that this !!! come from

/CPSProducts/CPSSkins/PortalBoxGroup.py :
...
  if shield:
        try:
            rendered = portlet.render_cache(**kw)
        except ConflictError: # catch conflict errors
            raise
        except:
            LOG('CPSSkins.PortalBoxGroup:', DEBUG,
            """The portlet with id %s could not be rendered """
            """because it contains errors. To obtain a """
            """detailed error log please deactivate """
            """CPSSkins' built-in crash shield in """
            """portal_themes > Options > Deactivate """
            """the crash shield.""" % portlet.getId())
            rendered = '<blink>!!!PortalBoxGroup!!!</blink>'
  else:
            rendered = portlet.render_cache(**kw)
...
after crash shield dé-activation any user but admin can't connect any more
 and error logs shows :
  File "CPSProducts/CMFCore/FSPythonScript.py", line 164, in _exec
    result = f(*args, **kw)
  File "Script (Python)", line 208, in getContentItems
  File "Script (Python)", line 166, in getBrainInfo
Unauthorized: You are not allowed to access 'getContent' in this context

When those portlets are suppressed in this theme, everything works well
again

How to fix this problem ?

Context: debian3.1, zope 2.9.2,python2.4.3, cps3.4.1

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.