[BlueBream] security on links

Adam GROSZER agroszer at gmail.com
Mon Jul 26 01:24:32 EDT 2010


Hello Justin,

Get http://pypi.python.org/pypi/mypypi it's a rather nice example how
to build a Zope 3^H^H^H^H^H^H Bluebream app.

Sunday, July 25, 2010, 3:31:50 PM, you wrote:

JR> Whups, forgot to set the from addy as my list subscribed mail.

JR> On Sun, Jul 25, 2010 at 6:30 AM, Justin Ryan <a.different.address> wrote:

JR>  


JR> On Sun, Jul 25, 2010 at 1:50 AM, Adam GROSZER <agroszer at gmail.com> wrote:

JR>   Hello Justin,
JR>  
JR>  browser:menu is rather ancient, I won't use it anymore.






JR> I can't find a working example of, e.g., how to enumerate menu
JR> items based on it, so I suspected this may be the case..
JR>  
JR>  
JR>  

JR>  Current menu stuff is better done with viewlets, they manage security
JR>  well too.
JR>  






JR> any examples? :)

JR>  

JR>  If your task is not about a menu, you can check perm with:
JR>  
JR>          if
JR> zope.security.management.thread_local.interaction.checkPermission(
JR>              'your.permisson-id', self.context):







JR>  ah-ha!  I think you're right about using viewlets, but for the
JR> moment, this is what I was looking for.

JR>  

JR>  
JR> Thanks, again!




JR> Justin

JR>  


JR>   

-- 
Best regards,
 Adam GROSZER                            mailto:agroszer at gmail.com
--
Quote of the day:
Success has a simple formula: do your best, and people may like it. 
- Sam Ewing 



More information about the bluebream mailing list