I have set up a proxy user in my GUF that proxies the objects listed in the HOWTO in the GUF w/SQL Database. When I go to use the docLogin form, enter a username and password and press OK, it activates docLoginSuccess. Here is the line: <FORM ACTION="<dtml-var "docLoginSuccess">" method=post> But when I press the OK button I get an error because it passes docLoginSuccess into the URL line by line. Is it my syntax or a permissions issue? Thanks -- Lucas Vogel lucas7@home.com ICQ: 44697169
On Mon, 28 Feb 2000, Lucas Vogel wrote:
I have set up a proxy user in my GUF that proxies the objects listed in the HOWTO in the GUF w/SQL Database. When I go to use the docLogin form, enter a username and password and press OK, it activates docLoginSuccess. Here is the line:
<FORM ACTION="<dtml-var "docLoginSuccess">" method=post>
But when I press the OK button I get an error because it passes docLoginSuccess into the URL line by line. Is it my syntax or a permissions issue?
Syntax. You are doing exactly the same as if you do <dtml-var standard_html_header> - the DTML is rendered and included. <form action="<dtml-var loginSuccessURL>"> is normally what you want for a GUF. Its just the URL to go too if authentication and authorization is successful. -- ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
That's what I thought(no, really). But when I take out the quotes and go to view the doc I get another error: Error Type: KeyError Error Value: _gufauth_dest I thought I'd try troubleshooting by taking out all of the underscores in the names in the doc, but I still got the same error. Is _gufauth_dest something that is handled internally and I'm not picking up on how it's being handled? What is it for? Thanks Stuart 'Zen' Bishop wrote:
On Mon, 28 Feb 2000, Lucas Vogel wrote:
Syntax. You are doing exactly the same as if you do <dtml-var standard_html_header> - the DTML is rendered and included.
<form action="<dtml-var loginSuccessURL>"> is normally what you want for a GUF. Its just the URL to go too if authentication and authorization is successful.
-- ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
-- Lucas Vogel lucas7@home.com ICQ: 44697169
On Mon, 28 Feb 2000, Lucas Vogel wrote:
That's what I thought(no, really). But when I take out the quotes and go to view the doc I get another error:
Error Type: KeyError Error Value: _gufauth_dest
I thought I'd try troubleshooting by taking out all of the underscores in the names in the doc, but I still got the same error. Is _gufauth_dest something that is handled internally and I'm not picking up on how it's being handled? What is it for?
In the default GUF method templates, _gufauth_dest is set in the docLogin method, and is used by the docLoginSuccess method to redirect to the requested page. Go through the default GUF templates (in lib/python/Products/GenericUserFolder/templates/dumb) and try following through this example - with any luck it will shed light on the required steps. -- ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
participants (2)
-
Lucas Vogel -
Stuart 'Zen' Bishop