On 5/2/07, durumdara <[EMAIL PROTECTED]> wrote: > Hi! > > I used Zope before modpy, and now I subst. to Pylons. > I want to ask something about rights and objects. > > The Zope's philosophy that everything in the site is an object, and > every of these objects have special attributes named rights. > With these rights you can set what object is published, and what > rights or roles needed to access this object. > > In modpy I need to do same thing, because I need to use menus, and > menus linked to pages - so every page have three base attributes > (path, title, rights). > In directories I have a special file that described the pages in this > dir, and grouped them to menus. > > In Pylons I don't see same thing, but I need it, because my site need > "forbidden areas", and I want to centralize the pagetitle / page right > handling. > > What solution YOU used IN YOUR SITE? > > Please help me a little. I don't want to rewrite same thing, if exists > a better module or package. > > Thanks for your help: > dd
Pylons is a bit lower level than Zope, so it doesn't come with this stuff. The up side is that you can do *anything*, the down side is that you have to do *something* yourself. I rolled my own. I wasn't that big a deal, and I didn't do anything all that fancy. I don't necessarily protect "pages" or "objects". I can restrict access to an entire controller, a single action, or just a block of code. Best Regards, -jj -- http://jjinux.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
