Displaying BirthDay Portlet to Anonymous Users

1 message Options
Embed this post
Permalink
monks () Displaying BirthDay Portlet to Anonymous Users
Reply Threaded More More options
Print post
Permalink

hello
I've created  a custom Portlet (pg. template) to display a B'day wishing Message alongwith Photo (if uploaded) and couple of other fields from portal_memberdata.

For Logged-in user , its working , but as an anonymous user, it displays an error:

2009-10-30T14:47:41 ERROR portlets Error while rendering <plone.app.portlets.manager.ColumnPortletManagerRenderer object at 0xfc57e2c>
Traceback (most recent call last):
  File "/home/rjgroup/zope-install/lib/python/plone/app/portlets/manager.py", line 65, in safe_render
    return portlet_renderer.render()
  File "/home/rjgroup/zope-install/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__
    return self._bindAndExec(args, kw, None)

----------------
---------------

File "PythonExpr", line 1, in <expression>
Unauthorized: You are not allowed to access 'getMemberById' in this context


according to this, anonymous user isn't able to access getMemberById method.
ie.
member python:mtool.getMemberById(userid);

How can i make this portlet visible to anonym. users ?
Also , setting security & permissions to make it viewable to anonym. user, is also not working.

Thanks ..

------
Regards,
Mayank Mathur

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users

Regards,
Mayank