Re: [Zope] timezone change and permission problem
From: Chris Withers <chrisw@nipltd.com>
Bart Holthuijsen wrote:
This works for a User with the role Manager, but not with a user-defined role. I have created a Viewer class with all the available permissions (for testing purposes), but the above code returns nothing. If I remove the "and AUTHENTICATED_USER.has_permission('View',_.getitem('id',1)) " part it does show up. What should I do to make that part work?
Try giving your DTML method a proxy role or 'Manager'...
Thanks for the quick reply... BUT It still isn't working. I even created a user in the root folder with the Viewer role and all the rights granted, but I'm still greeted with a blank screen where the list should be :( I added the proxy role "Manager" to the methods, but still nothing. I also checked all the "Acquire permission settings" boxes, so it couldn't be that. Any other suggestions? TIA, Bart Holthuijsen ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I just added the option pack to bring a NT (ugh) server up to option pack 4, (NT4) Service pack 6. pcgi to redirect zope stuff to the iis port 80 so there are no port 8080 parts to the url stopped working for all parts of the site in lower directories. That is, myhost.com/scripts/zope.pcgi/DIR1/file_html works and myhost.com/scripts/zope.pcgi/DIR1/DIR2/file_html does not. Everything more than one directory deep in Zope returns a 404. IIS 3 didn't have this problem. Any advice would be great; I can't find anything in mailing archives, newsgroups or at zope.org. John Holland - --------------- Email: jholland@linuxave.net Web: http://jbhsoft.linuxave.net Public key : finger -s or http://jbhsoft.linuxave.net/pubkey.html -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.2 iQA/AwUBOXx2ChPWCCE2yAKHEQI1sACg4b4j1rC9aVgfWPRUdIZstLN668AAoLJe OQe8lCzOIWtONJIjoZnG5KBB =n5ty -----END PGP SIGNATURE-----
participants (2)
-
Bart Holthuijsen -
jholland@gears.linuxave.net