[Zope] exUserFolder Integration in Site
Andreas Pakulat
ap125@informatik.uni-rostock.de
Thu, 12 Jun 2003 16:30:59 +0200
Hi,
my site uses only PageTemplates, but I need XUF. The problem for me is
that I don't know how to get the login form of XUF integrate into my
site. I tried to convert the DTML-Method to ZPT, but that doesn't work
:(
Here is what I hav as ZPT:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- "http://www.w3.org/TR/html4/transitional.dtd"> -->
<html metal:use-macro="here/std_template/macros/page">
<span metal:fill-slot="body">
<div align="center">
<span tal:condition="exists:request/authFailedCode">
<span tal:define="dummy python:here.REQUEST.set('loginTitle', acl_users.getAuthFailedMessage(here.REQUEST.get('authFailedCode')))"></span>
</span>
<span tal:condition="not:exists:request/authFailedCode">
<span tal:define="dummy python:here.REQUEST.set('loginTitle', 'Login Required')"></span>
</span>
<h1 class="SeitenTitel">Log In</h1>
<form action="index_html" tal:attributes="action request/destination" METHOD="POST">
<TABLE>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<STRONG>Name</STRONG>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="__ac_name" SIZE="20">
</TD>
</TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<STRONG>Password</STRONG>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="PASSWORD" NAME="__ac_password" SIZE="20">
</TD>
</TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
</TD>
</TR>
</TABLE>
<center>
<INPUT TYPE="SUBMIT" NAME="submit" VALUE=" Ok ">
</center>
</FORM>
</div>
</span>
</html>
The macro creates header and footer of the page, I really don't know why
this doesn't work - I remain Anonymous User after submitting the form.
I also thought about getting the rendered dtml-login-form into a ZPT,
but I don't know how :( If somebody knows how...
Andreas
--
You will have domestic happiness and faithful friends.