[ZPT] zpt & login manager

Klinger Wolfgang wolfgang@wazum.com
Thu, 6 Dec 2001 19:22:55 +0100


hiya!

solved this myself

you need to "call" it through python

<dtml-raise "'LoginRequired'">
  <dtml-with login>
    <dtml-var "loginTemplate()">
  </dtml-with>
</dtml-raise>

bye
Wolfgang

----------- original message -----------------

hiya!

another question ... hmmhmmm

loginmanager has a dtml-document called
loginForm, looks like this (on my machine):

<dtml-raise "'LoginRequired'">
  <dtml-with login>
    <dtml-var loginTemplate>
  </dtml-with>
</dtml-raise>

proxy role: Manager

login is a folder that's protected, so I force
the user to visit this url to get the login
screen (that should use a template)
and I placed loginTemplate in the login
folder to get its properties ... (title, ...)

loginTemplate is a PageTemplate and uses
the master template in the root folder
(where the acl_users folder of loginmanager
is installed too)

I always get the following error:

  Error Type: LoginRequired
  Error Value: Invalid Error Value

but when I test the loginTemplate without
calling it through loginForm and then rename
it and cut&paste the already compiled html
into the new loginTemplate and then try
to login (loginForm -> loginTemplate), 
I get the login screen ...
so hmmm .. what's wrong?

does a <dtml-var ...> not compile the
PageTemplate before usage or what?

please help!!

Wolfgang