[Zope] manage_access: show permissions for a user
Florian Mueller
floyd@va.com.au
Thu, 29 Jul 1999 21:44:00 +0200
Unfortunately, I do not have telnet access to the zope installation, so
I cannot look it up the way you suggested. So once again,
how can I check in DTML if user X has permission Y to access file Z?
In my opinion, it should be something like:
<!--#call show_permission('View', 'Manager') -->
but this call does not exist, and with
manage_permission
I can only change permissions, but not display them.
Any help out there?
Please reply to me directly, hence I am not always reading the mailing
list.
Thanks,
Floyd
"Ross J. Reedstrom" wrote:
> On Wed, Jul 28, 1999 at 01:04:43AM +0200, Florian Mueller wrote:
> > G'Day!
> >
> > How can I get to the source of "manage_access"? That's the link
> > if you click on the security tab and does exactely what I want to do:
> > Checking in DTML if user X has permission Y to access file Z.
> >
>
> wallace$ pwd
> /extra/src/Zope/lib
> wallace$ find . -name \*.py -o -name -*.dtml | xargs grep 'def manage_access'./python/AccessControl/Role.py: def manage_access(
> wallace$
>
> So, {ZOPE_INSTALL}/lib/python/AccessControl is the place to look,
> in particular, in Role.py. Remember that any method beginning with _
> cannot be called from DTML.
>
> Ross
> --
> Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
> NSBRI Research Scientist/Programmer
> Computer and Information Technology Institute
> Rice University, 6100 S. Main St., Houston, TX 77005
--
http://floyd.va.com.au