-----Original Message----- From: Katrin [mailto:katrin@beehive.de] Sent: Monday, September 13, 1999 11:34 AM To: zope@zope.org Subject: [Zope] Zope Permissions
hi everybody!
i have a little problem with permission settings.
i'm writing a product in python. the product installs dtml methods when installed in a folder. now i want zope to ask for the user name and the password when a certain page is rendered as an URL (zope doesn't have a user name yet).
i found out that in order to get the zope login window, i have to uncheck the view permission of the page (i mean the checkbox for acquire permission settings). how can i uncheck the box using python in my product? or how can i delete the view permission for this page in my product?
i hope someone's able to help me here.
I'm not sure exactly what your asking, but it might be useful to simply force the browser to authenticate: <dtml-var standard_html_header> <dtml-if "AUTHENTICATED_USER.getUserName() == 'Anonymous User'"> <dtml-raise Unauthorized> Wrong username or password </dtml-raise> </dtml-if> Hi <dtml-var "AUTHENTICATED_USER.getUserName()"> <dtml-var standard_html_footer> or something like that. -Michel